|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nitido.nimx.nuggets.iplanetset.Filter
public class Filter
The data object for message filter.
A message filter is composed of three major fields:
The field "action" is the FilterAction object that indicate what action to executed if the conditions are satisfied.
The field "operator" specifies how the server would evaluate the conditions. There are two valid operator "allof" and "anyof". This class has declared them as constants ALL and ANY respectively. The ALL operator indicates the filter action will be invoked only if all the condition are satisfied. The ANY operator tells the server to launch the action if one of the condition is true.
If the filters were first created through the iPlanet Delegated Administrator, they will also contain the components:
The field "template" is the name of the template that the iPlanet Delegated Administrator used to create the filter.
The field "message" includes messages that is used by iPlanet Delegated Administrator to generate the interface messages.
The field "require" indicates what extension the rule requires.
Field Summary | |
---|---|
static java.lang.String |
ALL
Constants of the message filter operator string "allof". |
static java.lang.String |
ANY
Constants of the message filter operator string "anyof". |
Constructor Summary | |
---|---|
Filter(java.lang.String filterString)
Ldap string to filter constructor. |
|
Filter(java.lang.String name,
java.lang.String template,
java.lang.String fullRule)
The ultmate advance constructor. |
|
Filter(java.lang.String name,
java.lang.String template,
java.lang.String message,
java.lang.String require,
java.util.Vector conditions,
java.lang.String operator,
FilterAction action)
An advance constructor that allows the user to specify the name and iPlanet filter template name. |
|
Filter(java.util.Vector conditions,
java.lang.String operator,
FilterAction action)
Default constructor for the application. |
Method Summary | |
---|---|
FilterAction |
getAction()
|
java.util.Vector |
getConditions()
|
java.lang.String |
getFullRule()
|
java.lang.String |
getMessage()
|
java.lang.String |
getName()
|
java.lang.String |
getOperator()
|
int |
getOrder()
|
java.lang.String |
getRequire()
|
java.lang.String |
getTemplate()
|
void |
setAction(FilterAction action)
|
void |
setConditions(java.util.Vector conditions)
|
void |
setFullRule(java.lang.String fullRule)
|
void |
setMessage(java.lang.String message)
|
void |
setName(java.lang.String name)
|
void |
setOperator(java.lang.String operator)
|
void |
setOrder(int order)
|
void |
setRequire(java.lang.String require)
|
void |
setTemplate(java.lang.String template)
|
java.lang.String |
toLdapString()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ANY
public static final java.lang.String ALL
Constructor Detail |
---|
public Filter(java.util.Vector conditions, java.lang.String operator, FilterAction action)
This is the constructor that you usually use.
conditions
- A vector of FilterCondition objects.
operator
- the constants ANY or ALL. (To indicate the action will be launched
if all or one of the condition is satisfied).
action
- The FilterAction object that describes the action.
public Filter(java.lang.String name, java.lang.String template, java.lang.String message, java.lang.String require, java.util.Vector conditions, java.lang.String operator, FilterAction action)
name
- The name of the filter.
template
- The template name as defined by iPlanet Delegated Administrator.
message
- The UI format messages used by iPlanet Delegated Administrator.
require
- The required extension.
conditions
- A vector of FilterCondition objects.
operator
- the constants ANY or ALL. (To indicate the action will be launched
if all or one of the condition is satisfied).
action
- The FilterAction object that describes the action.
public Filter(java.lang.String name, java.lang.String template, java.lang.String fullRule)
public Filter(java.lang.String filterString)
filterString
- the string from the LDAP server.Method Detail |
---|
public void setOrder(int order)
public int getOrder()
public void setName(java.lang.String name)
public java.lang.String getName()
public void setTemplate(java.lang.String template)
public java.lang.String getTemplate()
public void setMessage(java.lang.String message)
public java.lang.String getMessage()
public void setRequire(java.lang.String require)
public java.lang.String getRequire()
public void setConditions(java.util.Vector conditions)
public java.util.Vector getConditions()
public void setOperator(java.lang.String operator)
public java.lang.String getOperator()
public void setAction(FilterAction action)
public FilterAction getAction()
public void setFullRule(java.lang.String fullRule)
public java.lang.String getFullRule()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toLdapString()
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.