public class GroovyPersonAttributeDao extends BasePersonAttributeDao
IPersonAttributeDao that is able to resolve attributes
based on an external Groovy script, Groovy object, or Java object. Changes to the groovy script can be auto-detected
in certain use cases.
There are several ways to use this Dao.
Approach 1: Groovy file pre-compiled to Java class file
Spring configuration:
Groovy file:
class SampleGroovyPersonAttributeDao implements org.jasig.services.persondir.IPersonAttributeScriptDao {loggerWILDCARD, WILDCARD_PATTERN| Constructor and Description |
|---|
GroovyPersonAttributeDao(IPersonAttributeScriptDao groovyObject) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAvailableQueryAttributes() |
Set<IPersonAttributes> |
getPeople(Map<String,Object> attributes) |
Set<IPersonAttributes> |
getPeopleWithMultivaluedAttributes(Map<String,List<Object>> attributes) |
IPersonAttributes |
getPerson(String uid) |
Set<String> |
getPossibleUserAttributeNames() |
void |
setAvailableQueryAttributes(Set<String> availableQueryAttributes) |
void |
setCaseInsensitiveUsername(boolean caseInsensitiveUsername) |
void |
setPossibleUserAttributeNames(Set<String> possibleUserAttributeNames) |
flattenResults, getMultivaluedUserAttributes, getMultivaluedUserAttributes, getUserAttributes, getUserAttributespublic GroovyPersonAttributeDao(IPersonAttributeScriptDao groovyObject)
public void setCaseInsensitiveUsername(boolean caseInsensitiveUsername)
public IPersonAttributes getPerson(String uid)
public Set<IPersonAttributes> getPeople(Map<String,Object> attributes)
public Set<IPersonAttributes> getPeopleWithMultivaluedAttributes(Map<String,List<Object>> attributes)
public void setPossibleUserAttributeNames(Set<String> possibleUserAttributeNames)
public void setAvailableQueryAttributes(Set<String> availableQueryAttributes)
Copyright © 2015 Jasig. All Rights Reserved.