public class AbstractHomeFolderProvider.V2Adaptor extends Object implements HomeFolderProvider2
Constructor and Description |
---|
V2Adaptor(AbstractHomeFolderProvider abstractHomeFolderProvider) |
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.
|
String |
getName()
Get the name of the provider (the bean name).
|
PermissionsManager |
getOnCreatePermissionsManager()
Gets the PermissionsManager used on creating the home folder
|
PermissionsManager |
getOnReferencePermissionsManager()
Gets the PermissionsManager used on referencing the home folder
|
String |
getOwner()
Set the authority to use as the owner of all home folder nodes.
|
String |
getRootPath()
Get the root path in the store under which all home folders will be located.
|
String |
getStoreUrl()
Get the URL String of the node store that will be used.
|
org.alfresco.service.cmr.repository.NodeRef |
getTemplateNodeRef()
Returns a node to copy (a template) for the home folder.
|
void |
onCreateNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef) |
public V2Adaptor(AbstractHomeFolderProvider abstractHomeFolderProvider)
public String getName()
HomeFolderProvider2
getName
in interface HomeFolderProvider2
public String getStoreUrl()
HomeFolderProvider2
getStoreUrl
in interface HomeFolderProvider2
public String getRootPath()
HomeFolderProvider2
getRootPath
in interface HomeFolderProvider2
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
person
- NodeRef from which a property (normally the userName) is used as a
hash key to create a nested directory structure.public org.alfresco.service.cmr.repository.NodeRef getTemplateNodeRef()
HomeFolderProvider2
getTemplateNodeRef
in interface HomeFolderProvider2
null
if not required.public String getOwner()
HomeFolderProvider2
null
the ContentModel.PROP_USERNAME
value of
the person is used.getOwner
in interface HomeFolderProvider2
public PermissionsManager getOnCreatePermissionsManager()
HomeFolderProvider2
getOnCreatePermissionsManager
in interface HomeFolderProvider2
public PermissionsManager getOnReferencePermissionsManager()
HomeFolderProvider2
getOnReferencePermissionsManager
in interface HomeFolderProvider2
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)
.getHomeFolder
in interface HomeFolderProvider2
public void onCreateNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
Copyright © 2005–2017 Alfresco Software. All rights reserved.