01: /* Copyright 2002 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.groups;
07:
08: import java.util.Map;
09:
10: /**
11: * Interface for finding the names of portal entities of a given type.
12: * @author Dan Ellentuck
13: * @version $Revision: 34758 $
14: */
15:
16: public interface IEntityNameFinder {
17: /**
18: * Given the key, returns the entity's name.
19: * @param key java.lang.String
20: */
21: public String getName(String key) throws Exception;
22:
23: /**
24: * Given an array of keys, returns the names of the entities.
25: * @param keys java.lang.String[]
26: */
27: public Map getNames(String[] keys) throws Exception;
28:
29: /**
30: * Returns the entity type for this <code>IEntityFinder</code>.
31: * @return java.lang.Class
32: */
33: public Class getType();
34: }
|