Class SeriesServiceRemoteImpl
java.lang.Object
org.opencastproject.serviceregistry.api.RemoteBase
org.opencastproject.series.remote.SeriesServiceRemoteImpl
- All Implemented Interfaces:
org.opencastproject.series.api.SeriesService
@Path("/series")
public class SeriesServiceRemoteImpl
extends org.opencastproject.serviceregistry.api.RemoteBase
implements org.opencastproject.series.api.SeriesService
A proxy to a remote series service.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencastproject.serviceregistry.api.RemoteBase
org.opencastproject.serviceregistry.api.RemoteBase.HttpClientClosingInputStream -
Field Summary
Fields inherited from class org.opencastproject.serviceregistry.api.RemoteBase
client, elementsFromHttpResponse, remoteServiceManager, serviceTypeFields inherited from interface org.opencastproject.series.api.SeriesService
JOB_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteSeries(String seriesID) booleandeleteSeriesElement(String seriesID, String type) voiddeleteSeriesProperty(String seriesID, String propertyName) List<org.opencastproject.series.api.Series> getAllForAdministrativeRead(Date from, Optional<Date> to, int limit) org.opencastproject.metadata.dublincore.DublinCoreCatalogorg.opencastproject.security.api.AccessControlListgetSeriesAccessControl(String seriesID) javax.ws.rs.core.ResponsegetSeriesAccessControlListJson(String seriesID) intcom.entwinemedia.fn.data.Opt<byte[]> getSeriesElementData(String seriesID, String type) getSeriesElements(String seriesID) javax.ws.rs.core.ResponsegetSeriesJSON(String seriesID) getSeriesProperties(String seriesID) getSeriesProperty(String seriesID, String propertyName) voidsetRemoteServiceManager(org.opencastproject.serviceregistry.api.ServiceRegistry remoteServiceManager) Sets the remote service manager.voidsetTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient client) Sets the trusted http clientbooleanupdateAccessControl(String seriesID, org.opencastproject.security.api.AccessControlList accessControl) booleanupdateAccessControl(String seriesID, org.opencastproject.security.api.AccessControlList accessControl, boolean overrideEpisodeAcl) booleanupdateExtendedMetadata(String seriesId, String type, org.opencastproject.metadata.dublincore.DublinCoreCatalog dc) org.opencastproject.metadata.dublincore.DublinCoreCatalogupdateSeries(org.opencastproject.metadata.dublincore.DublinCoreCatalog dc) booleanupdateSeriesElement(String seriesID, String type, byte[] data) voidupdateSeriesProperty(String seriesID, String propertyName, String propertyValue) Methods inherited from class org.opencastproject.serviceregistry.api.RemoteBase
closeConnection, getResponse, getResponse, runRequest
-
Constructor Details
-
SeriesServiceRemoteImpl
public SeriesServiceRemoteImpl()
-
-
Method Details
-
setTrustedHttpClient
public void setTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient client) Sets the trusted http client- Overrides:
setTrustedHttpClientin classorg.opencastproject.serviceregistry.api.RemoteBase- Parameters:
client-
-
setRemoteServiceManager
public void setRemoteServiceManager(org.opencastproject.serviceregistry.api.ServiceRegistry remoteServiceManager) Sets the remote service manager.- Overrides:
setRemoteServiceManagerin classorg.opencastproject.serviceregistry.api.RemoteBase- Parameters:
remoteServiceManager-
-
updateSeries
public org.opencastproject.metadata.dublincore.DublinCoreCatalog updateSeries(org.opencastproject.metadata.dublincore.DublinCoreCatalog dc) throws org.opencastproject.series.api.SeriesException, org.opencastproject.security.api.UnauthorizedException - Specified by:
updateSeriesin interfaceorg.opencastproject.series.api.SeriesService- Throws:
org.opencastproject.series.api.SeriesExceptionorg.opencastproject.security.api.UnauthorizedException
-
updateAccessControl
public boolean updateAccessControl(String seriesID, org.opencastproject.security.api.AccessControlList accessControl) throws org.opencastproject.util.NotFoundException, org.opencastproject.series.api.SeriesException, org.opencastproject.security.api.UnauthorizedException - Specified by:
updateAccessControlin interfaceorg.opencastproject.series.api.SeriesService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.series.api.SeriesExceptionorg.opencastproject.security.api.UnauthorizedException
-
updateAccessControl
public boolean updateAccessControl(String seriesID, org.opencastproject.security.api.AccessControlList accessControl, boolean overrideEpisodeAcl) throws org.opencastproject.util.NotFoundException, org.opencastproject.series.api.SeriesException, org.opencastproject.security.api.UnauthorizedException - Specified by:
updateAccessControlin interfaceorg.opencastproject.series.api.SeriesService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.series.api.SeriesExceptionorg.opencastproject.security.api.UnauthorizedException
-
deleteSeries
public void deleteSeries(String seriesID) throws org.opencastproject.series.api.SeriesException, org.opencastproject.util.NotFoundException, org.opencastproject.security.api.UnauthorizedException - Specified by:
deleteSeriesin interfaceorg.opencastproject.series.api.SeriesService- Throws:
org.opencastproject.series.api.SeriesExceptionorg.opencastproject.util.NotFoundExceptionorg.opencastproject.security.api.UnauthorizedException
-
getSeriesJSON
@GET @Produces("application/json") @Path("{seriesID:.+}.json") public javax.ws.rs.core.Response getSeriesJSON(@PathParam("seriesID") String seriesID) throws org.opencastproject.security.api.UnauthorizedException - Throws:
org.opencastproject.security.api.UnauthorizedException
-
getSeriesAccessControlListJson
@GET @Produces("application/json") @Path("/{seriesID:.+}/acl.json") public javax.ws.rs.core.Response getSeriesAccessControlListJson(@PathParam("seriesID") String seriesID) -
getSeries
public org.opencastproject.metadata.dublincore.DublinCoreCatalog getSeries(String seriesID) throws org.opencastproject.series.api.SeriesException, org.opencastproject.util.NotFoundException, org.opencastproject.security.api.UnauthorizedException - Specified by:
getSeriesin interfaceorg.opencastproject.series.api.SeriesService- Throws:
org.opencastproject.series.api.SeriesExceptionorg.opencastproject.util.NotFoundExceptionorg.opencastproject.security.api.UnauthorizedException
-
getAllForAdministrativeRead
public List<org.opencastproject.series.api.Series> getAllForAdministrativeRead(Date from, Optional<Date> to, int limit) throws org.opencastproject.series.api.SeriesException, org.opencastproject.security.api.UnauthorizedException - Specified by:
getAllForAdministrativeReadin interfaceorg.opencastproject.series.api.SeriesService- Throws:
org.opencastproject.series.api.SeriesExceptionorg.opencastproject.security.api.UnauthorizedException
-
getSeriesAccessControl
public org.opencastproject.security.api.AccessControlList getSeriesAccessControl(String seriesID) throws org.opencastproject.util.NotFoundException, org.opencastproject.series.api.SeriesException - Specified by:
getSeriesAccessControlin interfaceorg.opencastproject.series.api.SeriesService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.series.api.SeriesException
-
getSeriesCount
public int getSeriesCount() throws org.opencastproject.series.api.SeriesException- Specified by:
getSeriesCountin interfaceorg.opencastproject.series.api.SeriesService- Throws:
org.opencastproject.series.api.SeriesException
-
getSeriesProperties
public Map<String,String> getSeriesProperties(String seriesID) throws org.opencastproject.series.api.SeriesException, org.opencastproject.util.NotFoundException, org.opencastproject.security.api.UnauthorizedException - Specified by:
getSeriesPropertiesin interfaceorg.opencastproject.series.api.SeriesService- Throws:
org.opencastproject.series.api.SeriesExceptionorg.opencastproject.util.NotFoundExceptionorg.opencastproject.security.api.UnauthorizedException
-
getSeriesProperty
public String getSeriesProperty(String seriesID, String propertyName) throws org.opencastproject.series.api.SeriesException, org.opencastproject.util.NotFoundException, org.opencastproject.security.api.UnauthorizedException - Specified by:
getSeriesPropertyin interfaceorg.opencastproject.series.api.SeriesService- Throws:
org.opencastproject.series.api.SeriesExceptionorg.opencastproject.util.NotFoundExceptionorg.opencastproject.security.api.UnauthorizedException
-
updateSeriesProperty
public void updateSeriesProperty(String seriesID, String propertyName, String propertyValue) throws org.opencastproject.series.api.SeriesException, org.opencastproject.util.NotFoundException, org.opencastproject.security.api.UnauthorizedException - Specified by:
updateSeriesPropertyin interfaceorg.opencastproject.series.api.SeriesService- Throws:
org.opencastproject.series.api.SeriesExceptionorg.opencastproject.util.NotFoundExceptionorg.opencastproject.security.api.UnauthorizedException
-
deleteSeriesProperty
public void deleteSeriesProperty(String seriesID, String propertyName) throws org.opencastproject.series.api.SeriesException, org.opencastproject.util.NotFoundException, org.opencastproject.security.api.UnauthorizedException - Specified by:
deleteSeriesPropertyin interfaceorg.opencastproject.series.api.SeriesService- Throws:
org.opencastproject.series.api.SeriesExceptionorg.opencastproject.util.NotFoundExceptionorg.opencastproject.security.api.UnauthorizedException
-
updateExtendedMetadata
public boolean updateExtendedMetadata(String seriesId, String type, org.opencastproject.metadata.dublincore.DublinCoreCatalog dc) throws org.opencastproject.series.api.SeriesException - Specified by:
updateExtendedMetadatain interfaceorg.opencastproject.series.api.SeriesService- Throws:
org.opencastproject.series.api.SeriesException
-
getSeriesElements
public com.entwinemedia.fn.data.Opt<Map<String,byte[]>> getSeriesElements(String seriesID) throws org.opencastproject.series.api.SeriesException - Specified by:
getSeriesElementsin interfaceorg.opencastproject.series.api.SeriesService- Throws:
org.opencastproject.series.api.SeriesException
-
getSeriesElementData
public com.entwinemedia.fn.data.Opt<byte[]> getSeriesElementData(String seriesID, String type) throws org.opencastproject.series.api.SeriesException - Specified by:
getSeriesElementDatain interfaceorg.opencastproject.series.api.SeriesService- Throws:
org.opencastproject.series.api.SeriesException
-
updateSeriesElement
public boolean updateSeriesElement(String seriesID, String type, byte[] data) throws org.opencastproject.series.api.SeriesException - Specified by:
updateSeriesElementin interfaceorg.opencastproject.series.api.SeriesService- Throws:
org.opencastproject.series.api.SeriesException
-
deleteSeriesElement
public boolean deleteSeriesElement(String seriesID, String type) throws org.opencastproject.series.api.SeriesException - Specified by:
deleteSeriesElementin interfaceorg.opencastproject.series.api.SeriesService- Throws:
org.opencastproject.series.api.SeriesException
-