Class JPortalEditorHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class JPortalEditorHandler extends JcmsFormHandler
  • Field Details

    • PORTLET_EDITION_REQUEST_ATTR

      public static final String PORTLET_EDITION_REQUEST_ATTR
      See Also:
    • FORM_HANDLER_REQUEST_ATTR

      public static final String FORM_HANDLER_REQUEST_ATTR
      See Also:
    • JPORTAL_INSTANCE_REQUEST_ATTR

      public static final String JPORTAL_INSTANCE_REQUEST_ATTR
      See Also:
    • JPORTAL_EDITION_REQUEST_ATTR

      public static final String JPORTAL_EDITION_REQUEST_ATTR
      See Also:
    • containerCssClass

      public static final String[] containerCssClass
    • containerLabels

      public static final String[] containerLabels
  • Constructor Details

    • JPortalEditorHandler

      public JPortalEditorHandler()
  • Method Details

    • getCloseUrl

      public String getCloseUrl()
    • getPublishModalUrl

      public String getPublishModalUrl()
    • getPreviewUrl

      public String getPreviewUrl()
      Returns:
      the URL to the JPortal preview page.
      Since:
      jcms-10.0.9 / JCMS-11419
    • getPreviewIframeUrl

      public String getPreviewIframeUrl()
      Returns:
      the URL to the JPortal preview IFRAME.
      Since:
      jcms-10.0.9 / JCMS-11419
    • 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
    • getPortletSet

      public Set<Portlet> getPortletSet()
    • getAvailableWorkspaceFilter

      public String getAvailableWorkspaceFilter()
    • canCreatePortlet

      public boolean canCreatePortlet()
    • getPortletName

      public String getPortletName()
    • getPortletEditTemplatePath

      public String getPortletEditTemplatePath()
    • isTemplateAvailable

      public static boolean isTemplateAvailable(Class portletClazz, String template)
    • getPortletTypeTemplateEntrySet

      public static Set<TypeTemplateEntry> getPortletTypeTemplateEntrySet(Class portletClazz)
    • isSkinAvailable

      public static boolean isSkinAvailable(String skin)
    • getSkinTemplateEntrySet

      public static Set<TypeTemplateEntry> getSkinTemplateEntrySet(AbstractJPortal jPortal)
    • isSearchPerformed

      public boolean isSearchPerformed()
    • isJPortalCollaborativeSpace

      public boolean isJPortalCollaborativeSpace()
      Check if the edited jportal belongs to a CollaborativeSpace
      Returns:
      true if the edited jportal belongs to a collaborative space
      Since:
      jcms-10.0.7
    • isCollaborativeSpacePagePortal

      public boolean isCollaborativeSpacePagePortal()
      Check if the edited jportal belongs to a CollaborativeSpace and is not the dashboard portal but a page portal
      Returns:
      true if the edited jportal belongs to a collaborative space and is not the dashboard portal but a page portal
      Since:
      jcms-10.0.9 / JCMS-11419
      See Also:
    • showJPortalEditionTab

      public boolean showJPortalEditionTab()
      Returns whether the editor must display the Edit JPortal tab.
      Returns:
      false if the edited jportal is a collaborative space page portal, true otherwise
      Since:
      jcms-10.0.9 / JCMS-11419
    • showDuplicateJPortalButton

      public boolean showDuplicateJPortalButton()
      Returns whether the editor must display the duplicate button.
      Returns:
      false for collaborative space portal, true otherwise
      Since:
      jcms-10.0.9 / JCMS-11419
    • getSkinUsage

      public String getSkinUsage()
    • getPortletInstanceSet

      public Set<Portlet> getPortletInstanceSet()
    • isPortletJaliosSkin

      public boolean isPortletJaliosSkin()
      Returns:
      true if current portlet uses jalios skin
    • getPortletPortalSet

      public Set<PortalInterface> getPortletPortalSet()
    • getEnumerateSettings

      public EnumerateSettings getEnumerateSettings(String prop)
    • getComponentsAutoCompleteSettings

      public TextFieldSettings getComponentsAutoCompleteSettings()
    • getWorkspaceFilterSettings

      public EnumerateSettings getWorkspaceFilterSettings()
    • addFrontEndDependencies

      public void addFrontEndDependencies()
    • getHandlebarsTemplateParams

      public HandlebarsTemplateParams getHandlebarsTemplateParams()
    • getAvailableJPortal

      public AbstractJPortal getAvailableJPortal()
    • getjPortalStructure

      public String getjPortalStructure()
    • setjPortalStructure

      public void setjPortalStructure(String jPortalStructure)
    • getPortletClass

      public Class<Portlet> getPortletClass()
    • setPortletClassName

      public void setPortletClassName(String portletClassName)
    • isCreatePortlet

      public boolean isCreatePortlet()
    • setCreatePortlet

      public void setCreatePortlet(boolean createPortlet)
    • getPortletId

      public String getPortletId()
    • setPortletId

      public void setPortletId(String portletId)
    • getBlockId

      public String getBlockId()
    • setBlockId

      public void setBlockId(String blockId)
    • setjPortal

      public void setjPortal(String jPortalId)
    • getText

      public String getText()
    • setText

      public void setText(String text)
    • getAvailableJPortalMapping

      public JPortalMapping getAvailableJPortalMapping()
    • getJPortalMappingUI

      public String getJPortalMappingUI()
    • getOpUnlock

      public String getOpUnlock()
    • setOpUnlock

      public void setOpUnlock(String opUnlock)
    • getPortletSimpleName

      public static String getPortletSimpleName(String portletName)
    • isOpResetHistory

      public boolean isOpResetHistory()
    • setOpResetHistory

      public void setOpResetHistory(boolean opResetHistory)
    • getContainerCssClass

      public String[] getContainerCssClass()
    • getContainerLabels

      public String[] getContainerLabels(String lang)
    • getComponentSearchName

      public String getComponentSearchName()
    • setComponentSearchName

      public void setComponentSearchName(String componentSearchName)
    • isOpSaveStructure

      public boolean isOpSaveStructure()
    • setOpSaveStructure

      public void setOpSaveStructure(boolean opSaveStructure)
    • getResult

      public String getResult()
    • setResult

      public void setResult(String result)
    • isOpRemoveBlockAndUpdateSizes

      public boolean isOpRemoveBlockAndUpdateSizes()
    • setOpRemoveBlockAndUpdateSizes

      public void setOpRemoveBlockAndUpdateSizes(boolean opRemoveBlockAndUpdateSizes)
    • setPortletClass

      public void setPortletClass(Class<Portlet> portletClass)
    • getAvailableCollaborativeSpace

      public PortletCollection getAvailableCollaborativeSpace()
    • setCollaborativeSpace

      public void setCollaborativeSpace(String collaborativeSpace)
    • getBlocksAndSize

      public String getBlocksAndSize()
    • setBlocksAndSize

      public void setBlocksAndSize(String blocksAndSize)
    • getTargetBlockId

      public String getTargetBlockId()
    • setTargetBlockId

      public void setTargetBlockId(String targetBlockId)
    • getMovePosition

      public String getMovePosition()
    • setMovePosition

      public void setMovePosition(String movePosition)
    • isOpMoveBlockAndUpdateSizes

      public boolean isOpMoveBlockAndUpdateSizes()
    • setOpMoveBlockAndUpdateSizes

      public void setOpMoveBlockAndUpdateSizes(boolean opMoveBlockAndUpdateSizes)
    • getNewBlockId

      public String getNewBlockId()
    • setNewBlockId

      public void setNewBlockId(String newBlockId)
    • getBlockToMoveId

      public String getBlockToMoveId()
    • setBlockToMoveId

      public void setBlockToMoveId(String blockToMoveId)
    • setWorkspaceFilter

      public void setWorkspaceFilter(String workspaceFilter)