org.jasig.portal.groups
Class ReferencePersonNameFinder

java.lang.Object
  extended by org.jasig.portal.groups.ReferencePersonNameFinder
All Implemented Interfaces:
IEntityNameFinder

public class ReferencePersonNameFinder
extends Object
implements IEntityNameFinder

Reference implementation of IEntityNameFinder for IPersons.

Version:
$Revision: 19776 $
Author:
Dan Ellentuck

Method Summary
 String getName(String key)
          Given the key, returns the entity's name.
 Map getNames(String[] keys)
          Given an array of keys, returns the names of the entities.
 Class getType()
          Returns the entity type for this IEntityFinder.
static IEntityNameFinder singleton()
           
 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
 

Method Detail

getName

public String getName(String key)
               throws Exception
Given the key, returns the entity's name.

Specified by:
getName in interface IEntityNameFinder
Parameters:
key - java.lang.String
Throws:
Exception

getNames

public Map getNames(String[] keys)
             throws Exception
Given an array of keys, returns the names of the entities. If a key is not found, its name will be null.

Specified by:
getNames in interface IEntityNameFinder
Parameters:
keys - java.lang.String[]
Throws:
Exception

getType

public Class getType()
Returns the entity type for this IEntityFinder.

Specified by:
getType in interface IEntityNameFinder
Returns:
java.lang.Class

singleton

public static IEntityNameFinder singleton()
                                   throws SQLException
Returns:
IEntityNameFinder
Throws:
SQLException

toString

public String toString()
Returns a String that represents the value of this object.

Overrides:
toString in class Object
Returns:
a string representation of the receiver


Copyright © 2010 Jasig. All Rights Reserved.