|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MediaRepository
Representation of MediaRepository.
| Method Summary | |
|---|---|
int |
copyMediaItem(MediaItemVersion mediaItem)
Deprecated. use MediaRepositoryManagementService.copyMediaItem(MediaItem)
instead. |
int |
createContent()
Deprecated. Use MediaRepositoryManagementService.createMediaItem(Website, String)
instead. |
void |
deleteMediaFileFromDisk(java.lang.String filename,
Website website)
Deletes the given media file from disk. |
boolean |
deleteMediaItem(MediaItemVersion mediaItem)
Deprecated. Use MediaRepositoryManagementService.deleteMediaItem(MediaItem)
instead. |
MediaContentType[] |
getAllContentTypes()
Returns all installed (active or non-active) media content types. |
WorkflowModelState[] |
getAllPublicStates()
Returns all workflow model states defined to be public. |
java.lang.String |
getAndCreateMediaUploadDirectory(java.lang.String filename,
Website website)
Returns the target media upload directory for the given filename. |
MediaContentType[] |
getAvailableContentTypes()
Returns all available media content types. |
java.lang.String |
getCentralMode()
Returns the id of the centralmode object of mediabank content. |
MediaContentType |
getContentType(int contentType)
Returns the media content type for the given content type id. |
MediaContentType |
getContentType(java.lang.String contentType)
Returns the media content type for the given content type string identifier. |
int |
getContentTypeId(java.lang.String contentType)
Deprecated. Use getContentType(String) to obtain an instance of MediaContentType,
and call MediaContentType.getId() on that instance. |
javax.sql.DataSource |
getDataSource()
Returns datasource of media repository. |
java.lang.String |
getDataSourceName()
Returns data source name of media repository. |
MediaTerm |
getMediaTerm(java.lang.String name)
Returns the MediaTerm object with the given name. |
MediaTerm |
getMediaTerm(java.lang.String name,
Website website)
Returns the MediaTerm object with the given name from the specified Website. |
MediaTermClassification |
getMediaTermClassification(java.lang.String name)
Returns the MediaTermClassification object with the given name. |
MediaTermClassification[] |
getMediaTermClassifications()
Returns all MediaTermClassification objects. |
MediaTerm[] |
getMediaTerms()
Returns all MediaTerm objects which can be accessed from the active Website. |
MediaTerm[] |
getMediaTerms(MediaTermClassification classification)
Returns all MediaTerm objects which can be accessed from the active Website which have
the given classification assigned. |
MediaTerm[] |
getMediaTerms(MediaTermClassification classification,
java.lang.String prefix)
Returns all MediaTerm objects which can be accessed from the active Website which have
the given classification assigned and with names starting with the given prefix. |
MediaTerm[] |
getMediaTerms(java.lang.String prefix)
Returns all MediaTerm objects which can be accessed from the active Website with names
starting with the given prefix. |
MediaMultimediaFormat[] |
getMultimediaFormats()
Returns the list of all available multimedia formats which can be used in combination with the multimedia media item type. |
java.lang.String |
getObjectLibraryCentralMode()
Returns id of centralmode object for object library. |
java.lang.String[] |
getPublicStates()
Deprecated. Use getAllPublicStates() instead. |
java.lang.String |
getUrl(java.lang.String fileName,
Website website)
Returns the URL for a media repository related resource. |
java.lang.String |
getUrl(java.lang.String fileName,
Website website,
javax.servlet.http.HttpServletRequest req)
Deprecated. Use getUrl(String, Website) instead. |
WorkflowModel |
getWorkflowModel()
Returns the workflow model that is associated with the media repository as a whole. |
WorkflowModel |
getWorkflowModel(MediaContentType contentType)
Returns the workflow model for a particular content type within this media repository. |
WorkflowModel |
getWorkflowModel(java.lang.String contentType)
Deprecated. Use getWorkflowModel(MediaContentType) instead. |
void |
updateMediaItem()
Updates a media item. |
| Methods inherited from interface nl.gx.webmanager.wrapper.Wrapper |
|---|
getId, getUUID, setId, setUUID |
| Method Detail |
|---|
java.lang.String getDataSourceName()
javax.sql.DataSource getDataSource()
@Deprecated java.lang.String[] getPublicStates()
getAllPublicStates() instead.
WorkflowModelState[] getAllPublicStates()
@Deprecated
java.lang.String getUrl(java.lang.String fileName,
Website website,
javax.servlet.http.HttpServletRequest req)
getUrl(String, Website) instead.
fileName - The name of the file to setup an URL for.website - The URL should be setup with this website's specific URL settings.req - The request object - unused.
java.lang.String getUrl(java.lang.String fileName,
Website website)
fileName - The name of the file to setup an URL for.website - The URL should be setup with this website's specific URL settings.
java.lang.String getObjectLibraryCentralMode()
java.lang.String getCentralMode()
@Deprecated int createContent()
MediaRepositoryManagementService.createMediaItem(Website, String)
instead.
@Deprecated int copyMediaItem(MediaItemVersion mediaItem)
MediaRepositoryManagementService.copyMediaItem(MediaItem)
instead.
mediaItem - The media item to copy.
void updateMediaItem()
MediaContentType[] getAllContentTypes()
@Deprecated int getContentTypeId(java.lang.String contentType)
getContentType(String) to obtain an instance of MediaContentType,
and call MediaContentType.getId() on that instance.
contentType - String identifier of the content type
MediaContentType getContentType(int contentType)
contentType - Id of the content type
MediaContentType getContentType(java.lang.String contentType)
contentType - String identifier of the content type
@Deprecated boolean deleteMediaItem(MediaItemVersion mediaItem)
MediaRepositoryManagementService.deleteMediaItem(MediaItem)
instead.
true if the media item, retrieved from the request, was successfully deleted.
mediaItem - The media item version to delete.
MediaMultimediaFormat[] getMultimediaFormats()
WorkflowModel getWorkflowModel()
@Deprecated WorkflowModel getWorkflowModel(java.lang.String contentType)
getWorkflowModel(MediaContentType) instead.
contentType - String identifier of the media item type for which the Workflow model should be
retrieved
WorkflowModel getWorkflowModel(MediaContentType contentType)
contentType - String identifier of the media item type for which the Workflow model should be
retrieved
java.lang.String getAndCreateMediaUploadDirectory(java.lang.String filename,
Website website)
filename - Filename for which the upload media directory should be returnedwebsite - Website for which the upload media directory should be returned
void deleteMediaFileFromDisk(java.lang.String filename,
Website website)
filename - The filename of the media file in the upload_mm directory that should be removed. Note
that this should only be the filename, it should not include the path.website - Website of the media item that is assosiated with this media fileMediaContentType[] getAvailableContentTypes()
MediaTerm[] getMediaTerms()
MediaTerm objects which can be accessed from the active Website. Returns an
empty array if no objects are found.
MediaTerm objects which can be accessed from the active Website. Returns an
empty array if no objects are found.MediaTerm[] getMediaTerms(java.lang.String prefix)
MediaTerm objects which can be accessed from the active Website with names
starting with the given prefix. Returns an empty array if no objects are found.
prefix - String with which returned MediaTerm objects start.
MediaTerm objects which can be accessed from the active Website with names
starting with the given prefix. Returns an empty array if no objects are found.MediaTerm getMediaTerm(java.lang.String name)
MediaTerm object with the given name. Return null if no MediaTerm object
with the given name can be accessed from the active Website.
name - String which is used to match with.
MediaTerm object with the given name. Return null if no MediaTerm object
with the given name can be accessed from the active Website.
MediaTerm getMediaTerm(java.lang.String name,
Website website)
MediaTerm object with the given name from the specified Website. Returns
null if no MediaTerm object with the given name is available on the specified Website.
name - String which is used to match with.website - The website to retrieve the media term for
MediaTerm object with the given name. Return null if no MediaTerm object
with the given name can be accessed from the active Website.MediaTerm[] getMediaTerms(MediaTermClassification classification)
MediaTerm objects which can be accessed from the active Website which have
the given classification assigned. Returns an empty array if no objects are found.
classification - MediaTermClassification which is assigned to the returned
MediaTerm objects.
MediaTerm objects which can be accessed from the active Website which have
the given classification assigned. Returns an empty array if no objects are found.
MediaTerm[] getMediaTerms(MediaTermClassification classification,
java.lang.String prefix)
MediaTerm objects which can be accessed from the active Website which have
the given classification assigned and with names starting with the given prefix. Returns an empty array
if no objects are found.
classification - MediaTermClassification which is assigned to the returned
MediaTerm objects.prefix - String with which returned MediaTerm objects start.
MediaTerm objects which can be accessed from the active Website which have
the given classification assigned and with names starting with the given prefix. Returns an
empty array if no objects are found.MediaTermClassification getMediaTermClassification(java.lang.String name)
MediaTermClassification object with the given name. Return null if no
MediaTermClassification object exists with the given name.
name - String which is used to match with.
MediaTermClassification object with the given name. Return null if no
MediaTermClassification object exists with the given name.MediaTermClassification[] getMediaTermClassifications()
MediaTermClassification objects. Returns an empty array if no objects exist.
MediaTermClassification objects. Returns an empty array if no objects exist.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||