Package lumis.util

Class ScriptPathUtil


  • public class ScriptPathUtil
    extends Object
    Utility methods and classes for setting the className attribute or node from some xpath from a node provided, using the corresponding scriptPath attribute or node resolved into a className by the replacement of bars by points.
    Since:
    8.1.0
    Version:
    $Revision: 17770 $ $Date: 2015-09-30 20:06:01 -0300 (Wed, 30 Sep 2015) $
    • Field Detail

      • DEFAULT_CLASS_NAME_ATTRIBUTE_OR_NODE_NAME

        public static final String DEFAULT_CLASS_NAME_ATTRIBUTE_OR_NODE_NAME
        See Also:
        Constant Field Values
      • DEFAULT_SCRIPT_PATH_ATTRIBUTE_OR_NODE_NAME

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

      • ScriptPathUtil

        public ScriptPathUtil()
    • Method Detail

      • processNodes

        public static void processNodes​(String basePath,
                                        Node parentNode,
                                        ScriptPathUtil.ProcessEntry... entries)
                                 throws PortalException
        Process the given entries using the given node as the base node and the base path for relativizing script paths.
        Parameters:
        basePath - the base path.
        parentNode - the base parent node.
        entries - the entries to be processed.
        Throws:
        PortalException
        Since:
        8.1.0