|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IPersonAttributeDao
Defines methods for finding a IPersonAttributes or Set of IPersons based on a user ID or a Map of user attributes to
query with.
| Field Summary | |
|---|---|
static String |
WILDCARD
|
static Pattern |
WILDCARD_PATTERN
|
| Method Summary | |
|---|---|
Set<String> |
getAvailableQueryAttributes()
Gets a Set of attribute names that this implementation knows how to use in a query. |
Map<String,List<Object>> |
getMultivaluedUserAttributes(Map<String,List<Object>> seed)
Deprecated. Use getPeople(Map) instead. This method will be removed in 1.6 |
Map<String,List<Object>> |
getMultivaluedUserAttributes(String uid)
Deprecated. Use getPerson(String) instead. This method will be removed in 1.6 |
Set<IPersonAttributes> |
getPeople(Map<String,Object> query)
Searches for IPersonAttributess that match the set of attributes provided in the query Map. |
Set<IPersonAttributes> |
getPeopleWithMultivaluedAttributes(Map<String,List<Object>> query)
Searches for IPersonAttributess that match the set of attributes provided in the query Map. |
IPersonAttributes |
getPerson(String uid)
Searches for a single IPersonAttributes using the specified uid (userName).This method returns according to the following rules: If the user exists and has attributes a populated IPersonAttributes is returned.
If the user exists and has no attributes an IPersonAttributes with an empty attributes Map is returned.
If the user doesn't exist null is returned.
If an error occurs while find the person an appropriate exception will be thrown.
|
Set<String> |
getPossibleUserAttributeNames()
Gets a Set of attribute names that may be returned for an IPersonAttributes. |
Map<String,Object> |
getUserAttributes(Map<String,Object> seed)
Deprecated. Use getPeople(Map) instead. This method will be removed in 1.6 |
Map<String,Object> |
getUserAttributes(String uid)
Deprecated. Use getPerson(String) instead. This method will be removed in 1.6 |
| Field Detail |
|---|
static final String WILDCARD
static final Pattern WILDCARD_PATTERN
| Method Detail |
|---|
IPersonAttributes getPerson(String uid)
IPersonAttributes using the specified uid (userName).IPersonAttributes is returned.IPersonAttributes with an empty attributes Map is returned.null is returned.
uid - The userName of the person to find.
IPersonAttributes for the specified uid, null if no person could be found for the uid.
IllegalArgumentException - If uid is null.Set<IPersonAttributes> getPeople(Map<String,Object> query)
IPersonAttributess that match the set of attributes provided in the query Map. Each
implementation is free to define what qualifies as a 'match' is on its own. The provided query Map contains
String attribute names and single values which may be null.
Map null should be returned. For unexpected problems throw an exception.
query - A Map of name/value pair attributes to use in searching for IPersonAttributess
Set of IPersonAttributess that match the query Map. If no matches are found an empty Set is returned. If the query could not be run null is returned.
IllegalArgumentException - If query is null.Set<IPersonAttributes> getPeopleWithMultivaluedAttributes(Map<String,List<Object>> query)
IPersonAttributess that match the set of attributes provided in the query Map. Each
implementation is free to define what qualifies as a 'match' is on its own. The provided query Map contains
String attribute names and single values which may be null.
Map null should be returned. For unexpected problems throw an exception.
query - A Map of name/value pair attributes to use in searching for IPersonAttributess
Set of IPersonAttributess that match the query Map. If no matches are found an empty Set is returned. If the query could not be run null is returned.
IllegalArgumentException - If query is null.Set<String> getPossibleUserAttributeNames()
Set of attribute names that may be returned for an IPersonAttributes. The names returned represent all
possible attributes names for the IPersonAttributes objects returned by the get methods. If the dao doesn't have a
way to know all possible attribute names this method should return null.
Set.
Set of possible attribute names for user queries.Set<String> getAvailableQueryAttributes()
Set of attribute names that this implementation knows how to use in a query. The names returned
represent all possible names for query attributes for this implmenentation. If the dao doesn't have a way to know
all possible query attribute names this method should return null
Set.
@Deprecated Map<String,List<Object>> getMultivaluedUserAttributes(Map<String,List<Object>> seed)
getPeople(Map) instead. This method will be removed in 1.6
Map of the attributes of the first IPersonAttributes returned by calling
getPeople(Map)
@Deprecated Map<String,List<Object>> getMultivaluedUserAttributes(String uid)
getPerson(String) instead. This method will be removed in 1.6
Map of the attributes of the IPersonAttributes returned by calling
getPerson(String)
@Deprecated Map<String,Object> getUserAttributes(Map<String,Object> seed)
getPeople(Map) instead. This method will be removed in 1.6
Map of the single-valued attributes of the first IPersonAttributes returned by calling
getPeople(Map)
@Deprecated Map<String,Object> getUserAttributes(String uid)
getPerson(String) instead. This method will be removed in 1.6
Map of the single-valued attributes of the IPersonAttributes returned by calling
getPerson(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||