Class BanOnResource

All Implemented Interfaces:
Serializable, Comparable<PerunBean>

public class BanOnResource extends Ban implements Comparable<PerunBean>
Represents specific ban of member on resource.
Author:
Michal Stava
See Also:
  • Constructor Details

    • BanOnResource

      public BanOnResource()
      Constructs a new instance.
    • BanOnResource

      public BanOnResource(int id, Date validityTo, String description, int memberId, int resourceId)
  • Method Details

    • getMemberId

      public int getMemberId()
    • setMemberId

      public void setMemberId(int memberId)
    • getResourceId

      public int getResourceId()
    • setResourceId

      public void setResourceId(int resourceId)
    • getType

      public String getType()
      Description copied from class: Ban
      Class name of specific ban.
      Specified by:
      getType in class Ban
      Returns:
      class name of specific ban
    • getSubjectId

      public int getSubjectId()
      Description copied from class: Ban
      Id of subject who is banned on target.
      Specified by:
      getSubjectId in class Ban
      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 class Ban
      Returns:
      id of affected target
    • serializeToString

      public String serializeToString()
      Overrides:
      serializeToString in class Ban
    • toString

      public String toString()
      Overrides:
      toString in class Ban
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Ban
    • compareTo

      public int compareTo(PerunBean perunBean)
      Specified by:
      compareTo in interface Comparable<PerunBean>
      Overrides:
      compareTo in class Ban