public final class ObjectACLFacade extends ValueListFacade
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
E_ALL_ATTRIBUTES |
static int |
E_BROWSE_ENTRY |
static int |
E_COMPARE_ATTR |
static int |
E_CREATE_ENTRY |
static java.lang.String |
E_CREATOR |
static int |
E_DELETE_ENTRY |
static int |
E_DYNAMIC_GRP_BIT |
static java.lang.String |
E_ENTRY_RIGHTS |
static int |
E_INHERIT_CTL_BIT |
static int |
E_NESTED_GRP_BIT |
static java.lang.String |
E_PUBLIC |
static int |
E_READ_ATTR |
static int |
E_RENAME_ENTRY |
static java.lang.String |
E_ROOT |
static java.lang.String |
E_SELF |
static int |
E_SELF_ATTR |
static int |
E_SUPER_ATTR |
static int |
E_SUPER_ENTRY |
static int |
E_WRITE_ATTR |
static int |
MODIFIER_ATTRIBUTE |
static int |
MODIFIER_DYNGRP |
static int |
MODIFIER_ENTRY |
static java.lang.String |
SCOPE_BASE_OBJECT |
static java.lang.String |
SCOPE_DENY_INHERITANCE |
static java.lang.String |
SCOPE_DENY_INHERITANCE_SUPERIOR |
static java.lang.String |
SCOPE_SINGLE_LEVEL |
static java.lang.String |
SCOPE_SUBORDINATES |
static java.lang.String |
SCOPE_WHOLE_SUBTREE |
static java.lang.String |
TRUSTEE_AUTHENTICATED |
static java.lang.String |
TRUSTEE_CREATOR |
static java.lang.String |
TRUSTEE_SELF |
static java.lang.String |
TRUSTEE_UNAUTHENTICATED |
static int |
V_BROWSE_ENTRY |
static int |
V_COMPARE_ATTR |
static int |
V_CREATE_ENTRY |
static int |
V_DELETE_ATTR |
static int |
V_DELETE_ENTRY |
static int |
V_READ_ATTR |
static int |
V_RENAME_ENTRY |
static int |
V_SELF_ATTR |
static int |
V_SUPER_ATTR |
static int |
V_SUPER_ENTRY |
static int |
V_WRITE_ATTR |
valueList| Constructor and Description |
|---|
ObjectACLFacade(ValueList comp)
Facade constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static ValueList |
createValueList(long privileges,
long modifier,
java.lang.String trusteeDN,
java.lang.String filterDN,
java.lang.String scope,
java.lang.String className,
java.lang.String attrName,
Syntax syntax)
Creates an NVDS ACL ValueList - NVDS model only.
Empty strings should be specified for unused optional parameters. |
static ValueList |
createValueList(java.lang.String protectedAttrName,
java.lang.String subjectName,
long privileges)
Creates an ACL ValueList - Traditional model
|
static ValueList |
createValueList(java.lang.String protectedAttrName,
java.lang.String subjectName,
long privileges,
Syntax syntax)
Creates an Object ACL ValueList - Traditional model.
This facade supports all 3 ACL syntaxes. |
java.lang.String |
getNVDSAttributeName()
Retrieves the attribute name - NVDS model only.
|
java.lang.String |
getNVDSClassName()
Retrieves the class name filter - NVDS model only.
|
java.lang.String |
getNVDSFilter()
Retrieves the filter - NVDS model only.
|
long |
getNVDSModifier()
Retrieves the ACL modifier field - NVDS model only.
|
long |
getNVDSPrivileges()
Retrieves the access control privileges - NVDS model only.
|
java.lang.String |
getNVDSScope()
Retrieves the scope - NVDS model only.
|
java.lang.String |
getNVDSTrustee()
Retrieves the trustee DN or keyword - NVDS model only.
|
long |
getPrivileges()
Retrieves the access control privileges - Traditional model.
|
java.lang.String |
getProtectedAttrName()
Retrieves the protected attribute name - Traditional model.
|
java.lang.String |
getSubjectName()
Retrieves the subject name - Traditional model.
|
void |
setNVDSAttributeName(java.lang.String attrName)
Sets an attribute name for the ACL - NVDS model only.
|
void |
setNVDSClassName(java.lang.String className)
Sets a class name filter for the ACL - NVDS model only.
|
void |
setNVDSFilter(java.lang.String filterDN)
Sets a filter for the ACL - NVDS model only.
|
void |
setNVDSModifier(long modifier)
Sets the ACL modifier field - NVDS model only.
|
void |
setNVDSPrivileges(long privileges)
Sets the access control privileges - NVDS model only.
|
void |
setNVDSScope(java.lang.String scope)
Sets a scope for the ACL - NVDS model only.
|
void |
setNVDSTrustee(java.lang.String trusteeDN)
Sets the trustee DN - NVDS model only.
|
void |
setPrivileges(long privileges)
Sets the access control privileges - Traditional model.
|
void |
setProtectedAttrName(java.lang.String name)
Sets the protected attribute name - Traditional model.
|
void |
setSubjectName(java.lang.String name)
Sets the subject name - Traditional model.
|
getValueList, replaceBooleanValue, replaceHexValue, replaceLongValue, replaceStringValue, replaceValueListpublic static final int E_BROWSE_ENTRY
public static final int E_CREATE_ENTRY
public static final int E_DELETE_ENTRY
public static final int E_RENAME_ENTRY
public static final int E_SUPER_ENTRY
public static final int E_COMPARE_ATTR
public static final int E_READ_ATTR
public static final int E_WRITE_ATTR
public static final int E_SELF_ATTR
public static final int E_SUPER_ATTR
public static final int E_INHERIT_CTL_BIT
public static final int E_DYNAMIC_GRP_BIT
public static final int E_NESTED_GRP_BIT
public static final java.lang.String E_ENTRY_RIGHTS
public static final java.lang.String E_ALL_ATTRIBUTES
public static final java.lang.String E_PUBLIC
public static final java.lang.String E_ROOT
public static final java.lang.String E_CREATOR
public static final java.lang.String E_SELF
public static final int V_BROWSE_ENTRY
public static final int V_CREATE_ENTRY
public static final int V_DELETE_ENTRY
public static final int V_RENAME_ENTRY
public static final int V_SUPER_ENTRY
public static final int V_COMPARE_ATTR
public static final int V_READ_ATTR
public static final int V_WRITE_ATTR
public static final int V_DELETE_ATTR
public static final int V_SUPER_ATTR
public static final int V_SELF_ATTR
public static final int MODIFIER_ATTRIBUTE
public static final int MODIFIER_ENTRY
public static final int MODIFIER_DYNGRP
public static final java.lang.String TRUSTEE_AUTHENTICATED
public static final java.lang.String TRUSTEE_UNAUTHENTICATED
public static final java.lang.String TRUSTEE_CREATOR
public static final java.lang.String TRUSTEE_SELF
public static final java.lang.String SCOPE_BASE_OBJECT
public static final java.lang.String SCOPE_SINGLE_LEVEL
public static final java.lang.String SCOPE_SUBORDINATES
public static final java.lang.String SCOPE_WHOLE_SUBTREE
public static final java.lang.String SCOPE_DENY_INHERITANCE
public static final java.lang.String SCOPE_DENY_INHERITANCE_SUPERIOR
public ObjectACLFacade(ValueList comp) throws IncompatibleComponentException
comp - The ValueList that represents the ACL data.IncompatibleComponentException - Not used.public static ValueList createValueList(java.lang.String protectedAttrName, java.lang.String subjectName, long privileges)
This is a legacy method that assumes NDSSyntax.SYN_OBJECT_ACL. New code should use the method that includes a syntax argument.
protectedAttrName - Refer to NDS Schema Reference.subjectName - Refer to NDS Schema Reference.privileges - Refer to NDS Schema Reference.public static ValueList createValueList(java.lang.String protectedAttrName, java.lang.String subjectName, long privileges, Syntax syntax)
protectedAttrName - Refer to NDS Schema Reference.subjectName - Refer to NDS Schema Reference.privileges - Refer to NDS Schema Reference.syntax - The syntax for this value. May be NDSSyntax.SYN_OBJECT_ACL,
LDAPSyntax.SYN_NDS_ACL, or LDAPSyntax.SYN_NVDS_ACL.public java.lang.String getProtectedAttrName()
FacadeParameterException - Cannot convert between old and new
ACL syntaxes.public java.lang.String getSubjectName()
FacadeParameterException - Cannot convert between old and new
ACL syntaxes.public long getPrivileges()
FacadeParameterException - Cannot convert between old and new
ACL syntaxes.public void setProtectedAttrName(java.lang.String name)
name - The name of the protected attribute.FacadeParameterException - Cannot set the requested value.public void setSubjectName(java.lang.String name)
name - The name of the subject.FacadeParameterException - Cannot set the requested value.public void setPrivileges(long privileges)
privileges - The privileges.FacadeParameterException - Cannot set the requested value.public static ValueList createValueList(long privileges, long modifier, java.lang.String trusteeDN, java.lang.String filterDN, java.lang.String scope, java.lang.String className, java.lang.String attrName, Syntax syntax)
privileges - A bitmask containing the privileges.modifier - A bitmask indicating if this is an Entry or Attribute ACL,
and if it's a normal or dynamic group ACL.trusteeDN - A DN or simple keyword containing the object to which this ACL grants rights.
Valid keywords are: authenticated, unauthenticated, creator, and self.filterDN - The DN of a dynamic group containing a filter to be used for this ACL.scope - Indicates the scope for this ACL
Valid scopes are: baseObject, singleLevel, subordinates, wholeSubtree,
inheritedRightsFilterWholeSubtree, and inheritedRightsFilterSubordinateSubtree.className - Specifies a class name limiting which objects this ACL affects.attrName - Specifies an attribute name or "any" for all attribute rights.
This parameter should be null for an Entry ACL.public long getNVDSPrivileges()
public void setNVDSPrivileges(long privileges)
privileges - The privileges.public long getNVDSModifier()
public void setNVDSModifier(long modifier)
modifier - The modifier.public java.lang.String getNVDSTrustee()
public void setNVDSTrustee(java.lang.String trusteeDN)
name - The name of the trustee or a simple keyword:
"authenticated", "unauthenticated", "creator", or "self".public java.lang.String getNVDSFilter()
public void setNVDSFilter(java.lang.String filterDN)
filterDN - A DN of a dynamic group containing a filter to be used
for this ACL. An empty string or null may be passed for this parameter
to indicate no filter.public java.lang.String getNVDSScope()
public void setNVDSScope(java.lang.String scope)
scope - A keyword indicating the scope to be used for this ACL.public java.lang.String getNVDSClassName()
public void setNVDSClassName(java.lang.String className)
className - The class name to be used as a filter for the ACL.
An empty string or null may be passed for this parameter
to indicate no class filter.public java.lang.String getNVDSAttributeName()
public void setNVDSAttributeName(java.lang.String attrName)
attrName - The attribute name for the ACL.
For all attribute rights, use "any".
A null or empty string must be set for an entry ACL.
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.