Class ExplorerAppHandler

  • All Implemented Interfaces:
    com.jalios.jcms.JcmsConstants, com.jalios.util.JaliosConstants

    public class ExplorerAppHandler
    extends ExplorerQueryHandler
    Author:
    Kevin
    • Field Detail

      • SHOW_UNCATEGORIZED_PROP

        public static final java.lang.String SHOW_UNCATEGORIZED_PROP
        See Also:
        Constant Field Values
      • DISPLAY_MODE_MEMBER_PREF_KEY_PREFIX

        public static final java.lang.String DISPLAY_MODE_MEMBER_PREF_KEY_PREFIX
        See Also:
        Constant Field Values
      • canUploadDocuments

        public java.lang.Boolean canUploadDocuments
    • Constructor Detail

      • ExplorerAppHandler

        public ExplorerAppHandler()
    • Method Detail

      • setCollaborativeSpaceApplicationDisplay

        public void setCollaborativeSpaceApplicationDisplay​(boolean collaborativeSpaceApplicationDisplay)
      • init

        protected void init()
        Overrides:
        init in class com.jalios.jcms.handler.JcmsFormHandler
      • checkRootAccess

        public boolean checkRootAccess()
        Returns:
        true if root must be controlled (If member cannot access any root of a local explorer, he gets a warning message)
        Since:
        explorer-4.6
      • canAccessOneRoot

        public boolean canAccessOneRoot()
        Returns:
        true if logged member can access at least one root of current explorer
        Since:
        explorer-4.6
      • addFrontEndDependencies

        public void addFrontEndDependencies()
      • is10SP6OrHigher

        public boolean is10SP6OrHigher()
      • isQuotaOver

        public boolean isQuotaOver()
      • isFolderControlledByCrp2OrCrp3

        public boolean isFolderControlledByCrp2OrCrp3​(com.jalios.jcms.Category cat)
      • isFolderHasRights

        public boolean isFolderHasRights​(com.jalios.jcms.Category cat)
        Parameters:
        cat - the Category
        Returns:
        true if given coor has rights
        Since:
        explorer-4.6
      • getFolderIconSrc

        public java.lang.String getFolderIconSrc​(com.jalios.jcms.Category cat)
        Parameters:
        cat - the Category
        Returns:
        the given folder icon src
        Since:
        explorer-4.6
      • getFolderColor

        public java.lang.String getFolderColor​(com.jalios.jcms.Category cat)
        Parameters:
        cat - the Category
        Returns:
        the given folder Color
        Since:
        explorer-4.6
      • getFolderColorHtmlAttributes

        public java.lang.String getFolderColorHtmlAttributes​(com.jalios.jcms.Category cat)
        Parameters:
        cat - the Category
        Returns:
        the folder color html attributes (style/ color:)
        Since:
        explorer-4.6
      • getImageLazyLoadUrl

        public java.lang.String getImageLazyLoadUrl()
      • showBreadcrumbRightLink

        public boolean showBreadcrumbRightLink​(com.jalios.jcms.Category category)
      • getBreadcrumbRightLinkLabel

        public java.lang.String getBreadcrumbRightLinkLabel​(com.jalios.jcms.Category category)
      • canManageCurrentCategory

        public boolean canManageCurrentCategory()
      • canManageCategory

        public boolean canManageCategory​(com.jalios.jcms.Category cat)
      • showAddMenu

        public boolean showAddMenu()
        Returns:
        true if add menu must be displayed
      • showUncategorizedSidebarEntry

        public boolean showUncategorizedSidebarEntry()
      • getTypesEnumerateSettings

        public com.jalios.jcms.taglib.settings.impl.EnumerateSettings getTypesEnumerateSettings()
      • getSortEnumerateSettings

        public com.jalios.jcms.taglib.settings.impl.EnumerateSettings getSortEnumerateSettings()
      • getExplorerDataAttributes

        public java.lang.String getExplorerDataAttributes()
      • getCategoryJsonParams

        public java.lang.String getCategoryJsonParams​(com.jalios.jcms.Category cat)
      • getCurrentContextDataAttributes

        public java.lang.String getCurrentContextDataAttributes​(com.jalios.jcms.Category cat)
      • setDisplayMode

        public void setDisplayMode​(java.lang.String displayMode)
      • getPublicationExplorerCategories

        public java.util.Set<com.jalios.jcms.Category> getPublicationExplorerCategories​(com.jalios.jcms.Data data)
      • getSeeMoreAjaxParams

        public java.lang.String getSeeMoreAjaxParams()
      • getAvailableSidebarOpenedCategories

        public java.util.Set<com.jalios.jcms.Category> getAvailableSidebarOpenedCategories()
      • setSidebarOpenedCategories

        public void setSidebarOpenedCategories​(java.lang.String[] sidebarCategories)
      • isSidebarCategoryOpened

        public boolean isSidebarCategoryOpened​(com.jalios.jcms.Category cat)
      • isSortActive

        public boolean isSortActive​(java.lang.String sort)
      • getSortHeaderCss

        public java.lang.String getSortHeaderCss​(ExplorerField field)
      • getSortHeaderIconSrc

        public java.lang.String getSortHeaderIconSrc​(ExplorerField field)
      • getSortHeaderAlt

        public java.lang.String getSortHeaderAlt​(ExplorerField field)
      • getSortHeaderLabel

        public java.lang.String getSortHeaderLabel​(java.lang.String field)
      • getSortHeaderTitleLabel

        public java.lang.String getSortHeaderTitleLabel​(java.lang.String field)
      • getSortHeaderIcon

        public java.lang.String getSortHeaderIcon​(java.lang.String sort)
      • getDisplayModeMemberPreferenceKey

        public static java.lang.String getDisplayModeMemberPreferenceKey​(generated.PortletExplorer explorer,
                                                                         com.jalios.jcms.workspace.Workspace workspace)
      • canUploadDocuments

        public boolean canUploadDocuments()
        Check if user can upload documents in the current category and workspace
        Overrides:
        canUploadDocuments in class ExplorerQueryHandler
        Returns:
        true if upload is possible with at least one type, false if upload is not authorized
      • canUploadDocuments

        public boolean canUploadDocuments​(com.jalios.jcms.Category categoryInWhichToUpload)
        Check if user can upload documents in the current workspace and the specified category
        Parameters:
        categoryInWhichToUpload - the category in which to check if upload is possible
        Returns:
        true if upload is possible with at least one type, false if upload is not authorized
      • getAppMainUrl

        public java.lang.String getAppMainUrl()
      • getUncategorizedUrl

        public java.lang.String getUncategorizedUrl()
      • isCollaborativeSpaceApplicationDisplay

        public boolean isCollaborativeSpaceApplicationDisplay()
      • setScrollToExplorer

        public void setScrollToExplorer​(java.lang.String scrollToExplorer)
      • getAvailableScrollToExplorer

        public generated.PortletExplorer getAvailableScrollToExplorer()
      • scrollToExplorer

        public boolean scrollToExplorer()
      • getPortletParameterName

        public java.lang.String getPortletParameterName()
      • getCategoryUrl

        public java.lang.String getCategoryUrl​(com.jalios.jcms.Category cat,
                                               com.jalios.jcms.workspace.Workspace workspace)
      • getExplorerCurrentUrl

        public java.lang.String getExplorerCurrentUrl()
      • getExplorerShareUrl

        public java.lang.String getExplorerShareUrl​(com.jalios.jcms.Category cat,
                                                    com.jalios.jcms.workspace.Workspace workspace)
      • getOriginalExplorerUrl

        public java.lang.String getOriginalExplorerUrl()
      • setOriginalExplorerUrl

        public void setOriginalExplorerUrl​(java.lang.String originalExplorerUrl)
      • getFileSizeInMB

        public static java.lang.Long getFileSizeInMB​(java.lang.Long sizeInBytes)
      • getMaxFileSizeInMB

        public static java.lang.Long getMaxFileSizeInMB()
      • isCategoryRightsPropagateRightsEnabled

        public boolean isCategoryRightsPropagateRightsEnabled()
      • explorerContainsCurrentCategory

        public boolean explorerContainsCurrentCategory()
        Returns:
        true if current category is really contained in any portlet explorer root categories
      • setDisplayedPublication

        public void setDisplayedPublication​(java.lang.String displayedPublication)
      • getAvailableDisplayedPublication

        public com.jalios.jcms.Publication getAvailableDisplayedPublication()
      • getFolderPathAsString

        public java.lang.String getFolderPathAsString​(com.jalios.jcms.Category folder)
      • getTableAriaLabel

        public java.lang.String getTableAriaLabel()