Interface IMediaManager

  • All Known Implementing Classes:
    MediaManager

    public interface IMediaManager
    Provides media management operations.
    Since:
    7.0.0
    Version:
    $Revision: 24143 $ $Date: 2020-09-14 19:21:23 -0300 (Mon, 14 Sep 2020) $
    • Method Detail

      • getFolderIdsByParentAndName

        Collection<String> getFolderIdsByParentAndName​(String serviceInstanceId,
                                                       String parentFolderId,
                                                       String folderName)
                                                throws PortalException
        Returns the ids of the folders child of the given parent and with the given name.
        Parameters:
        serviceInstanceId - the media service instance id.
        parentFolderId - the parent folder's id. Null if the folder must not have parent.
        folderName - the folder name.
        Returns:
        Throws:
        PortalException
      • getFolderPath

        String getFolderPath​(String folderId)
                      throws PortalException
        Returns the virtual path to the folder.
        Parameters:
        folderId - the id of the folder.
        Returns:
        the virtual path to the folder.
        Throws:
        PortalException
      • moveMedia

        void moveMedia​(String mediaId,
                       String destFolderId)
                throws PortalException
        Moves a media (or a folder) to another folder.
        Parameters:
        mediaId - the media's id.
        destFolderId - the id of the destination folder.
        Throws:
        PortalException
      • updateMediaHierarchyPublishTo

        void updateMediaHierarchyPublishTo​(String mediaId,
                                           Collection<String> heritagePrincipalsId)
                                    throws PortalException

        Update the list of principals the media is published to

        When the media type is a folder, the entire file tree inside it will also be updated taking into account their inheritance.

        Parameters:
        mediaId - The media identifier to update
        heritagePrincipalsId - The list of principals to set.
        Throws:
        PortalException
        Since:
        10.1.0
      • getFromFileId

        Media getFromFileId​(String fileId)
                     throws PortalException
        Returns the MediaConfig for given file identifier.
        Parameters:
        fileId - the file identifier.
        Returns:
        the MediaConfig for given file identifier.
        Throws:
        PortalException
        Since:
        12.5.0