|
|||||||||
| 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.CreationDateComparator
|
| 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.policy.Policy |
|---|
NAMESPACE |
| 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. |
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. |
java.lang.String |
getUserIdentifier(java.lang.String caseSensitiveUserName)
Given the case sensitive user name find the approriate identifier from the person service. |
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. |
boolean |
personExists(java.lang.String caseSensitiveUserName)
Check if a person exists. |
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 |
setIncludeAutoCreated(boolean includeAutoCreated)
|
void |
setLastIsBest(boolean lastIsBest)
|
void |
setNamespacePrefixResolver(NamespacePrefixResolver namespacePrefixResolver)
|
void |
setNodeService(NodeService nodeService)
|
void |
setPermissionServiceSPI(PermissionServiceSPI permissionServiceSPI)
|
void |
setPersonCache(SimpleCache personCache)
Set the username to person cache. |
void |
setPersonDao(PersonDao personDao)
|
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 |
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 |
setUserNamesAreCaseSensitive(boolean userNamesAreCaseSensitive)
|
| 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.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void init()
public boolean getUserNamesAreCaseSensitive()
PersonService
getUserNamesAreCaseSensitive in interface PersonServicepublic void setUserNamesAreCaseSensitive(boolean userNamesAreCaseSensitive)
public void setDuplicateMode(java.lang.String duplicateMode)
public void setIncludeAutoCreated(boolean includeAutoCreated)
public void setLastIsBest(boolean lastIsBest)
public void setProcessDuplicates(boolean processDuplicates)
public void setPersonDao(PersonDao personDao)
public void setPersonCache(SimpleCache personCache)
personCache - a transactionally safe cachepublic NodeRef getPerson(java.lang.String userName)
getPerson in interface PersonServiceuserName - of the person NodeRef to retrieve
NoSuchPersonExceptionPersonService.setCreateMissingPeople(boolean),
PersonService.createMissingPeople()public boolean personExists(java.lang.String caseSensitiveUserName)
PersonService
personExists in interface PersonServicecaseSensitiveUserName - the user name
public void afterCommit()
afterCommit in interface TransactionListenerafterCommit in class TransactionListenerAdapterpublic boolean createMissingPeople()
PersonService
createMissingPeople in interface PersonServicepublic java.util.Set getMutableProperties()
PersonService
getMutableProperties in interface PersonService
public void setPersonProperties(java.lang.String userName,
java.util.Map properties)
PersonService
setPersonProperties in interface PersonServiceuserName - -
the user for which the properties should be set.properties - -
the map of properties to set (as the NodeService)public boolean isMutable()
PersonService
isMutable in interface PersonServicepublic NodeRef createPerson(java.util.Map properties)
PersonService
createPerson in interface PersonServicepublic NodeRef getPeopleContainer()
PersonService
getPeopleContainer in interface PersonServicepublic void deletePerson(java.lang.String userName)
PersonService
deletePerson in interface PersonServicepublic java.util.Set getAllPeople()
PersonService
getAllPeople in interface PersonService
public java.util.Set getPeopleFilteredByProperty(QName propertyKey,
java.io.Serializable propertyValue)
PersonService
getPeopleFilteredByProperty in interface PersonServicepropertyKey - property key of property to filter people bypropertyValue - property value of property to filter people by
public void onCreateNode(ChildAssociationRef childAssocRef)
NodeServicePolicies.OnCreateNodePolicy
onCreateNode in interface NodeServicePolicies.OnCreateNodePolicychildAssocRef - the created child association referencepublic void beforeDeleteNode(NodeRef nodeRef)
NodeServicePolicies.BeforeDeleteNodePolicy
beforeDeleteNode in interface NodeServicePolicies.BeforeDeleteNodePolicynodeRef - the node referencepublic void setCreateMissingPeople(boolean createMissingPeople)
PersonService
setCreateMissingPeople in interface PersonServicecreateMissingPeople - set to true to create peoplePersonService.getPerson(String)public void setNamespacePrefixResolver(NamespacePrefixResolver namespacePrefixResolver)
public void setAuthorityService(AuthorityService authorityService)
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||