Package com.adobe.cq.dam.mac.sync.helper
Interface MACTenantConfigurationResolver
public interface MACTenantConfigurationResolver
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringJCR Property on a folder (nt:folder/sling:Folder/sling:OrderedFolder) identifying the MAC cloud service configuration for a target folder.static final StringJCR Property on a folder (nt:folder/sling:Folder/sling:OrderedFolder) identifying the MP cloud service configuration for a target folder. -
Method Summary
Modifier and TypeMethodDescriptiongetConfiguration(ResourceResolver resolver, String path) Retrieves the cloud configuration described by the resource stored under the providedpath.getConfigurationForPath(ResourceResolver resolver, String path) Retrieves aMACTenantConfigurationfor apath.getConfigurationForResource(Resource resource) Retrieves aMACTenantConfigurationfor aResource.getDefaultConfig(ResourceResolver resolver) returns the first enabled config from available configs.getDefaultMPConfig(ResourceResolver resolver) returns the first enabled MP config from available configs.getMPConfigurationForPath(ResourceResolver resolver, String path) Retrieves aMACTenantConfigurationfor apath.getMPConfigurationForResource(Resource resource) Retrieves aMACTenantConfigurationfor aResource.
-
Field Details
-
JCR_PROP_MAC_CLOUDSERVICE_CONFIG
JCR Property on a folder (nt:folder/sling:Folder/sling:OrderedFolder) identifying the MAC cloud service configuration for a target folder.- See Also:
-
JCR_PROP_MP_CLOUDSERVICE_CONFIG
JCR Property on a folder (nt:folder/sling:Folder/sling:OrderedFolder) identifying the MP cloud service configuration for a target folder.- See Also:
-
-
Method Details
-
getConfiguration
Retrieves the cloud configuration described by the resource stored under the providedpath. If no configuration is found at that path this method returnsnull.- Parameters:
resolver- the resource resolver used to access the resourcespath- the path from which to obtain the configuration- Returns:
- the configuration if found,
nullotherwise
-
getConfigurationForResource
Retrieves aMACTenantConfigurationfor aResource. The configuration is retrieved by recursively looking for theJCR_PROP_MAC_CLOUDSERVICE_CONFIGproperty on the resource or its parents.- Parameters:
resource- theResourceto look for configuration. The resource's resolver is used for accessing the resources.- Returns:
- the configuration if found,
nullotherwise
-
getMPConfigurationForResource
Retrieves aMACTenantConfigurationfor aResource. The configuration is retrieved by recursively looking for theJCR_PROP_MP_CLOUDSERVICE_CONFIGproperty on the resource or its parents.- Parameters:
resource- theResourceto look for configuration. The resource's resolver is used for accessing the resources.- Returns:
- the configuration if found,
nullotherwise
-
getConfigurationForPath
Retrieves aMACTenantConfigurationfor apath. The configuration is retrieved by recursively looking for theJCR_PROP_MAC_CLOUDSERVICE_CONFIGproperty on the resource at the indicated path or its parents.- Parameters:
resolver- the resource resolver used to access the resourcespath- the path- Returns:
- the configuration if found,
nullotherwise
-
getMPConfigurationForPath
Retrieves aMACTenantConfigurationfor apath. The configuration is retrieved by recursively looking for theJCR_PROP_MP_CLOUDSERVICE_CONFIGproperty on the resource at the indicated path or its parents.- Parameters:
resolver- the resource resolver used to access the resourcespath- the path- Returns:
- the configuration if found,
nullotherwise
-
getDefaultConfig
returns the first enabled config from available configs.- Parameters:
resolver- the resource resolver used to access the resources- Returns:
-
getDefaultMPConfig
returns the first enabled MP config from available configs.- Parameters:
resolver- the resource resolver used to access the resources- Returns:
-