Class MutableACITuple

java.lang.Object
com.isode.dsapi.aci.MutableACITuple
All Implemented Interfaces:
Cloneable

public class MutableACITuple extends Object implements Cloneable
A mutable version of an ACI tuple.
Author:
jp
  • Field Details

    • source

      public DN source
      DN of entry that this tuple came from.
    • rulename

      public String rulename
      Name of rule that this tuple was derived from.
    • precedence

      public int precedence
      Precedence of this tuple.
    • region

      public ACIRegion region
      Region of DIT that this tuple applies to.
    • isGrant

      public boolean isGrant
      Is this a grant tuple (true) or a deny tuple (false)?
    • permissions

      public int permissions
      Permissions bit-set; each bit is 0 for off, 1 for on. On means 'grant' if isGrant is set, or 'deny' if unset. Bit values are specified in the PermBit enumeration.
    • auth_strong

      public boolean auth_strong
    • auth_simple

      public boolean auth_simple
    • auth_anon

      public boolean auth_anon
    • signed_only

      public boolean signed_only
      Does this apply to only to signed operations (true) or to both signed and unsigned operations (false).
    • user_all

      public boolean user_all
    • user_this

      public boolean user_this
    • user_names

      public List<DN> user_names
    • user_groups

      public List<DN> user_groups
    • user_subtrees

      public List<ACISubtreeSpec> user_subtrees
    • old_user_names

      public List<DN> old_user_names
    • old_user_groups

      public List<DN> old_user_groups
    • old_user_subtrees

      public List<ACISubtreeSpec> old_user_subtrees
    • prot_entry

      public boolean prot_entry
    • prot_all_type

      public boolean prot_all_type
    • prot_all_type_value

      public boolean prot_all_type_value
    • prot_type

      public List<String> prot_type
    • prot_type_value

      public List<String> prot_type_value
    • prot_self

      public List<String> prot_self
    • old_prot_all_type

      public boolean old_prot_all_type
    • old_prot_all_type_value

      public boolean old_prot_all_type_value
    • old_prot_type

      public List<String> old_prot_type
    • old_prot_type_value

      public List<String> old_prot_type_value
    • old_prot_self

      public List<String> old_prot_self
  • Constructor Details

    • MutableACITuple

      public MutableACITuple()
      Constructor.
  • Method Details

    • clone

      protected Object clone() throws CloneNotSupportedException
      Clone the object (shallow copy)
      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException
    • dup

      public MutableACITuple dup()
      Clone the object (shallow copy). Note that lists of objects such as names, groups, and attribute-types will be shared.
    • dupAll

      public MutableACITuple dupAll()
      Clone the object (deep copy). All included lists are copied as well.
    • hashCode

      public int hashCode()
      Hash code.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Compare.
      Overrides:
      equals in class Object
    • protectsSomething

      public boolean protectsSomething()
      Test whether a rule protects something.
    • isAuthAllSU

      public boolean isAuthAllSU()
      Test whether the tuple covers all auth-levels for both signed and unsigned operations.
    • setAuthAllSU

      public void setAuthAllSU()
      Set the rule to cover all auth-levels for both signed and unsigned operations.
    • check

      public void check() throws BadValueException
      Check for errors. Throws a BadValueException if there is a problem. Checks for valid rulename, precedence, and auth-level/ user-classes combination.
      Throws:
      BadValueException
    • convertToAV

      public AttributeValue convertToAV(AttributeType type) throws BadValueException
      Convert to an AttributeValue.
      Throws:
      BadValueException - In case of problem encoding.
    • toString

      public String toString()
      Generate a debugging string.
      Overrides:
      toString in class Object