public class CustomCondition extends java.lang.Object implements CustomCondition, CustomConditionInterface
Constructor and Description |
---|
CustomCondition()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluateCondition(MboRemote mbo,
java.lang.Object param)
Deprecated.
|
boolean |
evaluateCustomCondition(MboRemote mbo)
Deprecated.
|
java.lang.String |
toWhereClause(java.lang.Object param,
MboSetRemote msr)
Deprecated.
|
public boolean evaluateCustomCondition(MboRemote mbo) throws MXException, java.rmi.RemoteException
evaluateCustomCondition
in interface CustomConditionInterface
mbo
- MXException
java.rmi.RemoteException
public boolean evaluateCondition(MboRemote mbo, java.lang.Object param) throws MXException, java.rmi.RemoteException
CustomCondition
For data restrictions having a condition (SecurityRestrict other than object Qualified), the object framework will call this method for each Mbo and set the Mbo and MboValue flags appropriately.
evaluateCondition
in interface CustomCondition
mbo
- param
- Any object of parameter that is understood by the condition class.
For data restrictions, this param is not used. To use it, some of the framework logic
must be overridden in the Mbo.MXException
java.rmi.RemoteException
SecurityRestrict
,
Condition
,
Mbo.evaluateRestriction(psdi.mbo.DataRestriction)
,
Mbo.evaluateCtrlConditions(java.util.HashSet)
,
Mbo.evaluateCondition(java.lang.String, boolean)
public java.lang.String toWhereClause(java.lang.Object param, MboSetRemote msr) throws MXException, java.rmi.RemoteException
CustomCondition
For qualified object data restrictions (SecurityRestrict) having a condition type of Class, the object framework (MboSet) will call this method to construct the Where clause.
toWhereClause
in interface CustomCondition
param
- For data restrictions, this is not used by the object framework. To use param
you must override some of the framework logic in your MboSet.msr
- The MboSet whose Where clause is being constructedMXException
java.rmi.RemoteException
SecurityRestrict
,
Condition
,
MboSet.getQualifiedWhere()