public class AdvSelTypeInfo
extends java.lang.Object
AdvSelTypeInfoCallback routine which contains information necessary for the Advanced
Selector widget to display the Advanced Search criterion screen. The Advanced Selector knows nothing about
eDirectory or any other type of directory that the Object Selector may browse. In order for the Advanced
Selector to display the correct attributes, operations, and values for those attributes for a particular
class of object, the calling task must provide an AdvSelTypeInfo object containing this information. By default,
iManager has an AdvSelTypeInfoCallback function that returns an AdvSelTypeInfo for base eDirectory objects.
However, as a plug-in writer you may want to provide your own callback function that returns an AdvSelTypeInfo.| Constructor and Description |
|---|
AdvSelTypeInfo()
Constructs an AdvSelTypeInfo object for a specific ds type (class).
|
AdvSelTypeInfo(java.lang.String[] defaultOps)
Constructs an AdvSelTypeInfo object with a nonstandard list of default operations for a specific ds type (class).
|
AdvSelTypeInfo(java.lang.String[] defaultOps,
java.lang.String opResBundle)
Constructs an AdvSelTypeInfo object with a nonstandard list of default operations for a specific ds type (class)
and a resource bundle to use to display the localized operation names.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(java.lang.String name,
java.lang.String[] ops)
Add an attribute with its corresponding list of operations.
|
void |
addAttribute(java.lang.String name,
java.lang.String[] ops,
java.lang.String[] values)
Add an attribute with its corresponding list of operations and valid values.
|
void |
addAuxClasses(java.lang.String[] auxClasses)
Allows ids of all auxClasses to be stored in the info structure
|
java.lang.String[] |
getAllOps()
Returns an array of all defined operations to compare attribute values.
|
int |
getAllOpsLength()
Return the number of unique operators.
|
java.lang.String |
getAttributeName(int index)
Returns a string resprenting the name of the ds attribute at position index
in the collection.
|
java.lang.String[] |
getAttributeOps(int index)
Returns an array of strings resprenting the comparision operations allowed for
the ds attribute at position index in the collection.
|
java.lang.String[] |
getAttributeValues(int index)
Returns an array of strings resprenting the comparision values allowed for
the ds attribute at position index in the collection.
|
java.lang.String[] |
getAuxClasses()
Returns a String[] of all auxClasses that have been stored
|
java.lang.String |
getDefaultName()
Returns the internal name of the default attribute in the collection.
|
java.lang.String[] |
getDefaultOps()
Returns an array of strings resprenting the default comparision operations allowed
for the ds attribute at position index in the collection.
|
int |
getDefaultOpsLength()
Returns the number of default operations that have been defined for this collection.
|
java.lang.String |
getOpResourceBundle()
Returns the name of the resource bundle where the localized ops can be found.
|
java.lang.String[] |
getUniOps()
Return an array of all unary operators used in this type info.
|
int |
getUniOpsLength()
Return the number of unique unary operators.
|
int |
length()
Returns how many attributes have been defined in this collection.
|
public AdvSelTypeInfo(java.lang.String[] defaultOps,
java.lang.String opResBundle)
defaultOps - A String array containing a list of operations to be used when an attribute has none defined.
This parameter may be null to specify the standard list of default operations.opResBundle - String containing the name of a resource bundle to use to display the localized
operation names.public AdvSelTypeInfo(java.lang.String[] defaultOps)
defaultOps - A String array containing a list of operations to be used when an attribute has none defined.public AdvSelTypeInfo()
public void addAuxClasses(java.lang.String[] auxClasses)
auxClasses - String[] of auxClass ids representing all auxilliary classes defined in the directorypublic java.lang.String[] getAuxClasses()
public void addAttribute(java.lang.String name,
java.lang.String[] ops,
java.lang.String[] values)
name - String containing the ds name for this attribute. If name==null, nothing happens.ops - String array representing the relations operation that will be
allowed for this attribute. If ops[]==null, implies default ops will be used.values - String array representing the allowed values that may be specified
for this attribute. If values[]==null, no list of allowed values exists for this
attribute (any values are allowed).public void addAttribute(java.lang.String name,
java.lang.String[] ops)
name - String containing the ds name for this attribute. If name==null, nothing happensops - String array representing the relations operation that will be
allowed for this attribute. If ops[]==null, implies default ops will be used.public int length()
public java.lang.String getAttributeName(int index)
index - int specifying the position of the attributepublic java.lang.String[] getAttributeOps(int index)
index - int specifying the position of the attributepublic java.lang.String[] getAttributeValues(int index)
index - int specifying the position of the attributepublic java.lang.String getDefaultName()
public java.lang.String[] getDefaultOps()
getDefaultOpsLength()public int getDefaultOpsLength()
getDefaultOps()public java.lang.String[] getAllOps()
getAllOpsLength()public int getAllOpsLength()
getAllOps()public java.lang.String[] getUniOps()
getUniOpsLength()public int getUniOpsLength()
getAllOps()public java.lang.String getOpResourceBundle()
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}.