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 SummaryConstructorsConstructorDescriptionConstructs a new instance.BanOnResource(int id, Date validityTo, String description, int memberId, int resourceId) 
- 
Method SummaryModifier 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.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- 
BanOnResourcepublic BanOnResource()Constructs a new instance.
- 
BanOnResource
 
- 
- 
Method Details- 
compareTo- Specified by:
- compareToin interface- Comparable<PerunBean>
- Overrides:
- compareToin class- Ban
 
- 
equals
- 
getMemberIdpublic int getMemberId()
- 
setMemberIdpublic void setMemberId(int memberId) 
- 
getResourceIdpublic int getResourceId()
- 
setResourceIdpublic void setResourceId(int resourceId) 
- 
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.
- 
hashCodepublic int hashCode()
- 
serializeToString- Overrides:
- serializeToStringin class- Ban
 
- 
toString
 
-