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 TypeMethodDescriptionintbooleanintintintId of subject who is banned on target.intId of target where subject is banned on.getType()Class name of specific ban.inthashCode()voidsetMemberId(int memberId) voidsetResourceId(int resourceId) 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
-
BanOnResource
public BanOnResource()Constructs a new instance. -
BanOnResource
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<PerunBean>- Overrides:
compareToin 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: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. -
hashCode
public int hashCode() -
serializeToString
- Overrides:
serializeToStringin classBan
-
toString
-