uPortal 2.4.1
API Documentation

org.jasig.portal.groups
Class ReferencePersonNameFinder

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

public class ReferencePersonNameFinder
extends java.lang.Object
implements IEntityNameFinder

Reference implementation of IEntityNameFinder for IPersons.

Version:
$Revision: 1.7.2.1 $
Author:
Dan Ellentuck

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.
static IEntityNameFinder singleton()
           
 java.lang.String toString()
          Returns a String that represents the value of this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

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

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

getNames

public java.util.Map getNames(java.lang.String[] keys)
                       throws java.lang.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:
java.lang.Exception

getType

public java.lang.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 java.sql.SQLException
Returns:
IEntityNameFinder
Throws:
java.sql.SQLException

toString

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

Returns:
a string representation of the receiver

uPortal 2.4.1
API Documentation