org.kuali.rice.kim.impl.permission
Class GenericPermissionBo
java.lang.Object
org.kuali.rice.krad.bo.BusinessObjectBase
org.kuali.rice.krad.bo.PersistableBusinessObjectBase
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
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 |
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
GenericPermissionBo
public GenericPermissionBo()
- This constructs a ...
GenericPermissionBo
public GenericPermissionBo(PermissionBo perm)
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.