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
ConstructorDescriptionConstructs a new instance.BanOnFacility
(int id, Date validityTo, String description, int userId, int facilityId) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
int
Id of subject who is banned on target.int
Id of target where subject is banned on.getType()
Class name of specific ban.int
int
hashCode()
void
setFacilityId
(int facilityId) void
setUserId
(int userId) toString()
Methods inherited from class cz.metacentrum.perun.core.api.Ban
getDescription, getValidityTo, getValidityToAsLong, setDescription, setValidityTo
Methods inherited from class cz.metacentrum.perun.core.api.Auditable
getCreatedAt, getCreatedBy, getCreatedByUid, getModifiedAt, getModifiedBy, getModifiedByUid, setCreatedAt, setCreatedBy, setCreatedByUid, setModifiedAt, setModifiedBy, setModifiedByUid
Methods 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:
compareTo
in interfaceComparable<PerunBean>
- Overrides:
compareTo
in classBan
-
equals
-
getFacilityId
public int getFacilityId() -
setFacilityId
public void setFacilityId(int facilityId) -
getSubjectId
public int getSubjectId()Description copied from class:Ban
Id of subject who is banned on target.- Specified by:
getSubjectId
in classBan
- Returns:
- id of affected subject
-
getTargetId
public int getTargetId()Description copied from class:Ban
Id of target where subject is banned on.- Specified by:
getTargetId
in classBan
- Returns:
- id of affected target
-
getType
Description copied from class:Ban
Class name of specific ban. -
getUserId
public int getUserId() -
setUserId
public void setUserId(int userId) -
hashCode
public int hashCode() -
serializeToString
- Overrides:
serializeToString
in classBan
-
toString
-