|
People and groups may be managed entirely in the repository or entirely in some other implementation such as LDAP or via NTLM. Some properties may in the repository and some in another store. Individual properties may or may not be mutable.
Nested Class Summary | ||
static class |
PersonService.PersonInfo Data pojo to carry common person information |
Method Summary | ||
int |
countPeople() Counts the number of persons registered with the system. |
|
boolean |
createMissingPeople() Does this service create people on demand if they are missing. |
|
createPerson(Map<QName,Serializable> properties) Create a new person with the given properties. |
||
createPerson(Map<QName,Serializable> properties, Set<String> 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(NodeRef personRef) Delete the person identified by the given ref. |
|
void |
deletePerson(NodeRef personRef, boolean deleteAuthentication) Delete the person identified by the given ref, and optionally delete the associated authentication, if one. |
|
void |
deletePerson(String userName) Delete the person identified by the given user name. |
|
getAllPeople() | ||
getMutableProperties() Get the list of properties that are mutable. |
||
getPeople(List<Pair<QName,String>> stringPropFilters, boolean filterIgnoreCase, List<Pair<QName,Boolean>> sortProps, PagingRequest pagingRequest) Deprecated. see getPeople(String pattern, List |
||
getPeople(String pattern, List<QName> filterProps, List<Pair<QName,Boolean>> sortProps, PagingRequest pagingRequest) Get paged list of people optionally filtered and/or sorted Note: the pattern is applied to filter props (0 to 3) as startsWithIgnoreCase, which are OR'ed together, for example: cm:userName or cm:firstName or cm:lastName |
||
getPeople(String pattern, List<QName> filterStringProps, Set<QName> inclusiveAspects, Set<QName> exclusiveAspects, boolean includeAdministraotrs, List<Pair<QName,Boolean>> sortProps, PagingRequest pagingRequest) Get paged list of people optionally filtered and/or sorted |
||
getPeopleContainer() Return the container that stores people. |
||
getPeopleFilteredByProperty(QName propertyKey, Serializable propertyValue, int count) Get people filtered by the given property name/value pair. |
||
getPerson(NodeRef personRef) Retrieve the person info for an existing person NodeRef |
||
getPerson(String userName) Get a person by userName. |
||
getPerson(String userName, boolean autoCreateHomeFolderAndMissingPersonIfAllowed) Retrieve the person NodeRef for a username, optionally creating the home folder if it does not exist and optionally creating the person if they don't exist AND the PersonService is configured to allow the creation of missing persons setCreateMissingPeople(boolean). |
||
getPersonOrNull(String userName) Get a person by userName. |
||
getUserIdentifier(String caseSensitiveUserName) Given the case sensitive user name find the approriate identifier from the person service. |
||
boolean |
getUserNamesAreCaseSensitive() Are user names case sensitive? |
|
boolean |
isEnabled(String userName) Is the specified user, enabled |
|
boolean |
isMutable() Can this service create, delete and update person information? |
|
void |
notifyPerson(String userName, String password) Notifies a user by email that their account has been created, and the details of it. |
|
boolean |
personExists(String userName) Check if a person exists. |
|
void |
setCreateMissingPeople(boolean createMissing) Set if missing people should be created. |
|
void |
setPersonProperties(String userName, Map<QName,Serializable> properties) Set the properties on a person - some of these may be persisted in different locations - the home folder is created if it doesn't exist |
|
void |
setPersonProperties(String userName, Map<QName,Serializable> properties, boolean autoCreateHomeFolder) Set the properties on a person - some of these may be persisted in different locations. |
null
or an empty set
|