Package com.isode.dsapi.aci
Class MutableACITuple
java.lang.Object
com.isode.dsapi.aci.MutableACITuple
- All Implemented Interfaces:
Cloneable
A mutable version of an ACI tuple.
- Author:
- jp
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanbooleanbooleanIs this a grant tuple (true) or a deny tuple (false)?booleanbooleanintPermissions bit-set; each bit is 0 for off, 1 for on.intPrecedence of this tuple.booleanbooleanbooleanRegion of DIT that this tuple applies to.Name of rule that this tuple was derived from.booleanDoes this apply to only to signed operations (true) or to both signed and unsigned operations (false).DN of entry that this tuple came from.booleanboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheck()Check for errors.protected Objectclone()Clone the object (shallow copy)convertToAV(AttributeType type) Convert to an AttributeValue.dup()Clone the object (shallow copy).dupAll()Clone the object (deep copy).booleanCompare.inthashCode()Hash code.booleanTest whether the tuple covers all auth-levels for both signed and unsigned operations.booleanTest whether a rule protects something.voidSet the rule to cover all auth-levels for both signed and unsigned operations.toString()Generate a debugging string.
-
Field Details
-
source
DN of entry that this tuple came from. -
rulename
Name of rule that this tuple was derived from. -
precedence
public int precedencePrecedence of this tuple. -
region
Region of DIT that this tuple applies to. -
isGrant
public boolean isGrantIs this a grant tuple (true) or a deny tuple (false)? -
permissions
public int permissionsPermissions 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_onlyDoes 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
-
user_groups
-
user_subtrees
-
old_user_names
-
old_user_groups
-
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
-
prot_type_value
-
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
-
old_prot_type_value
-
old_prot_self
-
-
Constructor Details
-
MutableACITuple
public MutableACITuple()Constructor.
-
-
Method Details
-
clone
Clone the object (shallow copy)- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
dup
Clone the object (shallow copy). Note that lists of objects such as names, groups, and attribute-types will be shared. -
dupAll
Clone the object (deep copy). All included lists are copied as well. -
hashCode
public int hashCode()Hash code. -
equals
Compare. -
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
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
Convert to an AttributeValue.- Throws:
BadValueException- In case of problem encoding.
-
toString
Generate a debugging string.
-