com.wewebu.ow.server.plug.owutil
Class OwConfigUtils

java.lang.Object
  extended by com.wewebu.ow.server.plug.owutil.OwConfigUtils

public class OwConfigUtils
extends Object

Static class with utility functions to create simple parameter from plugin descriptor.

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


Constructor Summary
OwConfigUtils()
           
 
Method Summary
static int computeReadOnlyViewMaskFromConfig(OwXMLUtil configNode_p, String strNodeName_p, int iMaskBit_p)
          get the view read-only mask bit from the config node for the given config node, only if read-only attribute is set
static int computeViewMaskFromConfig(OwXMLUtil configNode_p, String strNodeName_p, int iMaskBit_p)
          helper function to get the view mask bit from the config node use this function to create mask bits out of XML descriptions to easily configure your dialogs and views.
This method assumes false as default value.
static int computeViewMaskFromConfig(OwXMLUtil configNode_p, String strNodeName_p, int iMaskBit_p, boolean fDefault_p)
          helper function to get the view mask bit from the config node use this function to create mask bits out of XML descriptions to easily configure your dialogs and views.
The default value of this config option can be configured.
static int computeViewMaskFromConfig(OwXMLUtil configNode, String nodeName, String showFlagAttribute, int maskBit, boolean defaultShowValue)
          helper function to get the view mask bit from the config node's show flag attribute use this function to create mask bits out of XML descriptions to easily configure your dialogs and views.
The default value of this config option can be configured.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwConfigUtils

public OwConfigUtils()
Method Detail

computeViewMaskFromConfig

public static int computeViewMaskFromConfig(OwXMLUtil configNode_p,
                                            String strNodeName_p,
                                            int iMaskBit_p)
helper function to get the view mask bit from the config node use this function to create mask bits out of XML descriptions to easily configure your dialogs and views.
This method assumes false as default value.

Parameters:
configNode_p - OwXMLUtil plugin descriptor
strNodeName_p - String XML node name in plugin descriptor which has true or false
iMaskBit_p - int a bit value to associate with in case of true
Returns:
int mask bit if node name is set otherwise 0

computeViewMaskFromConfig

public static int computeViewMaskFromConfig(OwXMLUtil configNode_p,
                                            String strNodeName_p,
                                            int iMaskBit_p,
                                            boolean fDefault_p)
helper function to get the view mask bit from the config node use this function to create mask bits out of XML descriptions to easily configure your dialogs and views.
The default value of this config option can be configured.

Parameters:
configNode_p - OwXMLUtil plugin descriptor
strNodeName_p - String XML node name in plugin descriptor which has true or false
iMaskBit_p - int a bit value to associate with in case of true
fDefault_p - the default value for this config option
Returns:
int mask bit if node name is set otherwise 0

computeViewMaskFromConfig

public static int computeViewMaskFromConfig(OwXMLUtil configNode,
                                            String nodeName,
                                            String showFlagAttribute,
                                            int maskBit,
                                            boolean defaultShowValue)
                                     throws OwException
helper function to get the view mask bit from the config node's show flag attribute use this function to create mask bits out of XML descriptions to easily configure your dialogs and views.
The default value of this config option can be configured.

Parameters:
configNode - OwXMLUtil plugin descriptor
nodeName - String XML node name in plugin descriptor which has true or false
showFlagAttribute - show falg boolean attribute name
maskBit - int a bit value to associate with in case of true
defaultShowValue - the default value for this config option
Returns:
int mask bit if node name is set otherwise 0
Throws:
OwException
Since:
4.1.1.0

computeReadOnlyViewMaskFromConfig

public static int computeReadOnlyViewMaskFromConfig(OwXMLUtil configNode_p,
                                                    String strNodeName_p,
                                                    int iMaskBit_p)
get the view read-only mask bit from the config node for the given config node, only if read-only attribute is set

Parameters:
configNode_p - OwXMLUtil plugin descriptor
strNodeName_p - String XML node name in plugin descriptor which has true or false
iMaskBit_p - int a bit value to associate with in case of true
Returns:
int mask bit if node name is set otherwise 0


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.