com.wewebu.ow.server.field
Class OwExpressionPriorityRule

java.lang.Object
  extended by com.wewebu.ow.server.field.OwPriorityRuleBase
      extended by com.wewebu.ow.server.field.OwExpressionPriorityRule
All Implemented Interfaces:
OwPriorityRule

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


Field Summary
static String NODE_NAME_EXPRESSION
           
 
Fields inherited from class com.wewebu.ow.server.field.OwPriorityRuleBase
ATTRIBUTE_NAME_CONTAINER, ATTRIBUTE_NAME_RESOURCE, m_scontainer, m_sresource, m_sStyleClass, NODE_NAME_COLOR
 
Method Summary
 boolean appliesTo(OwObject object_p)
          Checks if this rule applies to an OwObject
static OwExpressionPriorityRule newPiorityRule(Node configNode_p, OwFieldDefinitionProvider fieldefinitionprovider_p)
          Instance creation helper.
 String toString()
           
 
Methods inherited from class com.wewebu.ow.server.field.OwPriorityRuleBase
getContainer, getStylClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NODE_NAME_EXPRESSION

public static final String NODE_NAME_EXPRESSION
See Also:
Constant Field Values
Method Detail

newPiorityRule

public static OwExpressionPriorityRule newPiorityRule(Node configNode_p,
                                                      OwFieldDefinitionProvider fieldefinitionprovider_p)
                                               throws Exception
Instance creation helper. Creates a new OwExpressionPriorityRule instance based on a configuration node

Parameters:
configNode_p - the priority rule configuration node (must contain exactly one CDATA defined expressions)
fieldefinitionprovider_p -
Returns:
the new OwExpressionPriorityRule instance
Throws:
Exception - if the instance creation failed (no CDATA definitions, more than one CDATA definitions,the WFLan expression failed at parse time)

appliesTo

public final boolean appliesTo(OwObject object_p)
                        throws OwInvalidOperationException
Description copied from interface: OwPriorityRule
Checks if this rule applies to an OwObject

Returns:
true if this rule applies to the specified object, false otherwise.
Throws:
OwInvalidOperationException - if the rule checking process failed
See Also:
OwPriorityRule.appliesTo(OwObject)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.