com.wewebu.ow.server.field
Class OwPriorityRuleFactory

java.lang.Object
  extended by com.wewebu.ow.server.field.OwPriorityRuleFactory

public class OwPriorityRuleFactory
extends Object

Singleton priority rules factory.
Used for multiple Priority Rules implementations and legacy support.
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


Method Summary
 OwPriorityRule createRule(Node configNode_p, OwFieldDefinitionProvider fieldefinitionprovider_p)
          Single priority rule factory method.
 Map createRulesContainerMap(OwXMLUtil configNode_p, OwFieldDefinitionProvider fieldefinitionprovider_p)
          Multiple priority rule factory method.
 List createRulesList(OwXMLUtil configNode_p, OwFieldDefinitionProvider fieldefinitionprovider_p)
           
static OwPriorityRuleFactory getInstance()
          Singleton instance accessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static OwPriorityRuleFactory getInstance()
Singleton instance accessor


createRulesList

public List createRulesList(OwXMLUtil configNode_p,
                            OwFieldDefinitionProvider fieldefinitionprovider_p)
                     throws Exception
Throws:
Exception

createRulesContainerMap

public Map createRulesContainerMap(OwXMLUtil configNode_p,
                                   OwFieldDefinitionProvider fieldefinitionprovider_p)
                            throws Exception
Multiple priority rule factory method.

Parameters:
configNode_p - the priority rules configuration node
fieldefinitionprovider_p -
Returns:
a Map of priority lists of rule objects mapped by their container ID see OwPriorityRule.getContainer()
Throws:
Exception

createRule

public OwPriorityRule createRule(Node configNode_p,
                                 OwFieldDefinitionProvider fieldefinitionprovider_p)
                          throws Exception
Single priority rule factory method.

Parameters:
configNode_p - the priority rule configuration node
fieldefinitionprovider_p -
Returns:
the newly created OwPriorityRule
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.