public final class eDirRightsObject
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ALL_OBJ_RIGHTS
Represents all object right flags.
|
static int |
ALL_PROP_RIGHTS
Represents all property right flags.
|
static int |
NO_ASSIGNMENT
Represents that no assignment of rights has been made.
|
static int |
OBJECT_EXCEPTION
Tells the com.novell.admin.common.exceptions.AdminError exception that an Object exception occurred.
|
| Constructor and Description |
|---|
eDirRightsObject(NSObject nsObject)
Constructs an eDirRightsObject to contain the rights of the NSObject passed in.
|
eDirRightsObject(java.lang.String specialObject)
Constructs an eDirRightsObject to contain a special object (not based upon an NSObject).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
aclReadRights()
Returns whether we have read rights to the ACL attribute.
|
boolean |
aclWriteRights()
Returns whether we have write rights to the ACL attribute.
|
void |
clearDirty()
Clear the dirty flag.
|
boolean |
deleteACL(java.lang.String trustee,
java.lang.String protectedName,
int rights)
Delete an ACL from this object.
|
boolean |
deleteTrustee(java.lang.String trustee)
Delete a trustee from this object.
|
void |
externalSetDirty()
Set the dirty flag from an external class.
|
ObjectAttribute |
getACLAttribute()
Get the ACL attribute of the object.
|
eDirPropertyRightsData |
getAllPropertyInheritedFilters()
Get the inherited rights filters on all properties.
|
NDSPropertyRights[] |
getArrayOfEffectivePropertyRights(ObjectEntry trusteeObj,
java.lang.String[] properties)
Get the effective rights to a given array of properties.
|
java.util.Vector |
getAssignedAllPropertyRights(java.lang.String trustee)
Get assigned rights to all properties.
|
java.util.Vector |
getAssignedObjectRights(java.lang.String trustee)
Get assigned object rights.
|
java.util.Vector |
getAssignedPropertyRights(java.lang.String trustee,
java.lang.String property)
Get assigned rights to a specific property.
|
java.util.Enumeration |
getAttributeNames()
Get the names of the attributes on this object.
|
eDirPropertyRightsData |
getEffectiveAllPropertyRights(ObjectEntry trusteeObj)
Get the effective rights on all properties.
|
eDirObjectRightsData |
getEffectiveObjectRights(ObjectEntry trusteeObj)
Get the effective object rights.
|
eDirPropertyRightsData |
getEffectivePropertyRights(ObjectEntry trusteeObj,
java.lang.String property)
Get the effective rights to a given property.
|
AdminNamespace |
getNameSpace()
Get the namespace this object exists in.
|
NSObject |
getNSObject()
Get the corresponding NSObject.
|
eDirObjectRightsData |
getObjectInheritedFilters()
Get the inherited rights filters for this object.
|
eDirPropertyRightsData |
getPropertyInheritedFilters(java.lang.String property)
Get the inherited rights filters for a specified property.
|
java.util.Enumeration |
getTrustees()
Get the trustees of this object.
|
boolean |
isDirty()
Returns if this object's rights is "dirty" or has changed.
|
boolean |
needToPreventOrphaning(java.lang.String objNotToCheck)
Method called to make sure the user is not orphaning a portion of the
tree.
|
void |
setAllObjectInheritedFilters(int rights)
Sets an object inherited rights filter ACL.
|
void |
setAllObjectRights(java.lang.String subject,
int rights)
Sets an ACL for all object rights.
|
void |
setAllPropertyInheritedFilters(int rights)
Sets all property inherited rights filter ACL.
|
void |
setAllPropertyRights(java.lang.String subject,
int rights)
Sets an ACL for all property rights.
|
void |
setPropertyInheritedFilters(java.lang.String property,
int rights)
Sets a specific properties inherited rights filter ACL.
|
void |
setPropertyRights(java.lang.String property,
java.lang.String subject,
int newRights,
int oldRights)
Sets an ACL for a specific property rights.
|
boolean |
updateData()
Update this object's data from eDirectory without throwing any exceptions.
|
void |
updateDataNoCatch()
Update this object's data from eDirectory but throwing any exception encountered instead of catching them.
|
public static final int NO_ASSIGNMENT
public static final int ALL_OBJ_RIGHTS
public static final int ALL_PROP_RIGHTS
public static final int OBJECT_EXCEPTION
public eDirRightsObject(NSObject nsObject)
nsObject - The namespace object to get eDirectory rights frompublic eDirRightsObject(java.lang.String specialObject)
specialObject - The special object to get eDirectory rights frompublic boolean updateData()
updateDataNoCatch()public void updateDataNoCatch()
throws SPIException,
SnapinVetoException
SPIException - Namespace exceptionSnapinVetoException - Namespace exceptionupdateData()public boolean isDirty()
public java.util.Enumeration getTrustees()
public java.util.Enumeration getAttributeNames()
public AdminNamespace getNameSpace()
public boolean aclReadRights()
public boolean aclWriteRights()
public eDirObjectRightsData getEffectiveObjectRights(ObjectEntry trusteeObj)
trusteeObj - An ObjectEntry pointing to the trustee object to get effective rights onpublic eDirPropertyRightsData getEffectiveAllPropertyRights(ObjectEntry trusteeObj)
trusteeObj - An ObjectEntry pointing to the trustee object to get effective rights onpublic NDSPropertyRights[] getArrayOfEffectivePropertyRights(ObjectEntry trusteeObj, java.lang.String[] properties)
trusteeObj - An ObjectEntry pointing to the trustee object to get effective rights onproperties - String array of property namespublic eDirPropertyRightsData getEffectivePropertyRights(ObjectEntry trusteeObj, java.lang.String property)
trusteeObj - An ObjectEntry pointing to the trustee object to get effective rights onproperty - String of property namepublic eDirObjectRightsData getObjectInheritedFilters()
public eDirPropertyRightsData getAllPropertyInheritedFilters()
setAllPropertyInheritedFilters(int)public eDirPropertyRightsData getPropertyInheritedFilters(java.lang.String property)
property - String containing the property to get inherited rights filters forsetPropertyInheritedFilters(java.lang.String, int)public java.util.Vector getAssignedObjectRights(java.lang.String trustee)
trustee - The trustee to check to see what object rights are assigned to this object.public java.util.Vector getAssignedAllPropertyRights(java.lang.String trustee)
trustee - The trustee to check to see what object rights are assignedpublic java.util.Vector getAssignedPropertyRights(java.lang.String trustee,
java.lang.String property)
trustee - The trustee to check to see what object rights are assignedproperty - The property to check for assigned property rightspublic ObjectAttribute getACLAttribute()
public boolean deleteTrustee(java.lang.String trustee)
trustee - The object to remove as a trustee of this objectpublic boolean deleteACL(java.lang.String trustee,
java.lang.String protectedName,
int rights)
trustee - The object to remove as a trustee of this objectprotectedName - The name of the property to remove an ACL from. Can include special names such as
"[Entry Rights]" or "[All Attributes Rights]"rights - An int representing the rights to removepublic boolean needToPreventOrphaning(java.lang.String objNotToCheck)
objNotToCheck - String value of any objects not to check for orpaning.public void setAllObjectRights(java.lang.String subject,
int rights)
subject - The object to set as a trustee of this objectrights - An int representing the rights to setpublic void setAllObjectInheritedFilters(int rights)
rights - An int representing the rights to setgetObjectInheritedFilters()public void setAllPropertyInheritedFilters(int rights)
rights - An int representing the rights to setgetAllPropertyInheritedFilters()public void setPropertyInheritedFilters(java.lang.String property,
int rights)
property - The property to set the ACL onrights - An int representing the rights to setgetPropertyInheritedFilters(java.lang.String)public void setAllPropertyRights(java.lang.String subject,
int rights)
subject - The object to set as a trustee of this objectrights - An int representing the rights to setpublic void setPropertyRights(java.lang.String property,
java.lang.String subject,
int newRights,
int oldRights)
property - The property to set the ACL rights onsubject - The object to set as a trustee of this objectnewRights - An int representing the rights to setoldRights - An int representing the existing rights to check to see if newRights contains removal of
protected rightspublic NSObject getNSObject()
public void externalSetDirty()
public void clearDirty()
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}.