|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.emframe.dev.TargetObjects
This class represents the targets that a task should operate on. It is used by the TargetChooser and is returned by DirUtils.unpackDNs(). It is a wrapper that contains either a single ObjectEntry when there is just one target or an ObjectEntryEnumeration when there are multiple targets. Use isMultiple() to determine if there are more than one targets instead of walking the ObjectEntryEnumeration.
| Constructor Summary | |
TargetObjects(java.lang.String pack,
TaskContext context)
Constructs a TargetObjects with the query string used to select objects. |
|
| Method Summary | |
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 if there is only one target contained by this object. |
ObjectEntryEnumeration |
getObjectEntryEnumeration()
Use this method to retrieve the target ObjectEntries if there are multiple targets contained by this object. |
boolean |
isMultiple()
Returns true if there are multiple targets contained by this object. |
void |
reset(TaskContext context)
Resets the TargetObjects with a new context and uses the previous query string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
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-in
SPIException
PluginException| Method Detail |
public java.lang.String[] getBadObjectNames()
public int getCount()
getCountReliability(),
getCountReliablityMessage()public int getCountReliability()
Possible values:
CountableObjectEntryEnumeration,
getCount(),
getCountReliablityMessage()public java.lang.String getCountReliablityMessage()
getCount(),
getCountReliability()public java.lang.Exception[] getErrors()
public ObjectEntry getObjectEntry()
isMultiple()public ObjectEntryEnumeration getObjectEntryEnumeration()
isMultiple()public boolean isMultiple()
getObjectEntryEnumeration(),
getObjectEntry()public void reset(TaskContext context)
throws SPIException,
org.jdom.JDOMException
context - TaskContext of the plug-in
SPIException
org.jdom.JDOMException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||