org.kuali.rice.kim.impl.permission
Class PermissionBo

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by org.kuali.rice.kim.impl.permission.PermissionBo
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, Inactivatable, GloballyUnique, Identifiable, Versioned, ModelObjectBasic, PermissionContract, BusinessObject, PersistableBusinessObject
Direct Known Subclasses:
UberPermissionBo

@Entity
public class PermissionBo
extends PersistableBusinessObjectBase
implements PermissionContract

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
PermissionBo()
           
 
Method Summary
static PermissionBo from(Permission im)
          Converts a immutable object to its mutable counterpart
 List<PermissionAttributeBo> getAttributeDetails()
           
 Map<String,String> getAttributes()
          Attributes for a Permission.
 String getDescription()
          The description of the Permission.
 String getDetailObjectsToDisplay()
           
 String getDetailObjectsValues()
           
 Map<String,String> getDetails()
           
 String getId()
          The unique identifier for an object.
 String getName()
          The name of the Permission.
 String getNamespaceCode()
          The namespace code that this Permission belongs too.
 List<org.kuali.rice.kim.impl.role.RolePermissionBo> getRolePermissions()
           
 PermissionTemplateBo getTemplate()
          The Template referenced by the Permission.
 String getTemplateId()
           
 boolean isActive()
          The active indicator for an object.
 void setActive(boolean active)
           
 void setAttributeDetails(List<PermissionAttributeBo> attributeDetails)
           
 void setAttributes(Map<String,String> attributes)
           
 void setDescription(String description)
           
 void setId(String id)
           
 void setName(String name)
           
 void setNamespaceCode(String namespaceCode)
           
 void setRolePermissions(List<org.kuali.rice.kim.impl.role.RolePermissionBo> rolePermissions)
           
 void setTemplate(PermissionTemplateBo template)
           
 void setTemplateId(String templateId)
           
static Permission to(PermissionBo bo)
          Converts a mutable bo to its immutable counterpart
 
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.Versioned
getVersionNumber
 
Methods inherited from interface org.kuali.rice.core.api.mo.common.GloballyUnique
getObjectId
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Constructor Detail

PermissionBo

public PermissionBo()
Method Detail

getAttributes

public Map<String,String> getAttributes()
Description copied from interface: PermissionContract
Attributes for a Permission.

Specified by:
getAttributes in interface PermissionContract
Returns:
attributes

getDetails

public Map<String,String> getDetails()

getId

public String getId()
Description copied from interface: Identifiable
The unique identifier for an object. This can be null.

Specified by:
getId in interface Identifiable
Returns:
the id

setId

public void setId(String id)

getNamespaceCode

public String getNamespaceCode()
Description copied from interface: PermissionContract
The namespace code that this Permission belongs too.

Specified by:
getNamespaceCode in interface PermissionContract
Returns:
namespaceCode

setNamespaceCode

public void setNamespaceCode(String namespaceCode)

getName

public String getName()
Description copied from interface: PermissionContract
The name of the Permission.

Specified by:
getName in interface PermissionContract
Returns:
name

setName

public void setName(String name)

getDescription

public String getDescription()
Description copied from interface: PermissionContract
The description of the Permission.

Specified by:
getDescription in interface PermissionContract
Returns:
description

setDescription

public void setDescription(String description)

getTemplateId

public String getTemplateId()

setTemplateId

public void setTemplateId(String templateId)

isActive

public boolean isActive()
Description copied from interface: Inactivatable
The active indicator for an object.

Specified by:
isActive in interface Inactivatable
Returns:
true if active false if not.

setActive

public void setActive(boolean active)

getAttributeDetails

public List<PermissionAttributeBo> getAttributeDetails()

setAttributeDetails

public void setAttributeDetails(List<PermissionAttributeBo> attributeDetails)

getRolePermissions

public List<org.kuali.rice.kim.impl.role.RolePermissionBo> getRolePermissions()

setRolePermissions

public void setRolePermissions(List<org.kuali.rice.kim.impl.role.RolePermissionBo> rolePermissions)

setAttributes

public void setAttributes(Map<String,String> attributes)

to

public static Permission to(PermissionBo bo)
Converts a mutable bo to its immutable counterpart

Parameters:
bo - the mutable business object
Returns:
the immutable object

from

public static PermissionBo from(Permission im)
Converts a immutable object to its mutable counterpart

Parameters:
im - immutable object
Returns:
the mutable bo

getTemplate

public PermissionTemplateBo getTemplate()
Description copied from interface: PermissionContract
The Template referenced by the Permission.

Specified by:
getTemplate in interface PermissionContract
Returns:
templateId

setTemplate

public void setTemplate(PermissionTemplateBo template)

getDetailObjectsValues

public String getDetailObjectsValues()

getDetailObjectsToDisplay

public String getDetailObjectsToDisplay()


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.