public static final class Principal.Builder extends Object implements Serializable, ModelBuilder, PrincipalContract
Principal
instances. Enforces the constraints of the PrincipalContract
.Modifier and Type | Method and Description |
---|---|
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) |
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)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.