Package cz.metacentrum.perun.core.api
Class Ban
java.lang.Object
cz.metacentrum.perun.core.api.PerunBean
cz.metacentrum.perun.core.api.Auditable
cz.metacentrum.perun.core.api.Ban
- All Implemented Interfaces:
- Serializable,- Comparable<PerunBean>
- Direct Known Subclasses:
- BanOnFacility,- BanOnResource,- BanOnVo
Represents ban for someone on something in perun. Description and timestamp.
- Author:
- Michal Stava
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintbooleanabstract intId of subject who is banned on target.abstract intId of target where subject is banned on.abstract StringgetType()Class name of specific ban.inthashCode()voidsetDescription(String description) voidsetValidityTo(Date validityTo) toString()Methods inherited from class cz.metacentrum.perun.core.api.AuditablegetCreatedAt, getCreatedBy, getCreatedByUid, getModifiedAt, getModifiedBy, getModifiedByUid, setCreatedAt, setCreatedBy, setCreatedByUid, setModifiedAt, setModifiedBy, setModifiedByUidMethods inherited from class cz.metacentrum.perun.core.api.PerunBeangetBeanName, getId, setId
- 
Constructor Details- 
Banpublic Ban()Constructs a new instance.
- 
Ban
- 
Ban
 
- 
- 
Method Details- 
compareTo- Specified by:
- compareToin interface- Comparable<PerunBean>
- Overrides:
- compareToin class- PerunBean
 
- 
equals
- 
getDescription
- 
setDescription
- 
getSubjectIdpublic abstract int getSubjectId()Id of subject who is banned on target.- Returns:
- id of affected subject
 
- 
getTargetIdpublic abstract int getTargetId()Id of target where subject is banned on.- Returns:
- id of affected target
 
- 
getTypeClass name of specific ban.- Returns:
- class name of specific ban
 
- 
getValidityTo
- 
setValidityTo
- 
getValidityToAsLong
- 
hashCodepublic int hashCode()
- 
serializeToString- Overrides:
- serializeToStringin class- Auditable
 
- 
toString
 
-