Class UnifiedInsertHandler

    • Constructor Detail

      • UnifiedInsertHandler

        public UnifiedInsertHandler()
    • Method Detail

      • init

        protected void init()
        Description copied from class: JcmsFormHandler
        Method to implement if you need to initialize your handler from parameter received, prior to all security validation.

        You must absolutely not perform any action which modify data or site configuration.

        Therefore it is strongly recommend NOT TO implement this method, or use very wisely.

        Overrides:
        init in class JcmsFormHandler
      • getItemUrl

        public java.lang.String getItemUrl​(MenuItem selectedItem)
        Returns the selected item url, by merging item url and query params
        Parameters:
        selectedItem - the selected MenuItem
        Returns:
        the given item url
        Since:
        jcms-10.0.5
      • getMenuItems

        public java.util.Set<MenuItem> getMenuItems()
        Retrieve the set of MenuItem to display
        Returns:
        a set of MenuItems, never return null
      • getSelectedItem

        public MenuItem getSelectedItem()
        Retrieve the MenuItem to be displayed as active
        Returns:
        a MenuItem, may return null if no item was selected
      • setSelect

        public void setSelect​(java.lang.String selection)
      • setConfigurationId

        public void setConfigurationId​(java.lang.String configurationId)