public class MaxCondition extends CachedObjectPointer implements FixedLoggers
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix
Constructor and Description |
---|
MaxCondition(java.lang.String num,
java.lang.String exp,
int tenantId,
long uniqueId)
Constructor to create a expression condition.
|
MaxCondition(java.lang.String num,
java.lang.String clsName,
java.lang.String value,
boolean isExp,
int tenantId,
long uniqueId)
Constructor to create a expression condition.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(MboRemote mbo)
Evaluate the condition to true or false based on the mbo passed in.
|
boolean |
evaluate(MboRemote mbo,
boolean logExceptionOnly)
Evaluate the condition to true or false based on the mbo passed in.
|
java.lang.String |
getCacheName() |
java.lang.String |
getClassName()
Used by UserProfileHierarchySet for Profile tab in Users app.
|
java.lang.String |
getConditionNum()
Returns condition number.
|
java.lang.String |
getExpression()
Used by UserProfileHierarchySet for Profile tab in Users app.
|
MaxConditionBase |
getTypedReference()
Get reference to actual info object
|
MaxConditionBase |
getTypedReferenceForSet()
Get reference to actual info object for set
|
boolean |
isAlwaysTrue() |
static boolean |
isAlwaysTrue(java.util.ArrayList<MaxCondition> conditions)
Return true if one of the condition is always true.
|
boolean |
isExpression()
Whether it is a expression condition.
|
boolean |
isMboCachable() |
void |
setMboCachable(boolean cachable) |
java.lang.String |
toWhereClause(MboSetRemote msr)
Convert the condition expression to a where clause.
|
getClonedInfo, getID, getParent, getReference, getReferenceForSet, isSameTenantAsReference, setID, setParent, setReference, setTenantReference
public MaxCondition(java.lang.String num, java.lang.String clsName, java.lang.String value, boolean isExp, int tenantId, long uniqueId)
num
- condition numberclsName
- class namevalue
- condition valueexp
- is expressiontenantId
- tenant idid
- unique idpublic MaxCondition(java.lang.String num, java.lang.String exp, int tenantId, long uniqueId)
num
- condition numberexp
- is expressiontenantId
- tenant idid
- unique idpublic boolean isExpression()
public java.lang.String getConditionNum()
public boolean evaluate(MboRemote mbo) throws MXException, java.rmi.RemoteException, java.rmi.RemoteException
mbo
- MXException
java.rmi.RemoteException
public boolean evaluate(MboRemote mbo, boolean logExceptionOnly) throws MXException, java.rmi.RemoteException
mbo
- logExceptionOnly
- True if exception will only be loged.MXException
java.rmi.RemoteException
public java.lang.String toWhereClause(MboSetRemote msr) throws MXException, java.rmi.RemoteException
MXException
RemoteExcption
java.rmi.RemoteException
public boolean isAlwaysTrue()
public static boolean isAlwaysTrue(java.util.ArrayList<MaxCondition> conditions)
conditions
- public java.lang.String getClassName()
public java.lang.String getExpression()
public boolean isMboCachable()
public void setMboCachable(boolean cachable)
public MaxConditionBase getTypedReference()
public MaxConditionBase getTypedReferenceForSet()
public java.lang.String getCacheName()
getCacheName
in class CachedObjectPointer