org.kuali.rice.kim.impl.identity.principal
Class PrincipalBo

java.lang.Object
  extended by org.kuali.rice.krad.bo.DataObjectBase
      extended by org.kuali.rice.kim.impl.identity.principal.PrincipalBo
All Implemented Interfaces:
Serializable, Inactivatable, GloballyUnique, Versioned, PrincipalContract

@Entity
public class PrincipalBo
extends DataObjectBase
implements PrincipalContract

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

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.DataObjectBase
objectId, versionNumber
 
Constructor Summary
PrincipalBo()
           
 
Method Summary
static PrincipalBo from(Principal immutable)
          Creates a PrincipalBo business object from an immutable representation of a Principal.
 boolean getActive()
           
 String getEntityId()
          Gets this PrincipalContract's identity id.
 String getPassword()
           
 String getPrincipalId()
          Gets this PrincipalContract's id.
 String getPrincipalName()
          Gets this PrincipalContract's name.
 boolean isActive()
          The active indicator for an object.
 void setActive(boolean active)
           
 void setEntityId(String entityId)
           
 void setPassword(String password)
           
 void setPrincipalId(String principalId)
           
 void setPrincipalName(String principalName)
           
static Principal to(PrincipalBo bo)
           
 
Methods inherited from class org.kuali.rice.krad.bo.DataObjectBase
generateAndSetObjectIdIfNeeded, getExtensionObject, getObjectId, getVersionNumber, prePersist, preUpdate, setExtensionObject, setObjectId, setVersionNumber, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.Versioned
getVersionNumber
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.GloballyUnique
getObjectId
 

Constructor Detail

PrincipalBo

public PrincipalBo()
Method Detail

to

public static Principal to(PrincipalBo bo)

from

public static PrincipalBo from(Principal immutable)
Creates a PrincipalBo business object from an immutable representation of a Principal.

Parameters:
immutable - an immutable Principal
Returns:
a PrincipalBo

getPrincipalId

public String getPrincipalId()
Description copied from interface: PrincipalContract
Gets this PrincipalContract's id.

Specified by:
getPrincipalId in interface PrincipalContract
Returns:
the id for this PrincipalContract, or null if none has been assigned.

setPrincipalId

public void setPrincipalId(String principalId)

getPrincipalName

public String getPrincipalName()
Description copied from interface: PrincipalContract
Gets this PrincipalContract's name.

Specified by:
getPrincipalName in interface PrincipalContract
Returns:
the name for this PrincipalContract, this value cannot be null.

setPrincipalName

public void setPrincipalName(String principalName)

getEntityId

public String getEntityId()
Description copied from interface: PrincipalContract
Gets this PrincipalContract's identity id.

Specified by:
getEntityId in interface PrincipalContract
Returns:
the identity id for this PrincipalContract, or null if none has been assigned.

setEntityId

public void setEntityId(String entityId)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

getActive

public boolean getActive()

isActive

public boolean isActive()
Description copied from interface: Inactivatable
The active indicator for an object.

Specified by:
isActive in interface Inactivatable
Returns:
true if active false if not.

setActive

public void setActive(boolean active)


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.