com.wewebu.ow.server.field
Class OwStandardPriorityRule

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

public class OwStandardPriorityRule
extends OwPriorityRuleBase

Priority rule definition standard implementation (XML Search Node 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_SEARCHNODE
           
 
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
 
Constructor Summary
OwStandardPriorityRule()
           
 
Method Summary
 boolean appliesTo(OwObject object_p)
          Checks if this rule applies to an OwObject
 OwSearchNode getRule()
          get the OwSearchNode with criteria that make up the rule
 void init(Node configNode_p, OwFieldDefinitionProvider fieldefinitionprovider_p)
          init from config node
 
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, toString, wait, wait, wait
 

Field Detail

NODE_NAME_SEARCHNODE

public static final String NODE_NAME_SEARCHNODE
See Also:
Constant Field Values
Constructor Detail

OwStandardPriorityRule

public OwStandardPriorityRule()
Method Detail

init

public void init(Node configNode_p,
                 OwFieldDefinitionProvider fieldefinitionprovider_p)
          throws Exception
init from config node

Parameters:
configNode_p - priority rule DOM node
fieldefinitionprovider_p - OwFieldDefinitionProvider
Throws:
Exception

getRule

public OwSearchNode getRule()
get the OwSearchNode with criteria that make up the rule

Returns:
OwSearchNode

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


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.