public interface HomeFolderProvider2
PortableHomeFolderManager
(which performs most of the work)
to allow it to create home folders in custom locations.
The home folder may be a simple structure where all users share a root folder (See
ExistingPathBasedHomeFolderProvider2
), or all home folders are in the same root
folder (See UsernameHomeFolderProvider
) or in a tree of sub folders to
avoids any single directory containing too many home directories which might cause
performance issues (See RegexHomeFolderProvider
).
If the HomeFolderProvider is changed, home folders may be
moved by using the HomeFolderProviderSynchronizer
which optionally runs on
restart.
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.
|
String getName()
String getStoreUrl()
String getRootPath()
List<String> getHomeFolderPath(org.alfresco.service.cmr.repository.NodeRef person)
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.person
- NodeRef from which a property (normally the userName) is used as a
hash key to create a nested directory structure.org.alfresco.service.cmr.repository.NodeRef getTemplateNodeRef()
null
if not required.String getOwner()
null
the ContentModel.PROP_USERNAME
value of
the person is used.PermissionsManager getOnCreatePermissionsManager()
PermissionsManager getOnReferencePermissionsManager()
HomeSpaceNodeRef getHomeFolder(org.alfresco.service.cmr.repository.NodeRef person)
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.