Interface IMediaManager
- All Superinterfaces:
IDisposable, IEntity
Manages the medias.
-
Method Summary
Modifier and TypeMethodDescriptionintcreateMedia(MediaCreateRequest request) Creates a custom media.voiddeleteMedia(String mediaName) Deletes a custom media.Returns the instance.getMediaById(int mediaId) Gets information about the media.getMediaByName(String mediaName) Gets information about the media.getMediaCursor(int cursorId) Gets a media cursor open in the instance.Returns the media cursors open in the instance.Gets the table schema of the media.newMediaCursor(String[] columns, String sql) Opens a media cursor.tryGetMediaCursor(int cursorId) Gets a media cursor open in the instance or null if it doesn't exist.voidupdateMedia(String mediaName, MediaUpdateRequest request) Updates a custom media.Methods inherited from interface IDisposable
addDisposedListener, removeDisposedListenerMethods inherited from interface IEntity
getUserContext, setUserContext
-
Method Details
-
createMedia
int createMedia(MediaCreateRequest request) throws Exception, altitude.integrationServer.exceptions.ISException Creates a custom media.- Parameters:
request- Contains the fields that must be overwritten- Returns:
- Identifier of the created media.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
deleteMedia
-
getInstance
-
getMediaById
-
getMediaByName
-
getMediaCursor
IMediaCursor getMediaCursor(int cursorId) throws Exception, altitude.integrationServer.exceptions.ISException Gets a media cursor open in the instance.- Parameters:
cursorId- Identifier of the cursor.- Returns:
- The
IMediaCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getMediaCursors
IMediaCursor[] getMediaCursors() throws Exception, altitude.integrationServer.exceptions.ISExceptionReturns the media cursors open in the instance.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
getMediaTableSchema
TableSchema getMediaTableSchema() throws Exception, altitude.integrationServer.exceptions.ISExceptionGets the table schema of the media.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
newMediaCursor
IMediaCursor newMediaCursor(String[] columns, String sql) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Opens a media cursor.- Parameters:
columns- Columns to fetch.sql- SQL.- Returns:
- The
IMediaCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
tryGetMediaCursor
IMediaCursor tryGetMediaCursor(int cursorId) throws Exception, altitude.integrationServer.exceptions.ISException Gets a media cursor open in the instance or null if it doesn't exist.- Parameters:
cursorId- Identifier of the cursor.- Returns:
- The
IMediaCursorcursor. - Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
updateMedia
void updateMedia(String mediaName, MediaUpdateRequest request) throws Exception, altitude.integrationServer.exceptions.ISException Updates a custom media.- Parameters:
mediaName- Name of the media.request- Contains the fields to be updated.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-