public class ConvertACL
extends java.lang.Object
The old eDirectory ACL's have 3 elements. The new NVDS ACL's have 7.
ndsAcl = privileges "#" SubjectName "#" AttrName nvdsAcl = { tag privileges, tag2 modifier, dn "entryID", dn2 "filterID", schemaName "scopeID", schemaName2 "classID", schemaName3 "attrID" }| Constructor and Description |
|---|
ConvertACL() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Vector |
toNDSACL(java.util.Vector vec)
Convert a 7-element vector in the new NVDS format to a 3-element vector
in the old NDS ACL format.
|
static java.util.Vector |
toNVDSACL(java.util.Vector vec)
Convert an ACL Vector into an NVDS 7-element ACL Vector.
|
public static java.util.Vector toNDSACL(java.util.Vector vec)
throws ComponentCreationException
Since we want the same ObjectACLFacade in existing code to work on Kepler, we must be able to convert from one format to the other.
If the input vector is size 3, it is assumed it is already in NDS format and is returned unchanged.
vec - The input ACL Vector.ComponentCreationExceptionpublic static java.util.Vector toNVDSACL(java.util.Vector vec)
throws ComponentCreationException
This method takes a Vector and returns a Vector.
The expected 3-element vector contains:
String: AttributeName
String: SubjectName
Long: Privileges
If the input vector is size 7, it is assumed it is already in NVDS format and is returned unchanged.
vec - The input NDS ACL Vector. Could be either old NDS format (size 3) or new NVDS format (size 7).ComponentCreationException
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}.