|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.emframe.dev.rights.eDirRightsObject
This is an encapsulation of the namespace NSObject to get rights info.
| Field Summary | |
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 Summary | |
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). |
|
| Method Summary | |
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. |
NDSNamespace |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int ALL_OBJ_RIGHTS
public static final int ALL_PROP_RIGHTS
public static final int NO_ASSIGNMENT
public static final int OBJECT_EXCEPTION
| Constructor Detail |
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 from| Method Detail |
public boolean aclReadRights()
public boolean aclWriteRights()
public void clearDirty()
public 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 remove
public boolean deleteTrustee(java.lang.String trustee)
trustee - The object to remove as a trustee of this object
public void externalSetDirty()
public ObjectAttribute getACLAttribute()
public eDirPropertyRightsData getAllPropertyInheritedFilters()
setAllPropertyInheritedFilters(int)
public 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 names
public java.util.Vector getAssignedAllPropertyRights(java.lang.String trustee)
trustee - The trustee to check to see what object rights are assigned
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 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 rights
public java.util.Enumeration getAttributeNames()
public eDirPropertyRightsData getEffectiveAllPropertyRights(ObjectEntry trusteeObj)
trusteeObj - An ObjectEntry pointing to the trustee object to get effective rights on
public eDirObjectRightsData getEffectiveObjectRights(ObjectEntry trusteeObj)
trusteeObj - An ObjectEntry pointing to the trustee object to get effective rights on
public eDirPropertyRightsData getEffectivePropertyRights(ObjectEntry trusteeObj,
java.lang.String property)
trusteeObj - An ObjectEntry pointing to the trustee object to get effective rights onproperty - String of property name
public NDSNamespace getNameSpace()
public NSObject getNSObject()
public eDirObjectRightsData getObjectInheritedFilters()
public eDirPropertyRightsData getPropertyInheritedFilters(java.lang.String property)
property - String containing the property to get inherited rights filters for
setPropertyInheritedFilters(java.lang.String, int)public java.util.Enumeration getTrustees()
public boolean isDirty()
public boolean needToPreventOrphaning(java.lang.String objNotToCheck)
objNotToCheck - String value of any objects not to check for orpaning.
public void setAllObjectInheritedFilters(int rights)
rights - An int representing the rights to setgetObjectInheritedFilters()
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 setAllPropertyInheritedFilters(int rights)
rights - An int representing the rights to setgetAllPropertyInheritedFilters()
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 set
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 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 boolean updateData()
updateDataNoCatch()
public void updateDataNoCatch()
throws SPIException,
SnapinVetoException
SPIException - Namespace exception
SnapinVetoException - Namespace exceptionupdateData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||