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 Summary
ConstructorsConstructorDescriptionConstructs a new instance.BanOnFacility(int id, Date validityTo, String description, int userId, int facilityId) -
Method Summary
Modifier 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.Ban
getDescription, getValidityTo, getValidityToAsLong, setDescription, setValidityToMethods inherited from class cz.metacentrum.perun.core.api.Auditable
getCreatedAt, getCreatedBy, getCreatedByUid, getModifiedAt, getModifiedBy, getModifiedByUid, setCreatedAt, setCreatedBy, setCreatedByUid, setModifiedAt, setModifiedBy, setModifiedByUidMethods inherited from class cz.metacentrum.perun.core.api.PerunBean
getBeanName, getId, setId
-
Constructor Details
-
BanOnFacility
public BanOnFacility()Constructs a new instance. -
BanOnFacility
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<PerunBean>- Overrides:
compareToin classBan
-
equals
-
getFacilityId
public int getFacilityId() -
setFacilityId
public void setFacilityId(int facilityId) -
getSubjectId
public int getSubjectId()Description copied from class:BanId of subject who is banned on target.- Specified by:
getSubjectIdin classBan- Returns:
- id of affected subject
-
getTargetId
public int getTargetId()Description copied from class:BanId of target where subject is banned on.- Specified by:
getTargetIdin classBan- Returns:
- id of affected target
-
getType
Description copied from class:BanClass name of specific ban. -
getUserId
public int getUserId() -
setUserId
public void setUserId(int userId) -
hashCode
public int hashCode() -
serializeToString
- Overrides:
serializeToStringin classBan
-
toString
-