Class Template.Builder

java.lang.Object
org.kuali.rice.kim.api.common.template.Template.Builder
All Implemented Interfaces:
Serializable, org.kuali.rice.core.api.mo.common.active.Inactivatable, org.kuali.rice.core.api.mo.common.GloballyUnique, org.kuali.rice.core.api.mo.common.Identifiable, org.kuali.rice.core.api.mo.common.Versioned, org.kuali.rice.core.api.mo.ModelBuilder, TemplateContract
Enclosing class:
Template

public static final class Template.Builder extends Object implements TemplateContract, org.kuali.rice.core.api.mo.ModelBuilder, Serializable
This builder constructs a Template enforcing the constraints of the TemplateContract.
See Also:
  • Method Details

    • create

      public static Template.Builder create(String namespaceCode, String name, String kimTypeId)
      creates a KimPermission with the required fields.
    • create

      public static Template.Builder create(TemplateContract contract)
      creates a KimPermission from an existing TemplateContract.
    • getId

      public String getId()
      Specified by:
      getId in interface org.kuali.rice.core.api.mo.common.Identifiable
    • setId

      public void setId(String id)
    • getNamespaceCode

      public String getNamespaceCode()
      Description copied from interface: TemplateContract
      The namespace code that this KIM Permission Template belongs too.
      Specified by:
      getNamespaceCode in interface TemplateContract
      Returns:
      namespaceCode
    • setNamespaceCode

      public void setNamespaceCode(String namespaceCode)
    • getName

      public String getName()
      Description copied from interface: TemplateContract
      The name of the KIM Permission Template.
      Specified by:
      getName in interface TemplateContract
      Returns:
      name
    • setName

      public void setName(String name)
    • getDescription

      public String getDescription()
      Description copied from interface: TemplateContract
      The description of the KIM Permission Template.
      Specified by:
      getDescription in interface TemplateContract
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • getKimTypeId

      public String getKimTypeId()
      Description copied from interface: TemplateContract
      The KIM Type ID referenced by the KIM Permission Template.
      Specified by:
      getKimTypeId in interface TemplateContract
      Returns:
      typeId
    • setKimTypeId

      public void setKimTypeId(String kimTypeId)
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface org.kuali.rice.core.api.mo.common.active.Inactivatable
    • setActive

      public void setActive(boolean active)
    • getVersionNumber

      public Long getVersionNumber()
      Specified by:
      getVersionNumber in interface org.kuali.rice.core.api.mo.common.Versioned
    • setVersionNumber

      public void setVersionNumber(Long versionNumber)
    • getObjectId

      public String getObjectId()
      Specified by:
      getObjectId in interface org.kuali.rice.core.api.mo.common.GloballyUnique
    • setObjectId

      public void setObjectId(String objectId)
    • build

      public Template build()
      Specified by:
      build in interface org.kuali.rice.core.api.mo.ModelBuilder