Package cz.metacentrum.perun.core.api
Class BanOnFacility
java.lang.Object
cz.metacentrum.perun.core.api.PerunBean
cz.metacentrum.perun.core.api.Auditable
cz.metacentrum.perun.core.api.Ban
cz.metacentrum.perun.core.api.BanOnFacility
- All Implemented Interfaces:
- Serializable,- Comparable<PerunBean>
Represents specific ban of user on facility.
- Author:
- Michal Stava
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a new instance.BanOnFacility(int id, Date validityTo, String description, int userId, int facilityId) 
- 
Method SummaryModifier and TypeMethodDescriptionintbooleanintintId of subject who is banned on target.intId of target where subject is banned on.getType()Class name of specific ban.intinthashCode()voidsetFacilityId(int facilityId) voidsetUserId(int userId) toString()Methods inherited from class cz.metacentrum.perun.core.api.BangetDescription, getValidityTo, getValidityToAsLong, setDescription, setValidityToMethods 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- 
BanOnFacilitypublic BanOnFacility()Constructs a new instance.
- 
BanOnFacility
 
- 
- 
Method Details- 
compareTo- Specified by:
- compareToin interface- Comparable<PerunBean>
- Overrides:
- compareToin class- Ban
 
- 
equals
- 
getFacilityIdpublic int getFacilityId()
- 
setFacilityIdpublic void setFacilityId(int facilityId) 
- 
getSubjectIdpublic int getSubjectId()Description copied from class:BanId of subject who is banned on target.- Specified by:
- getSubjectIdin class- Ban
- Returns:
- id of affected subject
 
- 
getTargetIdpublic int getTargetId()Description copied from class:BanId of target where subject is banned on.- Specified by:
- getTargetIdin class- Ban
- Returns:
- id of affected target
 
- 
getTypeDescription copied from class:BanClass name of specific ban.
- 
getUserIdpublic int getUserId()
- 
setUserIdpublic void setUserId(int userId) 
- 
hashCodepublic int hashCode()
- 
serializeToString- Overrides:
- serializeToStringin class- Ban
 
- 
toString
 
-