org.kuali.rice.kim.bo.impl
Class GenericPermission

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

@Entity
public class GenericPermission
extends PersistableBusinessObjectBase

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
protected  boolean active
           
protected  String description
           
protected  Map<String,String> details
           
protected  String detailValues
           
protected  String name
           
protected  String namespaceCode
           
protected  String permissionId
           
private static long serialVersionUID
           
protected  String templateId
           
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, versionNumber
 
Constructor Summary
GenericPermission()
          This constructs a ...
GenericPermission(org.kuali.rice.kim.impl.permission.PermissionBo perm)
           
 
Method Summary
 String getDescription()
           
 Map<String,String> getDetails()
           
 String getDetailValues()
           
 String getName()
           
 String getNamespaceCode()
           
 String getPermissionId()
           
 String getTemplateId()
           
 boolean isActive()
           
 void loadFromKimPermission(org.kuali.rice.kim.impl.permission.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 refresh()
          getService Refreshes the reference objects from the primitive values.
 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 setDescription(String permissionDescription)
           
 void setDetails(Map<String,String> details)
           
 void setDetailValues(Map<String,String> detailsAttribs)
           
 void setDetailValues(String detailValues)
           
 void setName(String permissionName)
           
 void setNamespaceCode(String namespaceCode)
           
 void setPermissionId(String permissionId)
           
 void setTemplateId(String templateId)
           
 
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, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
prepareForWorkflow, toString, toStringBuilder, toStringMapper
 
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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

permissionId

protected String permissionId

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
Constructor Detail

GenericPermission

public GenericPermission()
This constructs a ...


GenericPermission

public GenericPermission(org.kuali.rice.kim.impl.permission.PermissionBo perm)
Method Detail

loadFromKimPermission

public void loadFromKimPermission(org.kuali.rice.kim.impl.permission.PermissionBo perm)

getDetailValues

public String getDetailValues()

setDetailValues

public void setDetailValues(String detailValues)

setDetailValues

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

isActive

public boolean isActive()
See Also:
Inactivatable.isActive()

setActive

public void setActive(boolean active)
See Also:
MutableInactivatable.setActive(boolean)

getDescription

public String getDescription()
See Also:
KimPermission.getDescription()

getPermissionId

public String getPermissionId()
See Also:
KimPermission.getPermissionId()

getName

public String getName()
See Also:
KimPermission.getName()

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)

getDetails

public Map<String,String> getDetails()

getNamespaceCode

public String getNamespaceCode()

setNamespaceCode

public void setNamespaceCode(String namespaceCode)

setPermissionId

public void setPermissionId(String permissionId)

refresh

public void refresh()
Description copied from class: PersistableBusinessObjectBase
getService Refreshes the reference objects from the primitive values.

Specified by:
refresh in interface BusinessObject
Overrides:
refresh in class PersistableBusinessObjectBase
See Also:
org.kuali.rice.kns.bo.BusinessObject#refresh()

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


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