public class Privilege extends BaseChangeableOpenmrsMetadata
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
Privilege()
default constructor
|
Privilege(String privilege)
constructor with id
|
Privilege(String privilege,
String description) |
Modifier and Type | Method and Description |
---|---|
Integer |
getId() |
String |
getName() |
String |
getPrivilege() |
void |
setId(Integer id) |
void |
setPrivilege(String privilege) |
String |
toString()
Returns a string equal to the value of: ClassName{hashCode=...,
uuid=...}
|
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(String privilege)
public String getPrivilege()
public void setPrivilege(String privilege)
privilege
- The privilege to set.public String getName()
getName
in interface OpenmrsMetadata
getName
in class BaseOpenmrsMetadata
public String toString()
BaseOpenmrsObject
ClassName{hashCode=..., uuid=...}
If the uuid
field is null
, it returns:
ClassName{hashCode=...}Should include hashCode if uuid is null Should include uuid if not null
toString
in class BaseOpenmrsObject
Object.toString()
public Integer getId()
OpenmrsObject.getId()
public void setId(Integer id)
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
Copyright © 2024 OpenMRS Inc.. All rights reserved.