public class UsernameHomeFolderProvider extends AbstractHomeFolderProvider2
Constructor and Description |
---|
UsernameHomeFolderProvider() |
Modifier and Type | Method and Description |
---|---|
HomeSpaceNodeRef |
getHomeFolder(org.alfresco.service.cmr.repository.NodeRef person)
Callback from
PortableHomeFolderManager to locate or create a home folder. |
List<String> |
getHomeFolderPath(org.alfresco.service.cmr.repository.NodeRef person)
Returns a preferred path (a list of folder names) for the home folder relative to
the root path.
|
org.alfresco.service.cmr.repository.NodeRef |
getTemplateNodeRef()
Returns a node to copy (a template) for the home folder.
|
void |
setTemplatePath(String templatePath) |
afterPropertiesSet, getHomeFolderManager, getName, getOnCreatePermissionsManager, getOnReferencePermissionsManager, getOwner, getRootPath, getStoreUrl, setBeanName, setHomeFolderManager, setOnCreatePermissionsManager, setOnReferencePermissionsManager, setOwner, setRootPath, setStoreUrl
public void setTemplatePath(String templatePath)
public org.alfresco.service.cmr.repository.NodeRef getTemplateNodeRef()
HomeFolderProvider2
getTemplateNodeRef
in interface HomeFolderProvider2
getTemplateNodeRef
in class AbstractHomeFolderProvider2
null
if not required.public List<String> getHomeFolderPath(org.alfresco.service.cmr.repository.NodeRef person)
HomeFolderProvider2
null
. 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.getHomeFolderPath
in interface HomeFolderProvider2
getHomeFolderPath
in class AbstractHomeFolderProvider2
person
- NodeRef from which a property (normally the userName) is used as a
hash key to create a nested directory structure.public HomeSpaceNodeRef getHomeFolder(org.alfresco.service.cmr.repository.NodeRef person)
HomeFolderProvider2
PortableHomeFolderManager
to locate or create a home folder.
Implementations normally call PortableHomeFolderManager.getHomeFolder(org.alfresco.repo.security.person.HomeFolderProvider2, org.alfresco.service.cmr.repository.NodeRef, boolean)
.Copyright © 2005–2017 Alfresco Software. All rights reserved.