|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.transaction.TransactionListenerAdapter
org.alfresco.repo.security.person.PersonServiceImpl
public class PersonServiceImpl
Nested Class Summary | |
---|---|
static class |
PersonServiceImpl.NodeIdComparator
|
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy |
---|
Policy.Arg |
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy |
---|
Policy.Arg |
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy |
---|
Policy.Arg |
Field Summary | |
---|---|
static java.lang.String |
PEOPLE_FOLDER_SHORT_QNAME
|
static java.lang.String |
SYSTEM_FOLDER_SHORT_QNAME
|
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnCreateNodePolicy |
---|
QNAME |
Fields inherited from interface org.alfresco.repo.policy.Policy |
---|
NAMESPACE |
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.BeforeDeleteNodePolicy |
---|
QNAME |
Fields inherited from interface org.alfresco.repo.policy.Policy |
---|
NAMESPACE |
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy |
---|
ARG_0, ARG_1, ARG_2, QNAME |
Fields inherited from interface org.alfresco.repo.policy.Policy |
---|
NAMESPACE |
Constructor Summary | |
---|---|
PersonServiceImpl()
|
Method Summary | |
---|---|
void |
afterCommit()
Process clean up any duplicates that were flagged during the transaction. |
void |
beforeDeleteNode(NodeRef nodeRef)
Called before a node is deleted. |
boolean |
createMissingPeople()
Does this service create people on demand if they are missing. |
NodeRef |
createPerson(java.util.Map properties)
Create a new person with the given properties. |
NodeRef |
createPerson(java.util.Map properties,
java.util.Set zones)
Create a new person with the given properties, recording them against the given zone name (usually identifying an external user registry from which the details were obtained). |
void |
deletePerson(java.lang.String userName)
Delete the person identified by the given user name. |
boolean |
equals(java.lang.Object obj)
|
java.util.Set |
getAllPeople()
Get all the people we know about. |
java.util.Set |
getMutableProperties()
Get the list of properties that are mutable. |
NodeRef |
getPeopleContainer()
Return the container that stores people. |
java.util.Set |
getPeopleFilteredByProperty(QName propertyKey,
java.io.Serializable propertyValue)
Get people filtered by the given property name/value pair |
NodeRef |
getPerson(java.lang.String userName)
Retrieve the person NodeRef for a username key. |
NodeRef |
getPerson(java.lang.String userName,
boolean autoCreate)
Retrieve the person NodeRef for a username key. |
java.lang.String |
getUserIdentifier(java.lang.String caseSensitiveUserName)
Given the case sensitive user name find the approriate identifier from the person service. |
UserNameMatcher |
getUserNameMatcher()
|
boolean |
getUserNamesAreCaseSensitive()
Are user names case sensitive? |
int |
hashCode()
|
void |
init()
Spring bean init method |
boolean |
isMutable()
Can this service create, delete and update person information? |
void |
onCreateNode(ChildAssociationRef childAssocRef)
Called when a new node has been created. |
void |
onUpdateProperties(NodeRef nodeRef,
java.util.Map before,
java.util.Map after)
Called after a node's properties have been changed. |
boolean |
personExists(java.lang.String caseSensitiveUserName)
Check if a person exists. |
void |
setAclDao(AclDaoComponent aclDao)
|
void |
setAuthenticationService(MutableAuthenticationService authenticationService)
|
void |
setAuthorityService(AuthorityService authorityService)
|
void |
setCreateMissingPeople(boolean createMissingPeople)
Set if missing people should be created. |
void |
setDictionaryService(DictionaryService dictionaryService)
|
void |
setDuplicateMode(java.lang.String duplicateMode)
|
void |
setHomeFolderManager(HomeFolderManager homeFolderManager)
|
void |
setIncludeAutoCreated(boolean includeAutoCreated)
|
void |
setLastIsBest(boolean lastIsBest)
|
void |
setNamespacePrefixResolver(NamespacePrefixResolver namespacePrefixResolver)
|
void |
setNodeService(NodeService nodeService)
|
void |
setPermissionServiceSPI(PermissionServiceSPI permissionServiceSPI)
|
void |
setPermissionsManager(PermissionsManager permissionsManager)
|
void |
setPersonCache(SimpleCache personCache)
Set the username to person cache. |
void |
setPersonProperties(java.lang.String userName,
java.util.Map properties)
Set the properties on a person - some of these may be persisted in different locations. |
void |
setPersonProperties(java.lang.String userName,
java.util.Map properties,
boolean autoCreate)
Set the properties on a person - some of these may be persisted in different locations. |
void |
setPolicyComponent(PolicyComponent policyComponent)
|
void |
setProcessDuplicates(boolean processDuplicates)
|
void |
setSearchService(SearchService searchService)
|
void |
setStoreUrl(java.lang.String storeUrl)
|
void |
setTenantService(TenantService tenantService)
|
void |
setTransactionService(TransactionService transactionService)
|
void |
setUserNameMatcher(UserNameMatcher userNameMatcher)
|
Methods inherited from class org.alfresco.repo.transaction.TransactionListenerAdapter |
---|
afterRollback, beforeCommit, beforeCompletion, flush |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SYSTEM_FOLDER_SHORT_QNAME
public static final java.lang.String PEOPLE_FOLDER_SHORT_QNAME
Constructor Detail |
---|
public PersonServiceImpl()
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void init()
public UserNameMatcher getUserNameMatcher()
public void setUserNameMatcher(UserNameMatcher userNameMatcher)
public void setDuplicateMode(java.lang.String duplicateMode)
public void setIncludeAutoCreated(boolean includeAutoCreated)
public void setLastIsBest(boolean lastIsBest)
public void setProcessDuplicates(boolean processDuplicates)
public void setHomeFolderManager(HomeFolderManager homeFolderManager)
public void setAclDao(AclDaoComponent aclDao)
public void setPermissionsManager(PermissionsManager permissionsManager)
public void setPersonCache(SimpleCache personCache)
personCache
- a transactionally safe cachepublic NodeRef getPerson(java.lang.String userName)
getPerson
in interface PersonService
userName
- of the person NodeRef to retrieve
NoSuchPersonException
PersonService.setCreateMissingPeople(boolean)
,
PersonService.createMissingPeople()
public NodeRef getPerson(java.lang.String userName, boolean autoCreate)
autoCreate
parameter and
configuration missing people will be created if not found, else a NoSuchPersonException exception will be thrown.
getPerson
in interface PersonService
userName
- of the person NodeRef to retrieveautoCreate
- should we auto-create the person node and home folder if they don't exist? (and configuration allows
us to)
NoSuchPersonException
- if the person doesn't exist and can't be createdpublic boolean personExists(java.lang.String caseSensitiveUserName)
PersonService
personExists
in interface PersonService
caseSensitiveUserName
- the user name
public void afterCommit()
afterCommit
in interface TransactionListener
afterCommit
in class TransactionListenerAdapter
public boolean createMissingPeople()
PersonService
createMissingPeople
in interface PersonService
public java.util.Set getMutableProperties()
PersonService
getMutableProperties
in interface PersonService
public void setPersonProperties(java.lang.String userName, java.util.Map properties)
PersonService
setPersonProperties
in interface PersonService
userName
- -
the user for which the properties should be set.properties
- -
the map of properties to set (as the NodeService)public void setPersonProperties(java.lang.String userName, java.util.Map properties, boolean autoCreate)
PersonService
setPersonProperties
in interface PersonService
userName
- - the user for which the properties should be set.properties
- - the map of properties to set (as the NodeService)autoCreate
- should we auto-create the home folder if it doesn't exist? (and configuration allows us to)public boolean isMutable()
PersonService
isMutable
in interface PersonService
public NodeRef createPerson(java.util.Map properties)
PersonService
createPerson
in interface PersonService
public NodeRef createPerson(java.util.Map properties, java.util.Set zones)
PersonService
createPerson
in interface PersonService
properties
- the propertieszones
- a set if zones including the identifier for the external user registry owning the person information, or null
or an empty set
public NodeRef getPeopleContainer()
PersonService
getPeopleContainer
in interface PersonService
public void deletePerson(java.lang.String userName)
PersonService
deletePerson
in interface PersonService
public java.util.Set getAllPeople()
PersonService
getAllPeople
in interface PersonService
public java.util.Set getPeopleFilteredByProperty(QName propertyKey, java.io.Serializable propertyValue)
PersonService
getPeopleFilteredByProperty
in interface PersonService
propertyKey
- property key of property to filter people bypropertyValue
- property value of property to filter people by
public void onCreateNode(ChildAssociationRef childAssocRef)
onCreateNode
in interface NodeServicePolicies.OnCreateNodePolicy
childAssocRef
- the created child association referencepublic void beforeDeleteNode(NodeRef nodeRef)
beforeDeleteNode
in interface NodeServicePolicies.BeforeDeleteNodePolicy
nodeRef
- the node referencepublic void setCreateMissingPeople(boolean createMissingPeople)
PersonService
setCreateMissingPeople
in interface PersonService
createMissingPeople
- set to true to create peoplePersonService.getPerson(String)
public void setNamespacePrefixResolver(NamespacePrefixResolver namespacePrefixResolver)
public void setAuthorityService(AuthorityService authorityService)
public void setAuthenticationService(MutableAuthenticationService authenticationService)
public void setDictionaryService(DictionaryService dictionaryService)
public void setPermissionServiceSPI(PermissionServiceSPI permissionServiceSPI)
public void setTransactionService(TransactionService transactionService)
public void setNodeService(NodeService nodeService)
public void setTenantService(TenantService tenantService)
public void setSearchService(SearchService searchService)
public void setPolicyComponent(PolicyComponent policyComponent)
public void setStoreUrl(java.lang.String storeUrl)
public java.lang.String getUserIdentifier(java.lang.String caseSensitiveUserName)
PersonService
getUserIdentifier
in interface PersonService
public boolean getUserNamesAreCaseSensitive()
PersonService
getUserNamesAreCaseSensitive
in interface PersonService
public void onUpdateProperties(NodeRef nodeRef, java.util.Map before, java.util.Map after)
NodeServicePolicies.OnUpdatePropertiesPolicy
onUpdateProperties
in interface NodeServicePolicies.OnUpdatePropertiesPolicy
nodeRef
- reference to the updated nodebefore
- the node's properties before the changeafter
- the node's properties after the change
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |