Class AbstractHomeFolderProvider.V2Adaptor
java.lang.Object
org.alfresco.repo.security.person.AbstractHomeFolderProvider.V2Adaptor
- All Implemented Interfaces:
HomeFolderProvider2
- Enclosing class:
- AbstractHomeFolderProvider
Adaptor to the HomeFolderProvider2 interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHomeFolder(NodeRef person) Callback fromPortableHomeFolderManagerto locate or create a home folder.getHomeFolderPath(NodeRef person) Returns a preferred path (a list of folder names) for the home folder relative to the root path.getName()Get the name of the provider (the bean name).Gets the PermissionsManager used on creating the home folderGets the PermissionsManager used on referencing the home foldergetOwner()Set the authority to use as the owner of all home folder nodes.Get the root path in the store under which all home folders will be located.Get the URL String of the node store that will be used.Returns a node to copy (a template) for the home folder.voidonCreateNode(ChildAssociationRef childAssocRef)
-
Constructor Details
-
V2Adaptor
-
-
Method Details
-
getName
Description copied from interface:HomeFolderProvider2Get the name of the provider (the bean name).- Specified by:
getNamein interfaceHomeFolderProvider2
-
getStoreUrl
Description copied from interface:HomeFolderProvider2Get the URL String of the node store that will be used.- Specified by:
getStoreUrlin interfaceHomeFolderProvider2
-
getRootPath
Description copied from interface:HomeFolderProvider2Get the root path in the store under which all home folders will be located.- Specified by:
getRootPathin interfaceHomeFolderProvider2
-
getHomeFolderPath
Description copied from interface:HomeFolderProvider2Returns a preferred path (a list of folder names) for the home folder relative to the root path. If all users share the root, the returned value should be an empty List ornull. When all users have their own folder under the root there should be just one element in the List. Multiple elements should be returned when a nested folder structure is preferred.- Specified by:
getHomeFolderPathin interfaceHomeFolderProvider2- Parameters:
person- NodeRef from which a property (normally the userName) is used as a hash key to create a nested directory structure.- Returns:
- the path to be used.
-
getTemplateNodeRef
Description copied from interface:HomeFolderProvider2Returns a node to copy (a template) for the home folder. Only used by HomeFolderProviders that create home folders rather than just reference existing folders.- Specified by:
getTemplateNodeRefin interfaceHomeFolderProvider2- Returns:
- the node to copy or
nullif not required.
-
getOwner
Description copied from interface:HomeFolderProvider2Set the authority to use as the owner of all home folder nodes. IfnulltheContentModel.PROP_USERNAMEvalue of the person is used.- Specified by:
getOwnerin interfaceHomeFolderProvider2
-
getOnCreatePermissionsManager
Description copied from interface:HomeFolderProvider2Gets the PermissionsManager used on creating the home folder- Specified by:
getOnCreatePermissionsManagerin interfaceHomeFolderProvider2
-
getOnReferencePermissionsManager
Description copied from interface:HomeFolderProvider2Gets the PermissionsManager used on referencing the home folder- Specified by:
getOnReferencePermissionsManagerin interfaceHomeFolderProvider2
-
getHomeFolder
Description copied from interface:HomeFolderProvider2Callback fromPortableHomeFolderManagerto locate or create a home folder. Implementations normally callPortableHomeFolderManager.getHomeFolder(org.alfresco.repo.security.person.HomeFolderProvider2, org.alfresco.service.cmr.repository.NodeRef, boolean).- Specified by:
getHomeFolderin interfaceHomeFolderProvider2
-
onCreateNode
-