Class JPortalEditPortletUIHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class JPortalEditPortletUIHandler extends JcmsFormHandler
  • Field Details

    • PORTLET_CREATION_HANDLER_REQUEST_ATTR

      public static final String PORTLET_CREATION_HANDLER_REQUEST_ATTR
      See Also:
    • jportal

      protected generated.JPortal jportal
    • editedPortlet

      protected PortalElement editedPortlet
    • skinHeaderPrimaryColor

      protected String skinHeaderPrimaryColor
    • skinHeaderSecondaryColor

      protected String skinHeaderSecondaryColor
    • skin

      protected String skin
    • opUpdateUI

      protected boolean opUpdateUI
    • template

      protected String template
    • editPortletHandler

      protected EditPortalElementHandler editPortletHandler
    • createPortletHandler

      protected JPortalAddPorletHandler createPortletHandler
    • applicationClass

      protected String applicationClass
    • opCreatePortlet

      protected boolean opCreatePortlet
    • newPortletId

      protected String newPortletId
    • skinHeaderSubTextTFE

      protected TypeFieldEntry skinHeaderSubTextTFE
    • skinHeaderSubText

      protected String skinHeaderSubText
    • skinHeaderSubTextML

      protected HashMap<String,String> skinHeaderSubTextML
  • Constructor Details

    • JPortalEditPortletUIHandler

      public JPortalEditPortletUIHandler()
  • Method Details

    • 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
    • processAction

      public boolean processAction() throws IOException
      Description copied from class: JcmsFormHandler
      Method to be implemented to check/validate action to be performed and process them.

      Default implementation is to return false. No need to call super method.

      This method may NOT be invoked at all if security validation are not met.

      You must ensure your handler and JSP can work properly without any code invoked in this method.

      Overrides:
      processAction in class JcmsFormHandler
      Returns:
      false if no redirection is needed, true otherwise
      Throws:
      IOException - IO Exception
    • validateUpdateUI

      protected boolean validateUpdateUI()
    • validateCreatePortlet

      protected boolean validateCreatePortlet()
    • performCreatePortlet

      protected boolean performCreatePortlet() throws IOException
      Throws:
      IOException
    • getCreationAbilities

      protected String[] getCreationAbilities()
    • performUpdateUI

      protected boolean performUpdateUI() throws IOException
      Throws:
      IOException
    • updatePortlet

      protected boolean updatePortlet()
    • showLanguageChooser

      public boolean showLanguageChooser()
    • getAvailableMainLanguage

      public String getAvailableMainLanguage()
      Overrides:
      getAvailableMainLanguage in class JcmsFormHandler
    • getTemplateEntrySet

      public Set<TypeTemplateEntry> getTemplateEntrySet()
    • getTemplateEntry

      public TypeTemplateEntry getTemplateEntry()
    • isSkinSelected

      public boolean isSkinSelected(TypeTemplateEntry template)
    • getDefaultSkin

      public String getDefaultSkin()
    • isTemplateSelected

      public boolean isTemplateSelected(TypeTemplateEntry tte)
    • getDefaultTemplate

      public String getDefaultTemplate()
    • getSelectedTemplate

      public TypeTemplateEntry getSelectedTemplate()
    • isSkinablePortlet

      public boolean isSkinablePortlet()
    • showTemplateTab

      public boolean showTemplateTab()
    • showFullEditButton

      public boolean showFullEditButton()
    • canWorkOnPortlet

      public boolean canWorkOnPortlet()
    • showSettingsTab

      public boolean showSettingsTab()
    • getBoxTemplateSet

      public Set<TypeTemplateEntry> getBoxTemplateSet()
    • getTemplateSettings

      public Set<TypeTemplateEntry> getTemplateSettings()
    • getPortletEditFormHandlerPath

      public String getPortletEditFormHandlerPath()
    • getPortletEditTemplatePath

      public String getPortletEditTemplatePath()
    • getPortletClass

      public Class getPortletClass()
    • getPortletClassSimpleName

      public String getPortletClassSimpleName()
    • getApplicationSettings

      public EnumerateSettings getApplicationSettings()
    • displayJMobileOptions

      public boolean displayJMobileOptions()
    • isPortletCreation

      public boolean isPortletCreation()
    • isTabActive

      public boolean isTabActive(String tabName)
    • showSection

      public boolean showSection(JPortalEditPortletUIHandler.SkinSection section)
      Parameters:
      section - the JPortalEditPortletUIHandler.SkinSection
      Returns:
      true if given section must be shown depending on selected skin
    • getSkinName

      public String getSkinName()
    • getSkinHeaderSubTextML

      public Map<String,String> getSkinHeaderSubTextML()
    • isFieldSkinHeaderSubTextVisible

      public boolean isFieldSkinHeaderSubTextVisible()
    • getAvailableJportal

      public generated.JPortal getAvailableJportal()
    • setJportal

      public void setJportal(String jportal)
    • getAvailableEditedPortlet

      public PortalElement getAvailableEditedPortlet()
    • setEditedPortlet

      public void setEditedPortlet(String editedPortlet)
    • setCreatePortletHandler

      public void setCreatePortletHandler(JPortalAddPorletHandler createPortletHandler)
    • getCreatePortletHandler

      public JPortalAddPorletHandler getCreatePortletHandler()
    • getApplicationClass

      public String getApplicationClass()
    • setApplicationClass

      public void setApplicationClass(String applicationClass)
    • isOpCreatePortlet

      public boolean isOpCreatePortlet()
    • setOpCreatePortlet

      public void setOpCreatePortlet(boolean opCreatePortlet)
    • getNewPortletId

      public String getNewPortletId()
    • getSkinHeaderPrimaryColor

      public String getSkinHeaderPrimaryColor()
    • setSkinHeaderPrimaryColor

      public void setSkinHeaderPrimaryColor(String skinHeaderPrimaryColor)
    • getSkinHeaderSecondaryColor

      public String getSkinHeaderSecondaryColor()
    • setSkinHeaderSecondaryColor

      public void setSkinHeaderSecondaryColor(String skinHeaderSecondaryColor)
    • isOpUpdateUI

      public boolean isOpUpdateUI()
    • setOpUpdateUI

      public void setOpUpdateUI(boolean opUpdateUI)
    • getTemplate

      public String getTemplate()
    • setTemplate

      public void setTemplate(String template)
    • getEditPortletHandler

      public EditPortalElementHandler getEditPortletHandler()
    • setEditPortletHandler

      public void setEditPortletHandler(EditPortalElementHandler editPortletHandler)
    • getSkin

      public String getSkin()
    • setSkin

      public void setSkin(String skin)
    • setSkinHeaderSubText

      public void setSkinHeaderSubText(String[] v)
    • getAvailableSkinHeaderSubText

      public String getAvailableSkinHeaderSubText()
    • getAvailableSkinHeaderSubTextML

      public HashMap<String,String> getAvailableSkinHeaderSubTextML()
    • isSkinHeaderSubTextDisplay

      public boolean isSkinHeaderSubTextDisplay()
    • setSkinHeaderSubTextDisplay

      public void setSkinHeaderSubTextDisplay(boolean skinHeaderSubTextDisplay)
    • getCurrentTab

      public String getCurrentTab()
    • setCurrentTab

      public void setCurrentTab(String currentTab)