public static final class RolePermission.Builder extends Object implements RolePermissionContract, ModelBuilder, Serializable
RolePermissionContract
.Modifier and Type | Method and Description |
---|---|
RolePermission |
build()
Returns an instance of the object being built by this builder based
on the current state of the builder.
|
static RolePermission.Builder |
create(RolePermissionContract contract)
Creates a RolePermission from an existing
RolePermissionContract . |
static RolePermission.Builder |
create(String id,
String roleId,
String permissionId)
Creates a RolePermission with the required fields.
|
String |
getId()
The unique identifier for an object.
|
String |
getObjectId()
Return the globally unique object id of this object.
|
String |
getPermissionId()
The Permission ID referenced by the Role Permission.
|
String |
getRoleId()
The Role ID referenced by the Role Permission.
|
Long |
getVersionNumber()
Returns the version number for this object.
|
boolean |
isActive()
The active indicator for an object.
|
void |
setActive(boolean active) |
void |
setId(String id) |
void |
setObjectId(String objectId) |
void |
setPermissionId(String permissionId) |
void |
setRoleId(String roleId) |
void |
setVersionNumber(Long versionNumber) |
public static RolePermission.Builder create(String id, String roleId, String permissionId)
public static RolePermission.Builder create(RolePermissionContract contract)
RolePermissionContract
.public String getId()
Identifiable
getId
in interface Identifiable
public String getPermissionId()
RolePermissionContract
getPermissionId
in interface RolePermissionContract
public void setPermissionId(String permissionId)
public String getRoleId()
RolePermissionContract
getRoleId
in interface RolePermissionContract
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public void setVersionNumber(Long versionNumber)
public String getObjectId()
GloballyUnique
getObjectId
in interface GloballyUnique
public void setObjectId(String objectId)
public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public void setActive(boolean active)
public RolePermission build()
ModelBuilder
build
in interface ModelBuilder
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.