public class OwExpressionPriorityRule extends OwPriorityRuleBase
Priority rule definition standard implementation (Expression Language based).
Rules Engine for Highlighting in Hit List.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Modifier and Type | Field and Description |
---|---|
static String |
NODE_NAME_EXPRESSION |
ATTRIBUTE_NAME_CONTAINER, ATTRIBUTE_NAME_RESOURCE, m_scontainer, m_sresource, m_sStyleClass, NODE_NAME_COLOR
Modifier and Type | Method and Description |
---|---|
boolean |
appliesTo(OwObject object_p)
Checks if this rule applies to an
OwObject |
static OwExpressionPriorityRule |
newPiorityRule(Node configNode_p,
OwFieldDefinitionProvider fieldefinitionprovider_p)
Deprecated.
since 4.2.0.0 use
newPriorityRule(OwXMLUtil) instead |
static OwExpressionPriorityRule |
newPriorityRule(OwXMLUtil config)
Instance creation helper.
|
static OwExpressionPriorityRule |
newPriorityRule(String styleClass,
String expression)
Simplified factory for OwExpressionPriorityRule instances.
|
String |
toString() |
getContainer, getStylClass
public static final String NODE_NAME_EXPRESSION
public static OwExpressionPriorityRule newPiorityRule(Node configNode_p, OwFieldDefinitionProvider fieldefinitionprovider_p) throws Exception
newPriorityRule(OwXMLUtil)
insteadOwExpressionPriorityRule
instance based on a configuration nodeconfigNode_p
- the priority rule configuration node (must contain exactly one CDATA defined expressions)fieldefinitionprovider_p
- OwExpressionPriorityRule
instanceException
- if the instance creation failed (no CDATA definitions, more than one CDATA definitions,the WFLan expression failed at parse time)public static OwExpressionPriorityRule newPriorityRule(OwXMLUtil config) throws OwException
OwExpressionPriorityRule
instance based on a configuration nodeconfig
- OwXMLUtil the priority rule configuration node (must contain exactly one CDATA defined expressions)OwExpressionPriorityRule
instanceOwException
- if the instance creation failed (no CDATA definitions, more than one CDATA definitions,the WFLan expression failed at parse time)
since 4.2.0.0public static OwExpressionPriorityRule newPriorityRule(String styleClass, String expression) throws OwException
styleClass
- String style class definitionexpression
- String expression for the rule, should result into Boolean termOwException
public final boolean appliesTo(OwObject object_p) throws OwInvalidOperationException
OwPriorityRule
OwObject
true
if this rule applies to the specified object, false
otherwise.OwInvalidOperationException
- if the rule checking process failedOwPriorityRule.appliesTo(OwObject)
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.