org.openmrs
Class Privilege
java.lang.Object
org.openmrs.BaseOpenmrsObject
org.openmrs.BaseOpenmrsMetadata
org.openmrs.Privilege
- All Implemented Interfaces:
- java.io.Serializable, Auditable, OpenmrsMetadata, OpenmrsObject, Retireable
public class Privilege
- extends BaseOpenmrsMetadata
- implements java.io.Serializable
Privilege
- Version:
- 1.0
- See Also:
- Serialized Form
Constructor Summary |
Privilege()
default constructor |
Privilege(java.lang.String privilege)
constructor with id |
Privilege(java.lang.String privilege,
java.lang.String description)
|
Methods inherited from class org.openmrs.BaseOpenmrsMetadata |
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getName, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReason |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
Privilege
public Privilege()
- default constructor
Privilege
public Privilege(java.lang.String privilege)
- constructor with id
Privilege
public Privilege(java.lang.String privilege,
java.lang.String description)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
getPrivilege
public java.lang.String getPrivilege()
- Returns:
- Returns the privilege.
setPrivilege
public void setPrivilege(java.lang.String privilege)
- Parameters:
privilege
- The privilege to set.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()
getId
public java.lang.Integer getId()
- Specified by:
getId
in interface OpenmrsObject
- Returns:
- id - The unique Identifier for the object
- Since:
- 1.5
- See Also:
OpenmrsObject.getId()
setId
public void setId(java.lang.Integer id)
- Specified by:
setId
in interface OpenmrsObject
- Parameters:
id
- - The unique Identifier for the object- Since:
- 1.5
- See Also:
OpenmrsObject.setId(java.lang.Integer)
Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change