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 and Description |
---|
OwConfigUtils() |
Modifier and Type | Method and Description |
---|---|
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. |
public static int computeViewMaskFromConfig(OwXMLUtil configNode_p, String strNodeName_p, int iMaskBit_p)
configNode_p
- OwXMLUtil plugin descriptorstrNodeName_p
- String XML node name in plugin descriptor which has true or falseiMaskBit_p
- int a bit value to associate with in case of truepublic static int computeViewMaskFromConfig(OwXMLUtil configNode_p, String strNodeName_p, int iMaskBit_p, boolean fDefault_p)
configNode_p
- OwXMLUtil plugin descriptorstrNodeName_p
- String XML node name in plugin descriptor which has true or falseiMaskBit_p
- int a bit value to associate with in case of truefDefault_p
- the default value for this config optionpublic static int computeViewMaskFromConfig(OwXMLUtil configNode, String nodeName, String showFlagAttribute, int maskBit, boolean defaultShowValue) throws OwException
configNode
- OwXMLUtil plugin descriptornodeName
- String XML node name in plugin descriptor which has true or falseshowFlagAttribute
- show falg boolean attribute namemaskBit
- int a bit value to associate with in case of truedefaultShowValue
- the default value for this config optionOwException
public static int computeReadOnlyViewMaskFromConfig(OwXMLUtil configNode_p, String strNodeName_p, int iMaskBit_p)
configNode_p
- OwXMLUtil plugin descriptorstrNodeName_p
- String XML node name in plugin descriptor which has true or falseiMaskBit_p
- int a bit value to associate with in case of trueCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.