|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.application.console.snapin.ResultModifier
Defines a ResultModifier, which represents a namespace-specific description of how list and search operations are sorted and filtered.
All extensions of ResultModifier must be serializable. Extending classes must consider the implications of adding large data members. Make all data members transient, unless persistence is required.
NamespaceSnapin.getChildren(ObjectEntry parent, ResultModifier modifier),
NamespaceSnapin.getChildContainers(ObjectEntry parent, ResultModifier modifier),
Serialized Form| Field Summary | |
static int |
SORTBY_KEY_NAME
|
static int |
SORTBY_KEY_TYPE
|
static int |
SORTBY_KEY_TYPE_NAME
|
static int |
SORTBY_KEY_UNSORTED
|
static int |
SORTORDER_KEY_ASCENDING
|
static int |
SORTORDER_KEY_DECENDING
|
| Constructor Summary | |
ResultModifier(java.lang.String descriptiveName)
Contructs an ResultModifier with the specified descriptive name. |
|
ResultModifier(java.lang.String descriptiveName,
int sortByKey,
int sortOrderKey,
ResultModifierFilterEntry filterEntry)
Deprecated. As of ConsoleOne version 1.3, use constructor with new subcontainer search field. |
|
ResultModifier(java.lang.String descriptiveName,
int sortByKey,
int sortOrderKey,
ResultModifierFilterEntry filterEntry,
boolean subContainerSearch)
Contructs a ResultModifier with the specified descriptive name, sort information, and filters. |
|
| Method Summary | |
void |
addFilter(ResultModifierFilterEntry filterEntry)
Adds a filter to the ResultModifier. |
void |
clearFilters()
Removes all filters from the ResultModifier. |
boolean |
equals(java.lang.Object obj)
Tests for equivalency of two ResultModifiers. |
java.lang.String |
getDescriptiveName()
Obtains the descriptive name of the ResultModifier. |
boolean |
getFiltered()
Determines if the ResultModifier can filter. |
ResultModifierFilterEntry[] |
getFilters()
Obtains the array of filters currently in the ResultModifier. |
java.lang.String |
getFilterString()
Helper method to build a filter which can consist of the naming attributes of objects and a set of baseClasses. |
boolean |
getIncludeAuxClasses()
|
boolean |
getIncludeSubClasses()
|
boolean |
getSimpleAndOpAdvanced()
|
int |
getSortByKey()
Obtains the sort-by key of the ResultModifier. |
int |
getSortOrderKey()
Obtains the sort key of the ResultModifier. |
boolean |
isSubContainerSearch()
Determine if result modifier applies to subcontainers. |
void |
setSortByKey(int sortByKey)
Sets the sort-by key in the ResultModifier. |
void |
setSortOrderKey(int sortOrderKey)
Sets the sort-order key in the ResultModifier. |
void |
setSubContainerSearch(boolean subContainerSearch)
Setup the result modifier subcontainers search mode. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int SORTBY_KEY_NAME
public static final int SORTBY_KEY_TYPE
public static final int SORTBY_KEY_TYPE_NAME
public static final int SORTBY_KEY_UNSORTED
public static final int SORTORDER_KEY_ASCENDING
public static final int SORTORDER_KEY_DECENDING
| Constructor Detail |
public ResultModifier(java.lang.String descriptiveName)
The default state of the ResultModifier will be: SORTBY_KEY_TYPE_NAME SORTORDER_KEY_ASCENDING no type filter no name filter no subcontainer search
descriptiveName - The descriptive name of the ResultModifier.public ResultModifier(java.lang.String descriptiveName,
int sortByKey,
int sortOrderKey,
ResultModifierFilterEntry filterEntry)
descriptiveName - The descriptive name of the ResultModifier.sortByKey - The sort-by key (ResultModifier.SORTBY_KEY_*).sortOrderKey - The sort-order key (ResultModifier.SORTORDER_KEY_*).filterEntry - A filter entry. Can be null if none is desired.public ResultModifier(java.lang.String descriptiveName,
int sortByKey,
int sortOrderKey,
ResultModifierFilterEntry filterEntry,
boolean subContainerSearch)
descriptiveName - The descriptive name of the ResultModifier.sortByKey - The sort-by key (ResultModifier.SORTBY_KEY_*).sortOrderKey - The sort-order key (ResultModifier.SORTORDER_KEY_*).filterEntry - A filter entry. Can be null if none is desired.subContainerSearch - A boolean indicating whether subcontainers are being searched.| Method Detail |
public void addFilter(ResultModifierFilterEntry filterEntry)
filterEntry - - The filter to add to the ResultModifier.public void clearFilters()
public boolean equals(java.lang.Object obj)
obj - The ResultModifier to compare against.
public java.lang.String getDescriptiveName()
public boolean getFiltered()
public ResultModifierFilterEntry[] getFilters()
public java.lang.String getFilterString()
public boolean getIncludeAuxClasses()
public boolean getIncludeSubClasses()
public boolean getSimpleAndOpAdvanced()
public int getSortByKey()
public int getSortOrderKey()
public boolean isSubContainerSearch()
public void setSortByKey(int sortByKey)
sortByKey - The sort-by key: ResultModifier.SORTBY_KEY_*.public void setSortOrderKey(int sortOrderKey)
sortOrderKey - The sort-order key: ResultModifier.SORTORDER_KEY_*.public void setSubContainerSearch(boolean subContainerSearch)
subContainerSearch - - True if subcontainers should be searched, false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||