public abstract class AbstractHomeFolderProvider2 extends Object implements HomeFolderProvider2, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean
HomeFolderProvider2
which
works with the PortableHomeFolderManager
(which performs most of
the work) to create home folders in custom locations.Constructor and Description |
---|
AbstractHomeFolderProvider2() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Register with the homeFolderManagewr
|
protected PortableHomeFolderManager |
getHomeFolderManager()
Get the home folder manager.
|
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 provider 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 path of the root folder
|
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 |
setBeanName(String name)
The provider name is taken from the bean name
|
void |
setHomeFolderManager(PortableHomeFolderManager homeFolderManager)
Set the home folder manager.
|
void |
setOnCreatePermissionsManager(PermissionsManager onCreatePermissionsManager)
Sets the PermissionsManager used on creating the home folder
|
void |
setOnReferencePermissionsManager(PermissionsManager onReferencePermissionsManager)
Sets the PermissionsManager used on referencing the home folder
|
void |
setOwner(String owner)
Set the authority to use as the owner of all home folder nodes.
|
void |
setRootPath(String rootPath)
Set the path of the root folder
|
void |
setStoreUrl(String storeUrl)
Set the store URL.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHomeFolder
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
protected PortableHomeFolderManager getHomeFolderManager()
public void setHomeFolderManager(PortableHomeFolderManager homeFolderManager)
homeFolderManager
- PortableHomeFolderManagerpublic String getName()
getName
in interface HomeFolderProvider2
public void setBeanName(String name)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public String getRootPath()
getRootPath
in interface HomeFolderProvider2
public void setRootPath(String rootPath)
public String getStoreUrl()
HomeFolderProvider2
getStoreUrl
in interface HomeFolderProvider2
public void setStoreUrl(String storeUrl)
public void setOnCreatePermissionsManager(PermissionsManager onCreatePermissionsManager)
public PermissionsManager getOnCreatePermissionsManager()
HomeFolderProvider2
getOnCreatePermissionsManager
in interface HomeFolderProvider2
public void setOnReferencePermissionsManager(PermissionsManager onReferencePermissionsManager)
public PermissionsManager getOnReferencePermissionsManager()
HomeFolderProvider2
getOnReferencePermissionsManager
in interface HomeFolderProvider2
public void setOwner(String owner)
public String getOwner()
HomeFolderProvider2
null
the ContentModel.PROP_USERNAME
value of
the person is used.getOwner
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.Copyright © 2005–2017 Alfresco Software. All rights reserved.