Interface ContentServiceInternal

    • Method Detail

      • getSubtreeItems

        List<String> getSubtreeItems​(String siteId,
                                     String path)
        Get subtree items for given path.
        Parameters:
        siteId - site identifier
        path - path to get subtree items for
        Returns:
        list of paths of subtree items
      • getSubtreeItems

        List<String> getSubtreeItems​(String siteId,
                                     List<String> path)
        Get subtree items for given paths.
        Parameters:
        siteId - site identifier
        path - list of paths to get subtree items for
        Returns:
        list of paths of subtree items
      • getItem

        org.craftercms.core.service.Item getItem​(String siteId,
                                                 String path,
                                                 boolean flatten)
      • getContentSize

        long getContentSize​(String siteId,
                            String path)
        Get content size
        Parameters:
        siteId - site identifier
        path - content path
        Returns:
        size in bytes
      • isEditable

        boolean isEditable​(String itemPath,
                           String itemMimeType)
        Check if item is editable
        Parameters:
        itemPath - item path
        itemMimeType - item mime type
        Returns:
        true if item is editable
      • itemLockByPath

        void itemLockByPath​(String siteId,
                            String path)
        Lock item by path for given site
        Parameters:
        siteId - site identifier
        path - item path to lock
      • itemUnlockByPath

        void itemUnlockByPath​(String siteId,
                              String path)
        Unlock item by path for given site
        Parameters:
        siteId - site identifier
        path - item path
      • getContentByCommitId

        Optional<org.springframework.core.io.Resource> getContentByCommitId​(String siteId,
                                                                            String path,
                                                                            String commitId)
                                                                     throws ContentNotFoundException
        Get content for commit id
        Parameters:
        siteId - site identifier
        path - path of the content
        commitId - commit id of the content version
        Returns:
        the resource if available
        Throws:
        ContentNotFoundException