Package cz.metacentrum.perun.core.api
Class Auditable
java.lang.Object
cz.metacentrum.perun.core.api.PerunBean
cz.metacentrum.perun.core.api.Auditable
- All Implemented Interfaces:
Serializable,Comparable<PerunBean>
- Direct Known Subclasses:
AttributeDefinition,Ban,CandidateGroup,Consent,ConsentHub,Destination,ExtSource,Facility,Group,Host,Invitation,Member,Owner,Resource,ResourceTag,Service,ServiceDenial,User,UserExtSource,Vo
This class represent audit information.
- Author:
- Michal Stava stavamichal@gmail.com
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAuditable(int id) Auditable(int id, String createdAt, String createdBy, String modifiedAt, String modifiedBy, Integer createdByUid, Integer modifiedByUid) Auditable(String createdAt, String createdBy, String modifiedAt, String modifiedBy, Integer createdByUid, Integer modifiedByUid) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the information when it was created.Gets the information who created it.Gets the information who user created it.Gets the information when it was modofied.Gets the information who modified it.Gets the information who user modified it.inthashCode()voidsetCreatedAt(String createdAt) Sets created time for this instance.voidsetCreatedBy(String createdBy) Sets creator for this instance.voidsetCreatedByUid(Integer createdByUid) Sets information about who user created it.voidsetModifiedAt(String modifiedAt) Sets modified time for this instance.voidsetModifiedBy(String modifiedBy) Sets information about who modified it.voidsetModifiedByUid(Integer modifiedByUid) Sets information about who user modified it.toString()Methods inherited from class cz.metacentrum.perun.core.api.PerunBean
compareTo, getBeanName, getId, setId
-
Constructor Details
-
Auditable
public Auditable() -
Auditable
public Auditable(int id) -
Auditable
-
Auditable
-
-
Method Details
-
equals
-
getCreatedAt
Gets the information when it was created.- Returns:
- createdAt, the date
-
setCreatedAt
Sets created time for this instance.- Parameters:
createdAt- , the date.
-
getCreatedBy
Gets the information who created it.- Returns:
- createdBy, the user
-
setCreatedBy
Sets creator for this instance.- Parameters:
createdBy- , the user.
-
getCreatedByUid
Gets the information who user created it.- Returns:
- createdByUid, the user
-
setCreatedByUid
Sets information about who user created it.- Parameters:
createdByUid- , the user.
-
getModifiedAt
Gets the information when it was modofied.- Returns:
- modifiedAt, the time
-
setModifiedAt
Sets modified time for this instance.- Parameters:
modifiedAt- , the time.
-
getModifiedBy
Gets the information who modified it.- Returns:
- modifiedBy, the user
-
setModifiedBy
Sets information about who modified it.- Parameters:
modifiedBy- , the user.
-
getModifiedByUid
Gets the information who user modified it.- Returns:
- modifiedByUid, the user ID
-
setModifiedByUid
Sets information about who user modified it.- Parameters:
modifiedByUid- , the user.
-
hashCode
public int hashCode() -
serializeToString
- Overrides:
serializeToStringin classPerunBean
-
toString
-