public class ResultModifier
extends java.lang.Object
implements java.io.Serializable
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.
| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOWFILESYSTEMBROWSE_NCPSERVER |
static int |
ALLOWFILESYSTEMBROWSE_NONE |
static int |
ALLOWFILESYSTEMBROWSE_VOLUME |
static int |
BLOCK_KEY_NORMAL |
static int |
BLOCK_KEY_SHOW_BLOCKED_OBJECTS |
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 and Description |
|---|
ResultModifier(int blockKey) |
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.
|
ResultModifier(java.lang.String descriptiveName,
int sortByKey,
int sortOrderKey,
ResultModifierFilterEntry filterEntry,
boolean subContainerSearch,
boolean subClasses)
Contructs a ResultModifier with the specified descriptive name, sort information, and filters.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
int |
getAllowFileSystemBrowse() |
int |
getBlockKey() |
protected java.lang.String |
getComplexFilterString(AdminNamespace namespace)
Helper method to build an LDAP search filter string from the complex filter.
|
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()
Deprecated.
Use getFilterString(AdminNamespace namespace)
|
java.lang.String |
getFilterString(AdminNamespace namespace)
Helper method to build an LDAP search filter string.
|
boolean |
getIncludeAuxClasses() |
boolean |
getIncludeSubClasses() |
protected java.lang.String |
getNameFilterString(java.lang.String nameValue,
boolean eDir)
Converts the name field of a ResultModifierFilterEntry into an LDAP search filter string.
To search on the name of an object, we use "(Name=___)" for eDirectory,
or "(distinguishedValue=___)" for NVDS.
|
boolean |
getShowGlue() |
boolean |
getSimpleAndOpAdvanced() |
protected java.lang.String |
getSimpleFilterString(AdminNamespace namespace)
Helper method to build an LDAP search filter string from the simple name and types filter.
|
int |
getSortByKey()
Obtains the sort-by key of the ResultModifier.
|
int |
getSortOrderKey()
Obtains the sort key of the ResultModifier.
|
protected java.lang.String |
getTypeFilterString(java.lang.String[] typeValues,
boolean eDir,
AdminNamespace namespace) |
boolean |
isSubContainerSearch()
Determine if result modifier applies to subcontainers.
|
void |
setAllowFileSystemBrowse(int inAllowFileSystemBrowse) |
void |
setIncludeAuxClasses(boolean inShowAuxAndSubClasses) |
void |
setIncludeSubClasses(boolean inShowInheritedSubClasses) |
void |
setShowGlue(boolean showGlue) |
void |
setSimpleAndOpAdvanced(boolean inUseSimpleAndOpAdvanced) |
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.
|
public static final int ALLOWFILESYSTEMBROWSE_NONE
public static final int ALLOWFILESYSTEMBROWSE_VOLUME
public static final int ALLOWFILESYSTEMBROWSE_NCPSERVER
public static final int SORTBY_KEY_UNSORTED
public static final int SORTBY_KEY_TYPE
public static final int SORTBY_KEY_NAME
public static final int SORTBY_KEY_TYPE_NAME
public static final int SORTORDER_KEY_ASCENDING
public static final int SORTORDER_KEY_DECENDING
public static final int BLOCK_KEY_NORMAL
public static final int BLOCK_KEY_SHOW_BLOCKED_OBJECTS
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.public ResultModifier(java.lang.String descriptiveName,
int sortByKey,
int sortOrderKey,
ResultModifierFilterEntry filterEntry,
boolean subContainerSearch,
boolean subClasses)
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.subClasses - A boolean indicating whether subclasses are being searched.public ResultModifier(int blockKey)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The ResultModifier to compare against.public java.lang.String getDescriptiveName()
public void setSortByKey(int sortByKey)
sortByKey - The sort-by key: ResultModifier.SORTBY_KEY_*.public int getSortByKey()
public void setSortOrderKey(int sortOrderKey)
sortOrderKey - The sort-order key: ResultModifier.SORTORDER_KEY_*.public int getSortOrderKey()
public boolean isSubContainerSearch()
public void setSubContainerSearch(boolean subContainerSearch)
subContainerSearch - - True if subcontainers should be searched, false otherwise.public int getBlockKey()
public void addFilter(ResultModifierFilterEntry filterEntry)
filterEntry - - The filter to add to the ResultModifier.public void clearFilters()
public void setIncludeSubClasses(boolean inShowInheritedSubClasses)
public boolean getIncludeSubClasses()
public void setIncludeAuxClasses(boolean inShowAuxAndSubClasses)
public boolean getIncludeAuxClasses()
public void setSimpleAndOpAdvanced(boolean inUseSimpleAndOpAdvanced)
public boolean getSimpleAndOpAdvanced()
public void setShowGlue(boolean showGlue)
public boolean getShowGlue()
public void setAllowFileSystemBrowse(int inAllowFileSystemBrowse)
inAllowFileSystemBrowse - bit flag whether to allow browsing into the filesystem
through Volume and/or NCP Server objects
ALLOWFILESYSTEMBROWSE_VOLUME - allow browsing through Volume objects
ALLOWFILESYSTEMBROWSE_NCPSERVER - allow browsing through NCP Server Objects.
these flags may be or'ed togetherpublic int getAllowFileSystemBrowse()
public ResultModifierFilterEntry[] getFilters()
public boolean getFiltered()
public java.lang.String getFilterString()
public java.lang.String getFilterString(AdminNamespace namespace)
The type filters are affected by two flags:
- showInheritedSubClasses=true
Select objects of this class or subclasses of this class.
This filter turns into a series of (structuralObjectClass=__) components
- showAuxAndSubClasses=true
Selects objects that have this class as an Auxiliary or subclass.
This filter turns into an (objectClass=__) component.
- Both flags = false
Selects only objects with this class as the base class.
This filter turns into a single (structuralObjectClass=__) component.
Because eDirectory/LDAP cannot perform a search on structuralObjectClass,
it always uses objectClass. eDirectory and NVDS also differ in how
to search for the typeless name of the object. For this reason, we pass
in the namespace object as a parameter.
If the object is an instance of FilterResultModifier, it contains a complex filter.
This complex filter is a combination of (attr op value) FilterItem objects in a
FilterItemGroup object, in a FilterItemGroupPair object, in a Filter object.
If the object is an instance of AdvancedResultModifier, the complex filter is just
an arbitrary LDAP search filter string, but is ignored in eDirectory/NDAP.
The simple and complex filters are combined with an OR, unless the 'useSimpleAndOpAdvanced'
flag is set, in which case they are combined with an AND.namespace - The namespace object. Used to determine eDirectory vs NVDS.
If null, assumes eDirectory.protected java.lang.String getSimpleFilterString(AdminNamespace namespace)
The type filters are affected by two flags:
- showInheritedSubClasses=true
Select objects of this class or subclasses of this class.
This filter turns into a series of (structuralObjectClass=__) components
- showAuxAndSubClasses=true
Selects objects that have this class as an Auxiliary or subclass.
This filter turns into an (objectClass=__) component.
- Both flags = false
Selects only objects with this class as the base class.
This filter turns into a single (structuralObjectClass=__) component.
Because eDirectory/LDAP cannot perform a search on structuralObjectClass,
it always uses objectClass. eDirectory and NVDS also differ in how
to search for the typeless name of the object. For this reason, we pass
in the namespace object as a parameter.namespace - The namespace object. Used to determine eDirectory vs NVDS.
If null, assumes eDirectory.protected java.lang.String getNameFilterString(java.lang.String nameValue,
boolean eDir)
nameValue - The name string to use as a filter.eDir - true for an eDirectory serverprotected java.lang.String getTypeFilterString(java.lang.String[] typeValues,
boolean eDir,
AdminNamespace namespace)
protected java.lang.String getComplexFilterString(AdminNamespace namespace)
namespace - The namespace object. Used to determine eDirectory vs NVDS.
If null, assumes eDirectory.
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}.