public class TargetObjects
extends java.lang.Object
| Constructor and Description |
|---|
TargetObjects(java.lang.String pack,
TaskContext context)
Constructs a TargetObjects with the query string used to select objects.
|
| Modifier and Type | Method and Description |
|---|---|
static TargetObjects |
createInstance(java.lang.String id,
TaskContext context) |
static boolean |
detectPackageAssociation(java.lang.String eDirTarget,
TaskContext context,
java.lang.StringBuffer packageName)
Returns true if a package association is detected on the target object identified by eDir target.
|
java.lang.String[] |
getBadObjectNames()
Returns objects found in the directory that did not match the query string.
|
int |
getCount()
Returns the length of the target group.
|
int |
getCountReliability()
Returns the reliability of the number returned by getCount.
|
java.lang.String |
getCountReliablityMessage()
Returns a warning message to display to the user if the count returned is not exact.
|
java.lang.Exception[] |
getErrors()
Returns any errors parsing the XML String or finding objects that match the query string.
|
ObjectEntry |
getObjectEntry()
Use this method to retrieve the target ObjectEntry only if one target name was specified in the
pack parameter in the constructor.
|
ObjectEntryEnumeration |
getObjectEntryEnumeration()
Use this method to retrieve the target ObjectEntries if there are multiple targets
contained by this object.
|
ObjectEntry[] |
getOEArray()
Returns an array of Object Entries for the objects in the target.
NOTE: Internal use only. |
boolean |
isMultiple()
Returns true if more than one type name is specified in the constructor or if XML search criteria is provided.
|
static boolean |
isPackageManagedObject(ObjectEntry objectOE,
java.lang.StringBuffer packageName)
Returns true if a package association is detected on the target object identified by objectOE.
|
void |
reset(TaskContext context)
Resets the TargetObjects with a new context and uses the previous query string.
|
void |
setOEArray(ObjectEntry[] OEArray) |
public TargetObjects(java.lang.String pack,
TaskContext context)
throws SPIException,
PluginException
pack - String containing XML data which contains the query string used to select the objectscontext - TaskContext of the plug-inSPIExceptionPluginExceptionpublic static TargetObjects createInstance(java.lang.String id, TaskContext context) throws PluginException, SPIException
PluginExceptionSPIExceptionpublic void reset(TaskContext context) throws SPIException, org.jdom.JDOMException
context - TaskContext of the plug-inSPIExceptionorg.jdom.JDOMExceptionpublic java.lang.Exception[] getErrors()
public java.lang.String[] getBadObjectNames()
public int getCount()
getCountReliability(),
getCountReliablityMessage()public int getCountReliability()
Possible values:
CountableObjectEntryEnumeration,
getCount(),
getCountReliablityMessage()public boolean isMultiple()
getObjectEntryEnumeration(),
getObjectEntry()public ObjectEntryEnumeration getObjectEntryEnumeration()
isMultiple()public ObjectEntry getObjectEntry()
isMultiple()public java.lang.String getCountReliablityMessage()
getCount(),
getCountReliability()public ObjectEntry[] getOEArray()
public void setOEArray(ObjectEntry[] OEArray)
public static boolean detectPackageAssociation(java.lang.String eDirTarget,
TaskContext context,
java.lang.StringBuffer packageName)
ObjectEntry, - StringBufferpublic static boolean isPackageManagedObject(ObjectEntry objectOE, java.lang.StringBuffer packageName)
ObjectEntry, - StringBuffer
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}.