Interface I_CmsGalleryService

    • Method Detail

      • deleteResource

        void deleteResource​(java.lang.String resourcePath)
                     throws CmsRpcException
        Deletes the given resource.

        Parameters:
        resourcePath - the resource path of the resource to delete
        Throws:
        CmsRpcException - if something goes wrong
      • getGalleries

        java.util.List<CmsGalleryFolderBeangetGalleries​(java.lang.String context,
                                                          java.util.List<java.lang.String> resourceTypes)
                                                   throws CmsRpcException
        Returns the available galleries depending on the given resource types.

        Parameters:
        context - URI of the current page or subsite
        resourceTypes - the resource types
        Returns:
        the galleries
        Throws:
        CmsRpcException - if something goes wrong
      • getGalleryActionInfo

        CmsGalleryActionInfo getGalleryActionInfo​(java.lang.String sitePath)
                                           throws CmsRpcException
        Gets the gallery upload action information for the given path.
        Parameters:
        sitePath - the path of a gallery folder
        Returns:
        the gallery upload action information for that folder (may be null if no folder is found)
        Throws:
        CmsRpcException - if something goes wrong
      • getInfoForResource

        CmsResultItemBean getInfoForResource​(java.lang.String path,
                                             java.lang.String locale)
                                      throws CmsRpcException
        Returns the resource info for a single resource.

        Parameters:
        path - the resource path
        locale - the content locale
        Returns:
        the resource info
        Throws:
        CmsRpcException - if something goes wrong
      • getSubEntries

        java.util.List<CmsSitemapEntryBeangetSubEntries​(java.lang.String rootPath,
                                                          boolean isRoot,
                                                          java.lang.String filter)
                                                   throws CmsRpcException
        Returns the sub entries to the given sitemap path.

        Parameters:
        rootPath - the root path
        isRoot - true if the requested entry is the root entry
        filter - the search filter string
        Returns:
        the sub entries
        Throws:
        CmsRpcException - if something goes wrong
      • getSubFolders

        java.util.List<CmsVfsEntryBeangetSubFolders​(java.lang.String path)
                                               throws CmsRpcException
        Gets the sub-folders of a folder.

        Parameters:
        path - the path of a folder
        Returns:
        beans representing the sub-folders of the folder
        Throws:
        CmsRpcException - if something goes wrong
      • loadVfsEntryBean

        CmsVfsEntryBean loadVfsEntryBean​(java.lang.String path,
                                         java.lang.String filter)
                                  throws CmsRpcException
        Loads the root VFS entry bean for the given site root.
        Parameters:
        path - the site root
        filter - the filter string
        Returns:
        the root VFS entry bean for the given site root
        Throws:
        CmsRpcException - if something goes wrong
      • saveResultViewType

        void saveResultViewType​(java.lang.String resultViewType)
        Stores the result view type with the user.

        Parameters:
        resultViewType - the result view type
      • saveTreeOpenState

        void saveTreeOpenState​(java.lang.String treeName,
                               java.lang.String treeToken,
                               java.lang.String siteRoot,
                               java.util.Set<CmsUUID> openItems)
                        throws CmsRpcException
        Saves the tree open state for a tree tab.

        Parameters:
        treeName - the tree name for which to save the tree state
        treeToken - the tree token for which to save the tree state
        siteRoot - the site root
        openItems - the set of structure ids of open tree items
        Throws:
        CmsRpcException - if something goes wrong