public class People extends BaseTemplateProcessorExtension implements org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
People() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
Map<String,Boolean> |
getCapabilities(TemplateNode person)
Gets a map of capabilities (boolean assertions) for the given person.
|
List<TemplateNode> |
getContainerGroups(TemplateNode person)
Gets the groups that contain the specified authority
|
TemplateNode |
getGroup(String groupName)
Gets the Group given the group name
|
List<TemplateNode> |
getMembers(TemplateNode group)
Gets the members (people) of a group (including all sub-groups)
|
List<TemplateNode> |
getMembers(TemplateNode group,
boolean recurse)
Gets the members (people) of a group
|
TemplateNode |
getPerson(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(String storeRef)
Set the default store reference
|
getTemplateImageResolver, setTemplateImageResolver
getExtensionName, register, setExtensionName, setProcessor
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void setStoreUrl(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(String username)
username
- the username of the person to getpublic TemplateNode getGroup(String groupName)
groupName
- name of group to getpublic List<TemplateNode> getMembers(TemplateNode group)
group
- the group to retrieve members forpublic List<TemplateNode> getMembers(TemplateNode group, boolean recurse)
group
- the group to retrieve members forrecurse
- recurse into sub-groupspublic List<TemplateNode> 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 Map<String,Boolean> getCapabilities(TemplateNode person)
person
- the personpublic boolean isAccountEnabled(TemplateNode person)
person
- to testCopyright © 2005–2017 Alfresco Software. All rights reserved.