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 javax.naming.Name;
09:
10: /**
11: * A composite key that identifies a component group service.
12: *
13: * @author Dan Ellentuck
14: * @version $Revision: 34758 $
15: */
16: public class CompositeServiceIdentifier extends
17: CompositeEntityIdentifier {
18: /**
19: * CompositeServiceIdentifier.
20: * @param serviceKey java.lang.String
21: * @exception org.jasig.portal.groups.GroupsException
22: */
23: public CompositeServiceIdentifier(String serviceKey)
24: throws GroupsException {
25: super (serviceKey,
26: org.jasig.portal.EntityTypes.GROUP_ENTITY_TYPE);
27: }
28:
29: /**
30: * CompositeServiceIdentifier.
31: * @param entityKey java.lang.String
32: * @param entityType java.lang.Class
33: * @exception org.jasig.portal.groups.GroupsException
34: */
35: public CompositeServiceIdentifier(String entityKey, Class entityType)
36: throws GroupsException {
37: super (entityKey, entityType);
38: }
39:
40: /**
41: * The service name is the entire key.
42: * @return javax.naming.Name
43: */
44: public Name getServiceName() {
45: return getCompositeKey();
46: }
47:
48: /**
49: * Returns a String that represents the value of this object.
50: * @return java.lang.String
51: */
52: public String toString() {
53: return "CompositeServiceIdentifier (" + getKey() + ")";
54:
55: }
56: }
|