Class Restriction

  • All Implemented Interfaces:
    Serializable

    public class Restriction
    extends Object
    implements Serializable
    A DTO used to represent a restriction on the data in which a user has access.
    Author:
    Nick Crum (ncrum)
    See Also:
    Serialized Form
    • Constructor Detail

      • Restriction

        public Restriction()
    • Method Detail

      • getType

        public String getType()
        Represents the type of the restriction.
      • getTargets

        public Set<String> getTargets()
        Represents the targets of the restriction.
      • setType

        public void setType​(String type)
        Represents the type of the restriction.
      • setTargets

        public void setTargets​(Set<String> targets)
        Represents the targets of the restriction.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object