Package org.kuali.rice.kim.api.role
Class Role.Builder
java.lang.Object
org.kuali.rice.kim.api.role.Role.Builder
- All Implemented Interfaces:
Serializable,Inactivatable,GloballyUnique,Identifiable,Versioned,ModelBuilder,ModelObjectBasic,ModelObjectComplete,RoleContract
- Enclosing class:
- Role
public static final class Role.Builder
extends Object
implements RoleContract, ModelBuilder, ModelObjectComplete
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static Role.Buildercreate()static Role.Builderstatic Role.Buildercreate(RoleContract roleContract) booleanA full textual description of this role.getId()Provides the associated KimType identifier for this role.getName()The human readable name for this role.A namespace for this role.inthashCode()booleanisActive()voidsetActive(boolean active) voidsetDescription(String description) voidvoidsetKimTypeId(String kimTypeId) voidvoidsetNamespaceCode(String namespaceCode) voidsetObjectId(String objectId) voidsetVersionNumber(Long versionNumber) toString()
-
Method Details
-
create
-
create
-
create
-
build
- Specified by:
buildin interfaceModelBuilder
-
setId
-
getId
- Specified by:
getIdin interfaceIdentifiable
-
setNamespaceCode
-
getNamespaceCode
Description copied from interface:RoleContractA namespace for this role. A namespace for a role identifies the system/module to which this role applies.- Specified by:
getNamespaceCodein interfaceRoleContract- Returns:
- Namespace for the role.
-
setName
-
getName
Description copied from interface:RoleContractThe human readable name for this role.- Specified by:
getNamein interfaceRoleContract- Returns:
- Human readable role name.
-
setDescription
-
getDescription
Description copied from interface:RoleContractA full textual description of this role. This String should provide a verbose description of the role, what it is meant to provide to principals assigned to it, and what permissions it implies.- Specified by:
getDescriptionin interfaceRoleContract- Returns:
- Description of the role.
-
setKimTypeId
-
getKimTypeId
Description copied from interface:RoleContractProvides the associated KimType identifier for this role. This controls what additional attributes are available.- Specified by:
getKimTypeIdin interfaceRoleContract- Returns:
- KimType Id
-
setActive
public void setActive(boolean active) -
isActive
public boolean isActive()- Specified by:
isActivein interfaceInactivatable
-
setVersionNumber
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-
setObjectId
-
getObjectId
- Specified by:
getObjectIdin interfaceGloballyUnique
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceModelObjectComplete- Overrides:
hashCodein classObject
-
equals
- Specified by:
equalsin interfaceModelObjectComplete- Overrides:
equalsin classObject
-
toString
- Specified by:
toStringin interfaceModelObjectBasic- Overrides:
toStringin classObject
-