Class Template.Builder
java.lang.Object
org.kuali.rice.kim.api.common.template.Template.Builder
- All Implemented Interfaces:
Serializable,Inactivatable,GloballyUnique,Identifiable,Versioned,ModelBuilder,TemplateContract
- Enclosing class:
- Template
public static final class Template.Builder
extends Object
implements TemplateContract, ModelBuilder, Serializable
This builder constructs a Template enforcing the constraints of the
TemplateContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static Template.Buildercreates a KimPermission with the required fields.static Template.Buildercreate(TemplateContract contract) creates a KimPermission from an existingTemplateContract.The description of the KIM Permission Template.getId()The KIM Type ID referenced by the KIM Permission Template.getName()The name of the KIM Permission Template.The namespace code that this KIM Permission Template belongs too.booleanisActive()voidsetActive(boolean active) voidsetDescription(String description) voidvoidsetKimTypeId(String kimTypeId) voidvoidsetNamespaceCode(String namespaceCode) voidsetObjectId(String objectId) voidsetVersionNumber(Long versionNumber)
-
Method Details
-
create
creates a KimPermission with the required fields. -
create
creates a KimPermission from an existingTemplateContract. -
getId
- Specified by:
getIdin interfaceIdentifiable
-
setId
-
getNamespaceCode
Description copied from interface:TemplateContractThe namespace code that this KIM Permission Template belongs too.- Specified by:
getNamespaceCodein interfaceTemplateContract- Returns:
- namespaceCode
-
setNamespaceCode
-
getName
Description copied from interface:TemplateContractThe name of the KIM Permission Template.- Specified by:
getNamein interfaceTemplateContract- Returns:
- name
-
setName
-
getDescription
Description copied from interface:TemplateContractThe description of the KIM Permission Template.- Specified by:
getDescriptionin interfaceTemplateContract- Returns:
- description
-
setDescription
-
getKimTypeId
Description copied from interface:TemplateContractThe KIM Type ID referenced by the KIM Permission Template.- Specified by:
getKimTypeIdin interfaceTemplateContract- Returns:
- typeId
-
setKimTypeId
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceInactivatable
-
setActive
public void setActive(boolean active) -
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-
setVersionNumber
-
getObjectId
- Specified by:
getObjectIdin interfaceGloballyUnique
-
setObjectId
-
build
- Specified by:
buildin interfaceModelBuilder
-