org.kuali.rice.kim.api.common.template
Class Template.Builder

java.lang.Object
  extended by 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:
Serialized Form

Method Summary
 Template build()
           
static Template.Builder create(String namespaceCode, String name, String kimTypeId)
          creates a KimPermission with the required fields.
static Template.Builder create(TemplateContract contract)
          creates a KimPermission from an existing TemplateContract.
 String getDescription()
          The description of the KIM Permission Template.
 String getId()
           
 String getKimTypeId()
          The KIM Type ID referenced by the KIM Permission Template.
 String getName()
          The name of the KIM Permission Template.
 String getNamespaceCode()
          The namespace code that this KIM Permission Template belongs too.
 String getObjectId()
           
 Long getVersionNumber()
           
 boolean isActive()
           
 void setActive(boolean active)
           
 void setDescription(String description)
           
 void setId(String id)
           
 void setKimTypeId(String kimTypeId)
           
 void setName(String name)
           
 void setNamespaceCode(String namespaceCode)
           
 void setObjectId(String objectId)
           
 void setVersionNumber(Long versionNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.