Class BanOnFacility

All Implemented Interfaces:
Serializable, Comparable<PerunBean>

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

    • BanOnFacility

      public BanOnFacility()
      Constructs a new instance.
    • BanOnFacility

      public BanOnFacility(int id, Date validityTo, String description, int userId, int facilityId)
  • Method Details

    • compareTo

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Ban
    • 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 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
    • 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
    • getUserId

      public int getUserId()
    • setUserId

      public void setUserId(int userId)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Ban
    • serializeToString

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

      public String toString()
      Overrides:
      toString in class Ban