|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kim.api.identity.principal.Principal.Builder
public static final class Principal.Builder
A builder which can be used to construct Principal
instances. Enforces the constraints of the PrincipalContract
.
Method Summary | |
---|---|
Principal |
build()
Returns an instance of the object being built by this builder based on the current state of the builder. |
static Principal.Builder |
create(PrincipalContract contract)
|
static Principal.Builder |
create(String principalName)
|
String |
getEntityId()
Gets this PrincipalContract 's identity id. |
String |
getObjectId()
Return the globally unique object id of this object. |
String |
getPrincipalId()
Gets this PrincipalContract 's id. |
String |
getPrincipalName()
Gets this PrincipalContract 's name. |
Long |
getVersionNumber()
Returns the version number for this object. |
boolean |
isActive()
The active indicator for an object. |
void |
setActive(boolean active)
|
void |
setEntityId(String entityId)
|
void |
setObjectId(String objectId)
|
void |
setPrincipalId(String principalId)
|
void |
setPrincipalName(String principalName)
|
void |
setVersionNumber(Long versionNumber)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Principal.Builder create(String principalName)
public static Principal.Builder create(PrincipalContract contract)
public Principal build()
ModelBuilder
build
in interface ModelBuilder
public String getPrincipalId()
PrincipalContract
PrincipalContract
's id.
getPrincipalId
in interface PrincipalContract
PrincipalContract
, or null if none has been assigned.public String getPrincipalName()
PrincipalContract
PrincipalContract
's name.
getPrincipalName
in interface PrincipalContract
PrincipalContract
, this value cannot be null.public String getEntityId()
PrincipalContract
PrincipalContract
's identity id.
getEntityId
in interface PrincipalContract
PrincipalContract
, or null if none has been assigned.public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public String getObjectId()
GloballyUnique
getObjectId
in interface GloballyUnique
public void setPrincipalId(String principalId)
public void setPrincipalName(String principalName)
public void setEntityId(String entityId)
public void setActive(boolean active)
public void setVersionNumber(Long versionNumber)
public void setObjectId(String objectId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |