|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.processor.BaseProcessorExtension
org.alfresco.repo.template.BaseTemplateProcessorExtension
org.alfresco.repo.template.People
public class People
People and users support in FreeMarker templates.
Constructor Summary | |
---|---|
People()
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.alfresco.repo.template.BaseTemplateProcessorExtension |
---|
getTemplateImageResolver, setTemplateImageResolver |
Methods inherited from class org.alfresco.repo.processor.BaseProcessorExtension |
---|
getExtensionName, register, setExtensionName, setProcessor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.alfresco.processor.ProcessorExtension |
---|
getExtensionName |
Constructor Detail |
---|
public People()
Method Detail |
---|
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public 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 get
public TemplateNode getGroup(java.lang.String groupName)
groupName
- name of group to get
public java.util.List getMembers(TemplateNode group)
group
- the group to retrieve members for
public java.util.List getMembers(TemplateNode group, boolean recurse)
group
- the group to retrieve members forrecurse
- recurse into sub-groups
public java.util.List getContainerGroups(TemplateNode person)
person
- the user (cm:person) to get the containing groups for
public boolean isAdmin(TemplateNode person)
person
- to test
public boolean isGuest(TemplateNode person)
person
- to test
public java.util.Map getCapabilities(TemplateNode person)
person
- the person
public boolean isAccountEnabled(TemplateNode person)
person
- to test
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |