Class PathCommandHandler
java.lang.Object
org.exoplatform.documents.storage.jcr.webdav.plugin.PathCommandHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected org.exoplatform.social.core.manager.IdentityManagerprotected static final org.exoplatform.services.log.Logprotected org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreatorstatic final Stringprotected org.exoplatform.services.jcr.RepositoryServiceprotected org.exoplatform.services.jcr.ext.app.SessionProviderServiceprotected org.exoplatform.social.core.space.spi.SpaceServiceprotected WebDavPathMappingStorage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocateTechnicalName(javax.jcr.Session session, String parentJcrPath, String visibleName) voiddeleteMapping(String jcrPath) getIdentityBaseFromJcrPath(String jcrPath, String username) getIdentityBaseJcrPath(long identityId) getIdentityBaseJcrPath(String webDavPath) getIdentityIdFromJcrPath(String jcrPath, String username) getIdentityIdFromWebDavPath(String webDavPath) getLastVisibleSegment(String webDavPath) getNodePathFromPropertyPath(String propertyPath) getOrCreateWebDavPath(String identityId, String identityBaseJcrPath, String identityRootWebDavPath, javax.jcr.Node node, String preferredVisibleName) getOrCreateWebDavPath(javax.jcr.Node node) getParentVisibleNodeName(javax.jcr.Node node) getVisibleName(javax.jcr.Node node) voidinit()booleanisIdentityRootWebDavPath(String webDavPath) booleanisTitlePropertyPath(String eventPath) voidrefreshMappingOrDelete(javax.jcr.Session session, String jcrPath) resolveToJcrPath(javax.jcr.Session session, String webDavPath) saveMapping(javax.jcr.Session session, String webDavPath, String visibleName, javax.jcr.Node node)
-
Field Details
-
PROPERTY_NAMES
-
IDENTITY_PATHS_FORMAT
- See Also:
-
PATHS_CONCAT_FORMAT
- See Also:
-
LOG
protected static final org.exoplatform.services.log.Log LOG -
identityManager
@Autowired protected org.exoplatform.social.core.manager.IdentityManager identityManager -
spaceService
@Autowired protected org.exoplatform.social.core.space.spi.SpaceService spaceService -
nodeHierarchyCreator
@Autowired protected org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator -
sessionProviderService
@Autowired protected org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService -
repositoryService
@Autowired protected org.exoplatform.services.jcr.RepositoryService repositoryService -
webDavPathMappingStorage
-
-
Constructor Details
-
PathCommandHandler
public PathCommandHandler()
-
-
Method Details
-
init
@PostConstruct public void init() -
getIdentityBaseJcrPath
-
getIdentityBaseFromJcrPath
-
getIdentityBaseJcrPath
-
getIdentityIdFromJcrPath
-
getIdentityIdFromWebDavPath
-
resolveToJcrPath
public String resolveToJcrPath(javax.jcr.Session session, String webDavPath) throws org.exoplatform.documents.webdav.model.WebDavException - Throws:
org.exoplatform.documents.webdav.model.WebDavException
-
getLastVisibleSegment
-
isIdentityRootWebDavPath
-
getOrCreateWebDavPath
-
getOrCreateWebDavPath
-
getVisibleName
- Throws:
javax.jcr.RepositoryException
-
getParentVisibleNodeName
- Throws:
javax.jcr.RepositoryException
-
allocateTechnicalName
-
saveMapping
public WebDavPathMappingEntity saveMapping(javax.jcr.Session session, String webDavPath, String visibleName, javax.jcr.Node node) -
deleteMapping
-
refreshMappingOrDelete
-
isTitlePropertyPath
-
getNodePathFromPropertyPath
-