public interface IMediaManager
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_ALL |
Modifier and Type | Method and Description |
---|---|
Media |
get(String mediaId)
Returns the MediaConfig for a media with the given id.
|
Collection<Media> |
getChildren(String serviceInstanceId,
String folderId,
int type)
Returns the entries in the specified folder.
|
Collection<String> |
getFolderIdsByParentAndName(String serviceInstanceId,
String parentFolderId,
String folderName)
Returns the ids of the folders child of the given parent and with the given name.
|
String |
getFolderPath(String folderId)
Returns the virtual path to the folder.
|
Collection<String> |
getMediaPublishToPrincipals(String mediaId)
Return a the list of principals for which the
media is published to. |
void |
moveMedia(String mediaId,
String destFolderId)
Moves a media (or a folder) to another folder.
|
void |
updateMediaHierarchyPublishTo(String mediaId,
Collection<String> heritagePrincipalsId)
Update the list of principals the
media is published to |
static final int TYPE_ALL
Media get(String mediaId) throws PortalException
mediaId
- the id of the media.PortalException
Collection<String> getFolderIdsByParentAndName(String serviceInstanceId, String parentFolderId, String folderName) throws PortalException
serviceInstanceId
- the media service instance id.parentFolderId
- the parent folder's id. Null if the folder must not have parent.folderName
- the folder name.PortalException
Collection<Media> getChildren(String serviceInstanceId, String folderId, int type) throws PortalException
serviceInstanceId
- the media service instance id.folderId
- the id of the folder.type
- the entry types to be returned. Must be Media.TYPE_FOLDER
, Media.TYPE_MEDIA
or TYPE_ALL
.PortalException
String getFolderPath(String folderId) throws PortalException
folderId
- the id of the folder.PortalException
void moveMedia(String mediaId, String destFolderId) throws PortalException
mediaId
- the media's id.destFolderId
- the id of the destination folder.PortalException
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
.
mediaId
- The media identifier
to updateheritagePrincipalsId
- The list of principals to set.PortalException
Collection<String> getMediaPublishToPrincipals(String mediaId) throws PortalException
media
is published to.mediaId
- The media identifier
PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.