|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.groups.PersonDirNameFinder
public class PersonDirNameFinder
Implementation of IEntityNameFinder for IPersons by
looking up displayName from an IPersonAttributeDao.
| Field Summary | |
|---|---|
private java.util.Map |
names
Our cache of entity names: |
private IPersonAttributeDao |
paDao
Data Access Object backing this name finder. |
| Constructor Summary | |
|---|---|
PersonDirNameFinder(IPersonAttributeDao pa)
Instantiate a PersonDirNameFinder backed by the given IPersonAttributeDao. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName(java.lang.String key)
Given the key, returns the entity's name. |
java.util.Map |
getNames(java.lang.String[] keys)
Given an array of keys, returns the names of the entities. |
java.lang.Class |
getType()
Returns the entity type for this IEntityFinder. |
private java.lang.String |
primGetName(java.lang.String key)
Actually lookup a user name using the underlying IPersonAttributeDao. |
static IEntityNameFinder |
singleton()
Deprecated. as of uP 2.5 instead use PersonDirNameFinderFactory |
java.lang.String |
toString()
Returns a String that represents the value of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private IPersonAttributeDao paDao
private java.util.Map names
| Constructor Detail |
|---|
PersonDirNameFinder(IPersonAttributeDao pa)
pa - DAO to back this PersonDirNameFinder| Method Detail |
|---|
public java.lang.String getName(java.lang.String key)
IEntityNameFinder
getName in interface IEntityNameFinderkey - java.lang.Stringpublic java.util.Map getNames(java.lang.String[] keys)
IEntityNameFinder
getNames in interface IEntityNameFinderkeys - java.lang.String[]public java.lang.Class getType()
IEntityNameFinderIEntityFinder.
getType in interface IEntityNameFinderprivate java.lang.String primGetName(java.lang.String key)
key - - entity key which in this case is a unique identifier for a user
public static IEntityNameFinder singleton()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||