public class People extends BaseTemplateProcessorExtension implements org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
People() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
java.util.Map |
getCapabilities(TemplateNode person)
Gets a map of capabilities (boolean assertions) for the given person.
|
java.util.List |
getContainerGroups(TemplateNode person)
Gets the groups that contain the specified authority
|
TemplateNode |
getGroup(java.lang.String groupName)
Gets the Group given the group name
|
java.util.List |
getMembers(TemplateNode group)
Gets the members (people) of a group (including all sub-groups)
|
java.util.List |
getMembers(TemplateNode group,
boolean recurse)
Gets the members (people) of a group
|
TemplateNode |
getPerson(java.lang.String username)
Gets the Person given the username
|
boolean |
isAccountEnabled(TemplateNode person)
Return true if the specified user account is enabled.
|
boolean |
isAdmin(TemplateNode person)
Return true if the specified user is an Administrator authority.
|
boolean |
isGuest(TemplateNode person)
Return true if the specified user is an Guest authority.
|
void |
setAuthenticationService(MutableAuthenticationService authenticationService)
Sets the authentication service.
|
void |
setAuthorityDAO(AuthorityDAO authorityDAO)
Set the authority DAO
|
void |
setAuthorityService(AuthorityService authorityService)
Set the authority service
|
void |
setPersonService(PersonService personService)
Set the person service
|
void |
setServiceRegistry(ServiceRegistry serviceRegistry)
Set the service registry
|
void |
setStoreUrl(java.lang.String storeRef)
Set the default store reference
|
getTemplateImageResolver, setTemplateImageResolvergetExtensionName, register, setExtensionName, setProcessorpublic void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic void setStoreUrl(java.lang.String storeRef)
storeRef - the default store referencepublic void setServiceRegistry(ServiceRegistry serviceRegistry)
serviceRegistry - the service registrypublic void setAuthorityDAO(AuthorityDAO authorityDAO)
authorityDAO - authority daopublic void setAuthorityService(AuthorityService authorityService)
authorityService - The authorityService to set.public void setPersonService(PersonService personService)
personService - The personService to set.public void setAuthenticationService(MutableAuthenticationService authenticationService)
authenticationService - the new authentication servicepublic TemplateNode getPerson(java.lang.String username)
username - the username of the person to getpublic TemplateNode getGroup(java.lang.String groupName)
groupName - name of group to getpublic java.util.List getMembers(TemplateNode group)
group - the group to retrieve members forpublic java.util.List getMembers(TemplateNode group, boolean recurse)
group - the group to retrieve members forrecurse - recurse into sub-groupspublic java.util.List getContainerGroups(TemplateNode person)
person - the user (cm:person) to get the containing groups forpublic boolean isAdmin(TemplateNode person)
person - to testpublic boolean isGuest(TemplateNode person)
person - to testpublic java.util.Map getCapabilities(TemplateNode person)
person - the personpublic boolean isAccountEnabled(TemplateNode person)
person - to testCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.