public class Privilege extends BaseOpenmrsMetadata implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
Privilege()
default constructor
|
Privilege(java.lang.String privilege)
constructor with id
|
Privilege(java.lang.String privilege,
java.lang.String description) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getId() |
java.lang.String |
getName() |
java.lang.String |
getPrivilege() |
void |
setId(java.lang.Integer id) |
void |
setPrivilege(java.lang.String privilege) |
java.lang.String |
toString()
Returns a string consisting of the name of the class of which the object is an instance and
the
uuid field surrounded by [ and ]. |
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateRetired, getDescription, getRetired, getRetiredBy, getRetireReason, isRetired, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateRetired, setDescription, setName, setRetired, setRetiredBy, setRetireReasonequals, getUuid, hashCode, setUuidclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetUuid, setUuidpublic static final long serialVersionUID
public Privilege()
public Privilege(java.lang.String privilege)
public Privilege(java.lang.String privilege,
java.lang.String description)
public java.lang.String getPrivilege()
public void setPrivilege(java.lang.String privilege)
privilege - The privilege to set.public java.lang.String getName()
getName in interface OpenmrsMetadatagetName in class BaseOpenmrsMetadatapublic java.lang.String toString()
BaseOpenmrsObjectuuid field surrounded by [ and ]. In other words,
this method returns a string equal to the value of: getClass().getName() + '[' + uuid + ']'
If the uuid field is null, it delegates to
Object.toString()
toString in class BaseOpenmrsObjectObject.toString()public java.lang.Integer getId()
getId in interface OpenmrsObjectOpenmrsObject.getId()public void setId(java.lang.Integer id)
setId in interface OpenmrsObjectid - - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)Copyright © 2018 OpenMRS Inc.. All Rights Reserved.