Package cz.metacentrum.perun.core.api
Class BanOnResource
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.BanOnResource
- All Implemented Interfaces:
Serializable
,Comparable<PerunBean>
Represents specific ban of member on resource.
- Author:
- Michal Stava
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance.BanOnResource
(int id, Date validityTo, String description, int memberId, int resourceId) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
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
hashCode()
void
setMemberId
(int memberId) void
setResourceId
(int resourceId) 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
-
BanOnResource
public BanOnResource()Constructs a new instance. -
BanOnResource
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PerunBean>
- Overrides:
compareTo
in classBan
-
equals
-
getMemberId
public int getMemberId() -
setMemberId
public void setMemberId(int memberId) -
getResourceId
public int getResourceId() -
setResourceId
public void setResourceId(int resourceId) -
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. -
hashCode
public int hashCode() -
serializeToString
- Overrides:
serializeToString
in classBan
-
toString
-