Class JPortalManager

    • Method Detail

      • propertiesChange

        public void propertiesChange​(JProperties properties)
        Description copied from interface: JPropertiesListener
        Invoked after properties have been modified in JCMS and save on disk.

        You cannot alter the value received in parameters.

        Note that properties parameter may be null, a limited set of site properties, or all site properties.

        To check that a property has been modified, reload the "current" property instead using channel.getProperties or channel.getProperty.

        Specified by:
        propertiesChange in interface JPropertiesListener
        Parameters:
        properties - the properties which have been submitted to change
      • canUpdateJPortalJavascriptAndCss

        public boolean canUpdateJPortalJavascriptAndCss​(Member member)
      • getPortletTypeMap

        public java.util.Map<java.lang.String,​java.util.List<JPortalComponent>> getPortletTypeMap()
      • getJPortalComponentSet

        public java.util.Set<JPortalComponent> getJPortalComponentSet​(java.lang.String userLang,
                                                                      java.lang.String search)
      • publishJPortal

        public ControllerStatus publishJPortal​(AbstractJPortal jPortal,
                                               java.lang.String jPortalName,
                                               Member mbr,
                                               java.util.Map<java.lang.String,​java.lang.Object> context,
                                               int pstatus,
                                               Category[] categories,
                                               java.util.Date pdate,
                                               java.lang.String title,
                                               java.util.HashMap<java.lang.String,​java.lang.String> titleML)
        Publish the JPortal
        Parameters:
        jPortal - the AbstractJPortal
        jPortalName - the JPortal name
        mbr - the Member performing the action
        context - for update context
        pstatus - the workflow status
        categories - the Category array of this JPortal
        pdate - the date of publication
        Returns:
        a ControllerStatus based on result of the performed action
      • resetJPortalHistory

        public void resetJPortalHistory​(AbstractJPortal jPortal)
        Reset the history of a given JPortal (remove all entries in database)
        Parameters:
        jPortal -
      • isCompatibleType

        public boolean isCompatibleType​(Portlet portlet)
      • isCompatibleType

        public boolean isCompatibleType​(java.lang.Class portletClass)
        Return true if given class is a JPortal compatible type, by searching in blacklist
        Parameters:
        portletClass - the Portlet class
        Returns:
        true if given class is a JPortal compatible type
        Since:
        jcms-10.0.7
      • getPortletSet

        public java.util.Set<PortalElement> getPortletSet​(AbstractJPortal jportal,
                                                          java.lang.Class selectedPortletType,
                                                          java.lang.String search,
                                                          java.lang.String userLang)
      • duplicateJPortal

        public ControllerStatus duplicateJPortal​(AbstractJPortal jportal,
                                                 WizardContext context,
                                                 boolean updateIds)
        Duplicate a JPortal
        Parameters:
        jportal - the JPortal to duplicate
        context - Wizardcontext from the duplicate() method on AbstractJPortal
        updateIds - if true, will only update the portlet ids from the jportalMapping and update store structure, if false, will duplicate the portlet
        Returns:
        ControllerStatus
      • getJPortalTemplateList

        public java.util.List<JPortalTemplate> getJPortalTemplateList()
      • getJPortalTemplate

        public JPortalTemplate getJPortalTemplate​(java.lang.String templateName)
      • updateJPortalBlocksAndSize

        public JPortalActionResult updateJPortalBlocksAndSize​(AbstractJPortal jportal,
                                                              java.lang.String blocksAndSize,
                                                              Member author)
        Iterate through all blocks of the jportal Remove block not present in the blocksAndSize map Update all blocks size
        Parameters:
        jportal -
        blocksAndSize -
        author -
        Returns:
        JPortalActionResult
      • removeBlockFromStructure

        public JPortalActionResult removeBlockFromStructure​(AbstractJPortal jportal,
                                                            java.lang.String blockId,
                                                            Member author)
        Remove the given blockId from the current JPortal structure Save the tructure and publish the JPortal
        Parameters:
        jportal -
        blockId -
        author -
        Returns:
        a JPortalActionResult
      • activateTypeInWorkspace

        public boolean activateTypeInWorkspace​(Workspace workspace,
                                               java.lang.String applicationClass,
                                               Member author)
        Active the given application class type in the given workspace
        Parameters:
        workspace - AccessControlList.WorkspaceAclSelector
        applicationClass - className
        author - Member
        Returns:
        true if the type is activate