Package fr.becpg.repo.helper
Class SiteHelper
java.lang.Object
fr.becpg.repo.helper.SiteHelper
SiteHelper class.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstantSITES_SPACE_QNAME_PATH="/app:company_home/st:sites/" -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringextractContainerId(String path) extractContainerId.static StringextractDisplayPath(String path, String displayPath) extractDisplayPath.static StringextractSiteDisplayPath(org.alfresco.service.cmr.repository.Path path, org.alfresco.service.cmr.security.PermissionService permissionService, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.namespace.NamespaceService namespaceService) extractSiteDisplayPath.static StringextractSiteId(String path) extractSiteId.static booleanisSitePath(String path) isSitePath.
-
Field Details
-
SITES_SPACE_QNAME_PATH
ConstantSITES_SPACE_QNAME_PATH="/app:company_home/st:sites/"- See Also:
-
-
Constructor Details
-
SiteHelper
public SiteHelper()
-
-
Method Details
-
extractContainerId
extractContainerId.
-
isSitePath
isSitePath.
- Parameters:
path- aStringobject.- Returns:
- a boolean.
-
extractSiteId
extractSiteId.
-
extractDisplayPath
extractDisplayPath.
-
extractSiteDisplayPath
public static String extractSiteDisplayPath(org.alfresco.service.cmr.repository.Path path, org.alfresco.service.cmr.security.PermissionService permissionService, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.service.namespace.NamespaceService namespaceService) extractSiteDisplayPath.
Extracts the display path out of a path but from the site name, and without "documentLibrary". If there no site in path, the result is just the display path- Parameters:
path- aPathobjectpermissionService- aPermissionServiceobjectnodeService- aNodeServiceobjectnamespaceService- aNamespaceServiceobject- Returns:
- a
Stringobject
-