|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.novell.admin.rbs.NSModel
Class of static helper methods to access NDS. Note the following: 1- All get methods return null if the desired information is not present. 2- All set methods remove all previous values and replace them. 3- All functions manipulate the NSObject passed in. IFF the NSObject is null, then the functions read and write directly to NDS.
| Constructor Summary | |
NSModel()
|
|
| Method Summary | |
static void |
addDN(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName,
ObjectEntry[] values)
Adds to the DNs of an attribute the given ObjectEntries |
static void |
addStrings(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName,
java.lang.String[] values)
Adds to the strings of a given attribute. |
static void |
addValueComponents(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName,
ValueComponent[] values)
Adds the given ValueComponents to a specified attribute. |
static void |
deleteDN(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName,
ObjectEntry[] values)
Deletes from the DNs of an attribute the given ObjectEntries |
static void |
deleteStrings(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName,
java.lang.String[] values)
Deletes the given strings from a given attribute. |
static void |
deleteValueComponents(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName,
ValueComponent[] values)
Deletes the given ValueComponents from the specified attribute. |
static java.util.Enumeration |
getAttribute(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName)
Gets an Enumeration representing the values of an attribute. |
static ObjectEntry[] |
getDN(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName)
Reads the DNs of an attribute and returns the corresponding ObjectEntries. |
static java.lang.String[] |
getStrings(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName)
Gets a String[] representing the values of a specified attribute. |
static void |
makeDNRelation(NSObject aObj,
NSObject bObj,
java.lang.String aAttrName,
java.lang.String bAttrName)
Given two NSObject and their corresponding attribute names, Puts a in b's attribute, and b in a's attribute. |
static void |
makeTypedNameRelation(NSObject aObj,
NSObject bObj,
java.lang.String aAttrName,
java.lang.String bAttrName,
long aLevel,
long aInterval,
long bLevel,
long bInterval)
Given two NSObject and their corresponding attribute names, Puts a in b's attribute, and b in a's attribute. |
static void |
modifyValueComponents(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName,
ValueComponent[] newValues,
ValueComponent[] oldValues)
Modifies the given ValueComponents in a specified attribute. |
static void |
removeDNRelation(NSObject aObj,
NSObject bObj,
java.lang.String aAttrName,
java.lang.String bAttrName)
Given two NSObject and their corresponding attribute names, removes b from a's attribute and a from b's attribute. |
static void |
removeTypedNameRelation(NSObject aObj,
NSObject bObj,
java.lang.String aAttrName,
java.lang.String bAttrName,
long aLevel,
long aInterval,
long bLevel,
long bInterval)
Given two NSObject and their corresponding attribute names, removes b from a's attribute and a from b's attribute. |
static void |
setDN(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName,
ObjectEntry[] values)
Sets the DNs of an attribute to the given ObjectEntries |
static void |
setStrings(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName,
java.lang.String[] values)
Sets the strings of a given attribute. |
static void |
setValueComponents(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName,
ValueComponent[] values)
Sets a specified attribute to contain the given ValueComponents as its values. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public NSModel()
| Method Detail |
public static java.util.Enumeration getAttribute(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName)
throws SPIException
oe - The ObjectEntry to get values from if nsObj is nullnsObj - The NSObject to read the data from.attrName - The desired attribute name to read
public static void setValueComponents(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName,
ValueComponent[] values)
throws NamespaceException,
SPIException,
SnapinVetoException
oe - The ObjectEntry to set values to if nsObj is nullnsObj - The NSObject to set the data to.attrName - The desired attribute namevalues - The ValueComponent[] containing the values
public static void addValueComponents(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName,
ValueComponent[] values)
throws SPIException,
NamespaceException,
SnapinVetoException
oe - The ObjectEntry to add values to if nsObj is nullnsObj - The NSObject to add the data to.attrName - The desired attribute namevalues - The ValueComponent[] containing the values
public static void deleteValueComponents(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName,
ValueComponent[] values)
throws SPIException
oe - The ObjectEntry to delete values from if nsObj is nullnsObj - The NSObject to delete the data from.attrName - The desired attribute namevalues - The ValueComponent[] containing the values
public static void modifyValueComponents(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName,
ValueComponent[] newValues,
ValueComponent[] oldValues)
throws SPIException,
NamespaceException
oe - The ObjectEntry to modify if nsObj is nullnsObj - The NSObject to modifyattrName - The desired attribute namenewValues - The ValueComponent[] containing the new valuesoldValues - The ValueComponent[] containing the old values
public static java.lang.String[] getStrings(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName)
throws SPIException
oe - The ObjectEntry to read if nsObj is nullnsObj - The NSObject to read the data fromattrName - The desired attribute name
public static void setStrings(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName,
java.lang.String[] values)
throws SPIException,
NamespaceException,
ComponentCreationException,
SnapinVetoException
oe - The ObjectEntry to set values to if nsObj is nullnsObj - The NSObject to set the data to.attrName - The desired attribute namevalues - The String[] containing the values
public static void addStrings(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName,
java.lang.String[] values)
throws SPIException,
NamespaceException,
ComponentCreationException,
SnapinVetoException
oe - The ObjectEntry to add values to if nsObj is nullnsObj - The NSObject to add the data to.attrName - The desired attribute namevalues - The String[] containing the values
public static void deleteStrings(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName,
java.lang.String[] values)
throws SPIException,
NamespaceException,
ComponentCreationException,
SnapinVetoException
oe - The ObjectEntry to use if nsObj is nullnsObj - The NSObject to useattrName - The desired attribute namevalues - The String[] containing the values
public static ObjectEntry[] getDN(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName)
throws SPIException
oe - The ObjectEntry to read if nsObj is nullnsObj - The NSObject to readattrName - The desired attribute name
public static void setDN(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName,
ObjectEntry[] values)
throws SPIException,
NamespaceException,
SnapinVetoException,
ComponentCreationException
oe - The ObjectEntry to read if nsObj is nullnsObj - The NSObject to readattrName - The desired attribute namevalues - The values to set
public static void addDN(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName,
ObjectEntry[] values)
throws NamespaceException,
SPIException,
SnapinVetoException,
ComponentCreationException
oe - The ObjectEntry to use if nsObj is nullnsObj - The NSObject to useattrName - The desired attribute namevalues - The values to set
public static void deleteDN(ObjectEntry oe,
NSObject nsObj,
java.lang.String attrName,
ObjectEntry[] values)
throws SPIException,
SnapinVetoException,
ComponentCreationException
oe - The ObjectEntry to use if nsObj is nullnsObj - The NSObject to useattrName - The desired attribute namevalues - The values to delete
public static void makeDNRelation(NSObject aObj,
NSObject bObj,
java.lang.String aAttrName,
java.lang.String bAttrName)
throws SPIException,
NamespaceException,
ComponentCreationException
aObj - The NSObject for a.bObj - The NSObject for b.aAttrName - String for attribute name for abAttrName - String for attribute name for b
public static void removeDNRelation(NSObject aObj,
NSObject bObj,
java.lang.String aAttrName,
java.lang.String bAttrName)
throws SPIException,
NamespaceException,
ComponentCreationException
aObj - The NSObject for a.bObj - The NSObject for b.aAttrName - String for attribute name for abAttrName - String for attribute name for b
public static void makeTypedNameRelation(NSObject aObj,
NSObject bObj,
java.lang.String aAttrName,
java.lang.String bAttrName,
long aLevel,
long aInterval,
long bLevel,
long bInterval)
throws SPIException,
NamespaceException,
ComponentCreationException
aObj - The NSObject for a.bObj - The NSObject for b.aAttrName - String for attribute name for abAttrName - String for attribute name for baLevel - long representing object a's levelaInterval - long representing object a's intervalbLevel - long representing object b's levelbInterval - long representing object b's interval
public static void removeTypedNameRelation(NSObject aObj,
NSObject bObj,
java.lang.String aAttrName,
java.lang.String bAttrName,
long aLevel,
long aInterval,
long bLevel,
long bInterval)
throws SPIException,
NamespaceException,
ComponentCreationException
aObj - The NSObject for a.bObj - The NSObject for b.aAttrName - String for attribute name for abAttrName - String for attribute name for baLevel - long representing object a's levelaInterval - long representing object a's intervalbLevel - long representing object b's levelbInterval - long representing object b's interval
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||