Package com.day.cq.mcm.api
Interface MCMFacade
public interface MCMFacade
This is the central entry point for accessing plugins and configuration info
on MCM.
Provides accessors to the known component types, too.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddExperienceIndirection(String fromCompType, String toCompType) Change configuration by adding an indirection.voidaddTouchpointIndirection(String fromCompType, String toCompType) Change configuration by adding an indirection.Finds all posts that are related to the given account, in campaigns and under account.findResources(ResourceResolver rr, Collection<String> rootComponents, String path, String additionalPropertyCondition) Find all social feed resources underneath a given path.getMCMType(String resourceTypeToTest) Gets the type of a givensling:resourceType.Get a plugin for a resource found using component types returned byMCMFacade.getPluginForType(String componentTypeToProvideFrom) Get a plugin if the type is known to theMCMFacade.Get the complete list of registered plugins.The component types known to be used forExperiencecomponents.The component types known to be used forTouchpointcomponents.voidremoveExperienceIndirection(String fromCompType) Change configuration by removing an indirection.voidremoveTouchpointIndirection(String fromCompType) Change configuration by removing an indirection.
-
Method Details
-
getPlugin
Get a plugin for a resource found using component types returned byMCMFacade. Returnsnullif the resource's type isn't known.- Parameters:
r-- Returns:
-
getPlugins
Collection<MCMPlugin> getPlugins()Get the complete list of registered plugins.- Returns:
-
getPluginForType
Get a plugin if the type is known to theMCMFacade. Otherwisenullis returned.- Parameters:
componentTypeToProvideFrom-- Returns:
-
getMCMType
Gets the type of a givensling:resourceType.- Parameters:
resourceTypeToTest-
-
getRegisteredExperienceComponents
Collection<String> getRegisteredExperienceComponents()The component types known to be used forExperiencecomponents. Might contain indirections, too.- Returns:
-
getRegisteredTouchpointComponents
Collection<String> getRegisteredTouchpointComponents()The component types known to be used forTouchpointcomponents. Might contain indirections, too.- Returns:
-
findExperiences
Finds all posts that are related to the given account, in campaigns and under account.- Parameters:
rr-t-- Returns:
-
findResources
Iterator<Resource> findResources(ResourceResolver rr, Collection<String> rootComponents, String path, String additionalPropertyCondition) Find all social feed resources underneath a given path.- Parameters:
rootComponents-path-additionalPropertyCondition- can benull, or a additional condition to be added to the property checking.- Returns:
-
addExperienceIndirection
Change configuration by adding an indirection. No checking done for the existence of the toCompType.- Parameters:
fromCompType-toCompType-
-
addTouchpointIndirection
Change configuration by adding an indirection. No checking done for the existence of the toCompType.- Parameters:
fromCompType-toCompType-
-
removeExperienceIndirection
Change configuration by removing an indirection. If the indirection is inexistent or if the fromCompType is not an indirection nothing is done.- Parameters:
fromCompType-
-
removeTouchpointIndirection
Change configuration by removing an indirection. If the indirection is inexistent or if the fromCompType is not an indirection nothing is done.- Parameters:
fromCompType-
-