org.jasig.portal.groups
Class CompositeEntityIdentifier
java.lang.Object
org.jasig.portal.EntityIdentifier
org.jasig.portal.groups.CompositeEntityIdentifier
- All Implemented Interfaces:
- Serializable, IGroupConstants
- Direct Known Subclasses:
- CompositeServiceIdentifier
public class CompositeEntityIdentifier
- extends EntityIdentifier
- implements IGroupConstants
A composite key and type that uniquely identify a portal entity. The composite
key contains a service name, which may be compound, and a native key, which is
the key that identifies the entity in the local service.
- Version:
- $Revision: 19776 $
- Author:
- Dan Ellentuck
- See Also:
- Serialized Form
separator
protected static String separator
compositeKey
protected Name compositeKey
cachedCompositeKey
protected String cachedCompositeKey
cachedLocalKey
protected String cachedLocalKey
cachedServiceName
protected Name cachedServiceName
CompositeEntityIdentifier
public CompositeEntityIdentifier(String entityKey,
Class entityType)
throws GroupsException
- Parameters:
entityKey - java.lang.StringentityType - java.lang.Class
- Throws:
GroupsException
getCompositeKey
protected Name getCompositeKey()
- Returns:
- javax.naming.Name
getKey
public String getKey()
- Overrides:
getKey in class EntityIdentifier
- Returns:
- java.lang.String
getLocalKey
public String getLocalKey()
- Returns:
- java.lang.String
getParser
protected NameParser getParser()
- Returns:
- javax.naming.NameParser
getServiceName
public Name getServiceName()
- If the composite key is either empty or has a single node, there is
no service name.
- Returns:
- javax.naming.Name
newName
public Name newName()
throws InvalidNameException
- Returns a new empty Name
- Throws:
InvalidNameException
popNode
public String popNode()
throws InvalidNameException
- Returns:
- String - the removed component
- Throws:
InvalidNameException
pushNode
public Name pushNode(String newNode)
throws InvalidNameException
- Returns:
- javax.naming.Name
- Throws:
InvalidNameException
setCompositeKey
public void setCompositeKey(Name newCompositeKey)
- Parameters:
newCompositeKey - javax.naming.Name
setServiceName
public void setServiceName(Name newServiceName)
throws InvalidNameException
- Parameters:
newServiceName - javax.naming.Name
- Throws:
InvalidNameException
size
protected int size()
- Returns:
- int
toString
public String toString()
- Returns a String that represents the value of this object.
- Overrides:
toString in class EntityIdentifier
- Returns:
- java.lang.String
- See Also:
Object.toString()
parseCompoundKey
public Name parseCompoundKey(String key)
throws NamingException
- Returns a CompoundName parsed from key
- Throws:
NamingException
Copyright © 2010 Jasig. All Rights Reserved.