org.openmrs
Interface Auditable
- All Superinterfaces:
- OpenmrsObject
- All Known Subinterfaces:
- OpenmrsData, OpenmrsMetadata
- All Known Implementing Classes:
- ActiveListItem, ActiveListType, Alert, Allergy, BaseOpenmrsData, BaseOpenmrsMetadata, Cohort, Concept, ConceptAnswer, ConceptClass, ConceptComplex, ConceptDatatype, ConceptDerived, ConceptDescription, ConceptMap, ConceptName, ConceptNameTag, ConceptNumeric, ConceptSet, ConceptSource, Drug, DrugOrder, Encounter, EncounterType, Field, FieldType, Form, FormField, HL7Source, Location, LocationTag, MimeType, Obs, Order, OrderType, Patient, PatientIdentifier, PatientIdentifierType, PatientProgram, PatientState, Person, PersonAddress, PersonAttribute, PersonAttributeType, PersonName, Privilege, Problem, Program, ProgramWorkflow, ProgramWorkflowState, Relationship, RelationshipType, ReportSchema, Role, SerializedObject, TaskDefinition, User
public interface Auditable
- extends OpenmrsObject
In OpenMRS, the convention is to track basic audit information for each object related to who
initially created the object and when, and who last changed the object and when. This allows us
to check, for example, when a patient record was created, or when a person address was last
updated in the system. Any object that needs to keep track of this information should implement
this interface.
- Since:
- 1.5
- See Also:
OpenmrsData
,
OpenmrsMetadata
getCreator
User getCreator()
- Returns:
- User - the user who created the object
setCreator
void setCreator(User creator)
- Parameters:
creator
- - the user who created the object
getDateCreated
java.util.Date getDateCreated()
- Returns:
- Date - the date the object was created
setDateCreated
void setDateCreated(java.util.Date dateCreated)
- Parameters:
dateCreated
- - the date the object was created
getChangedBy
User getChangedBy()
- Returns:
- User - the user who last changed the object
setChangedBy
void setChangedBy(User changedBy)
- Parameters:
changedBy
- - the user who last changed the object
getDateChanged
java.util.Date getDateChanged()
- Returns:
- Date - the date the object was last changed
setDateChanged
void setDateChanged(java.util.Date dateChanged)
- Parameters:
dateChanged
- - the date the object was last changed
Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change