org.kuali.rice.kew.api.identity
Class PrincipalId

java.lang.Object
  extended by org.kuali.rice.kew.api.identity.PrincipalId
All Implemented Interfaces:
Serializable, Id, UserId

public class PrincipalId
extends Object
implements UserId

The primary ID of a Principal in KIM

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Constructor Summary
PrincipalId()
           
PrincipalId(String principalId)
           
 
Method Summary
 boolean equals(Object obj)
          If you make this class non-final, you must rewrite equals to work for subclasses.
 String getId()
          Returns the value of the id as a String
 String getPrincipalId()
           
 int hashCode()
           
 boolean isEmpty()
          Returns true if this userId has an empty value.
 void setPrincipalId(String principalId)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrincipalId

public PrincipalId()

PrincipalId

public PrincipalId(String principalId)
Method Detail

getPrincipalId

public String getPrincipalId()

setPrincipalId

public void setPrincipalId(String principalId)

getId

public String getId()
Description copied from interface: UserId
Returns the value of the id as a String

Specified by:
getId in interface UserId

isEmpty

public boolean isEmpty()
Returns true if this userId has an empty value. Empty userIds can't be used as keys in a Hash, among other things.

Specified by:
isEmpty in interface Id
Returns:
true if this instance doesn't have a value

equals

public boolean equals(Object obj)
If you make this class non-final, you must rewrite equals to work for subclasses.

Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.