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, setRetireReason
equals, getUuid, hashCode, setUuid
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getUuid, setUuid
public 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 OpenmrsMetadata
getName
in class BaseOpenmrsMetadata
public java.lang.String toString()
BaseOpenmrsObject
uuid
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 BaseOpenmrsObject
Object.toString()
public java.lang.Integer getId()
getId
in interface OpenmrsObject
OpenmrsObject.getId()
public void setId(java.lang.Integer id)
setId
in interface OpenmrsObject
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.