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

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.GenericPermissionBo
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, GloballyUnique, Versioned, ModelObjectBasic, BusinessObject, PersistableBusinessObject

@Entity
public class GenericPermissionBo
extends PersistableBusinessObjectBase

See Also:
Serialized Form

Field Summary
protected  boolean active
           
protected  List<PermissionAttributeBo> attributeDetails
           
protected  String description
           
protected  Map<String,String> details
           
protected  String detailValues
           
protected  String id
           
protected  String name
           
protected  String namespaceCode
           
protected  PermissionTemplateBo template
           
protected  String templateId
           
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, newCollectionRecord, objectId, versionNumber
 
Constructor Summary
GenericPermissionBo()
          This constructs a ...
GenericPermissionBo(PermissionBo perm)
           
 
Method Summary
 List<PermissionAttributeBo> getAttributeDetails()
           
 String getDescription()
           
 Map<String,String> getDetails()
           
 String getDetailValues()
           
 String getId()
           
 String getName()
           
 String getNamespaceCode()
           
 PermissionTemplateBo getTemplate()
           
 String getTemplateId()
           
 boolean isActive()
           
 void loadFromPermission(PermissionBo perm)
           
protected  void prePersist()
          Default implementation of the JPA PrePersist hook which generates the unique objectId for this persistable business object if it does not already have one.
protected  void preRemove()
          Default implementation of the JPA PreRemove hook.
protected  void preUpdate()
          Default implementation of the JPA PreUpdate hook which generates the unique objectId for this persistable business object if it does not already have one.
 void refreshNonUpdateableReferences()
           
 void refreshReferenceObject(String referenceObjectName)
          This method is used to refresh a reference object that hangs off of a document.
 void setActive(boolean active)
           
 void setAttributeDetails(List<PermissionAttributeBo> attributeDetails)
           
 void setDescription(String permissionDescription)
           
 void setDetails(Map<String,String> details)
           
 void setDetailValues(Map<String,String> detailsAttribs)
           
 void setDetailValues(String detailValues)
           
 void setId(String id)
           
 void setName(String permissionName)
           
 void setNamespaceCode(String namespaceCode)
           
 void setTemplate(PermissionTemplateBo template)
           
 void setTemplateId(String templateId)
           
static PermissionBo toPermissionBo(GenericPermissionBo bo)
           
 
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getLegacyDataAdapter, getObjectId, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, refresh, 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.ModelObjectBasic
toString
 

Field Detail

id

protected String id

namespaceCode

protected String namespaceCode

name

protected String name

description

protected String description

active

protected boolean active

templateId

protected String templateId

detailValues

protected String detailValues

details

protected Map<String,String> details

template

protected PermissionTemplateBo template

attributeDetails

protected List<PermissionAttributeBo> attributeDetails
Constructor Detail

GenericPermissionBo

public GenericPermissionBo()
This constructs a ...


GenericPermissionBo

public GenericPermissionBo(PermissionBo perm)
Method Detail

loadFromPermission

public void loadFromPermission(PermissionBo perm)

getDetailValues

public String getDetailValues()

setDetailValues

public void setDetailValues(String detailValues)

setDetailValues

public void setDetailValues(Map<String,String> detailsAttribs)

isActive

public boolean isActive()

setActive

public void setActive(boolean active)

getDescription

public String getDescription()

getId

public String getId()

getName

public String getName()

getTemplate

public PermissionTemplateBo getTemplate()

setDescription

public void setDescription(String permissionDescription)

setName

public void setName(String permissionName)

setDetails

public void setDetails(Map<String,String> details)

getTemplateId

public String getTemplateId()

setTemplateId

public void setTemplateId(String templateId)

setTemplate

public void setTemplate(PermissionTemplateBo template)

getDetails

public Map<String,String> getDetails()

getNamespaceCode

public String getNamespaceCode()

setNamespaceCode

public void setNamespaceCode(String namespaceCode)

setId

public void setId(String id)

getAttributeDetails

public List<PermissionAttributeBo> getAttributeDetails()

setAttributeDetails

public void setAttributeDetails(List<PermissionAttributeBo> attributeDetails)

refreshNonUpdateableReferences

public void refreshNonUpdateableReferences()
Specified by:
refreshNonUpdateableReferences in interface PersistableBusinessObject
Overrides:
refreshNonUpdateableReferences in class PersistableBusinessObjectBase
See Also:
BusinessObject.refresh()

refreshReferenceObject

public void refreshReferenceObject(String referenceObjectName)
Description copied from interface: PersistableBusinessObject
This method is used to refresh a reference object that hangs off of a document. For example, if the attribute's keys were updated for a reference object, but the reference object wasn't, this method would go out and retrieve the reference object.

Specified by:
refreshReferenceObject in interface PersistableBusinessObject
Overrides:
refreshReferenceObject in class PersistableBusinessObjectBase

prePersist

protected void prePersist()
Description copied from class: PersistableBusinessObjectBase
Default implementation of the JPA PrePersist hook which generates the unique objectId for this persistable business object if it does not already have one. Any sub-class which overrides this method should take care to invoke super.prePersist to ensure that the objectId for this persistable business object is generated properly.

This method is currently invoked by the corresponding OJB PersistableBusinessObjectBase.beforeInsert(PersistenceBroker) hook.

Overrides:
prePersist in class PersistableBusinessObjectBase

preUpdate

protected void preUpdate()
Description copied from class: PersistableBusinessObjectBase
Default implementation of the JPA PreUpdate hook which generates the unique objectId for this persistable business object if it does not already have one. Any sub-class which overrides this method should take care to invoke super.preUpdate to ensure that the objectId for this persistable business object is generated properly.

This method is currently invoked by the corresponding OJB PersistableBusinessObjectBase.beforeUpdate(PersistenceBroker) hook.

Overrides:
preUpdate in class PersistableBusinessObjectBase

preRemove

protected void preRemove()
Description copied from class: PersistableBusinessObjectBase
Default implementation of the JPA PreRemove hook. This implementation currently does nothing, however sub-classes can implement this method if needed.

This method is currently invoked by the corresponding OJB PersistableBusinessObjectBase.beforeDelete(PersistenceBroker) hook.

Overrides:
preRemove in class PersistableBusinessObjectBase

toPermissionBo

public static PermissionBo toPermissionBo(GenericPermissionBo bo)


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.