Package com.mayam.wf.ws.client
Class SegmentApi
java.lang.Object
com.mayam.wf.ws.client.SegmentApi
API for dealing with segments
This class is accessed using
A revision is a specified revision of an asset. This is in the mam called Media Object Group (mog).
a revisionId is what in the mam can be called a mog id. The
TasksClient.segmentApi()
A segmentListId is the id of the segmentList as stored in the mam.
It can be found inside the SegmentList
String
segmentListId = list.getId();
A SegmentListList
is a basically a ArrayListAssetApi
contains methods to deal with revisions- Author:
- Erik Bågfors invalid input: '<'erik@mayam.com>
-
Constructor Summary
ConstructorDescriptionSegmentApi
(com.mayam.wf.ws.client.internal.SegmentsRestClient sClient, com.mayam.wf.ws.client.internal.AssetSegmentsRestClient asClient) -
Method Summary
Modifier and TypeMethodDescriptioncreateSegmentList
(AssetType assetType, String assetId, SegmentList segmentList) Creates a new segment list.void
deleteSegmentList
(String segmentListId) Deletes a segment list by its identifier.getSegmentList
(String segmentListId) Returns a segment list by its identifier.getSegmentListBySiteId
(String siteId) Returns a segment list by its site identifier.getSegmentListsForAsset
(AssetType assetType, String assetId) Returns all segment lists for asset.updateSegmentList
(String segmentListId, SegmentList segmentList) Updates a given segment list.
-
Constructor Details
-
SegmentApi
public SegmentApi(com.mayam.wf.ws.client.internal.SegmentsRestClient sClient, com.mayam.wf.ws.client.internal.AssetSegmentsRestClient asClient)
-
-
Method Details
-
getSegmentList
Returns a segment list by its identifier.- Parameters:
segmentListId
- segment list identifier.- Returns:
- the segment list.
- Throws:
RemoteException
- if an error occurred on the server side.
-
getSegmentListBySiteId
Returns a segment list by its site identifier.- Parameters:
siteId
- site identifier.- Returns:
- segment list.
- Throws:
RemoteException
- if an error occurred on the server side.
-
deleteSegmentList
Deletes a segment list by its identifier.- Parameters:
segmentListId
- segment list identifier.- Throws:
RemoteException
- if an error occurred on the server side.