Interface IMetadataService
Summary description for IMetadataService.
Namespace: ImageVault.Core.Common.Services
Assembly: ImageVault.Core.dll
Syntax
public interface IMetadataService
Methods
AnalyseAndSaveMetadata(DbMediaItem, MediaContent)
Analyses the supplied content and saves any found metadata to the system
Declaration
[Obsolete("Use AnalyzeAndSaveMetadata(DbMediaVersion, MediaContent) instead")]
void AnalyseAndSaveMetadata(DbMediaItem mediaItem, MediaContent content)
Parameters
Type | Name | Description |
---|---|---|
DbMediaItem | mediaItem | The DbMediaItem that is analysed |
MediaContent | content | The MediaContent to analyse |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | If mediaItem or if content. |
AnalyzeAndSaveMetadata(DbMediaVersion, MediaContent)
Analyses the supplied content and saves any found metadata to the system
Declaration
void AnalyzeAndSaveMetadata(DbMediaVersion mediaVersion, MediaContent content)
Parameters
Type | Name | Description |
---|---|---|
DbMediaVersion | mediaVersion | The DbMediaVersion that is analyzed |
MediaContent | content | The MediaContent to analyze |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | If mediaItem or if content. |
EnsureMediaInformationInOriginalMediaContentReference(DbMediaContentReference, PublishInfo)
Declaration
[Obsolete("Use void EnsureMediaInformationInOriginalMediaContentReference(DbMediaContentReference, CorePublishInfo) instead")]
void EnsureMediaInformationInOriginalMediaContentReference(DbMediaContentReference originalReference, PublishInfo publishInfo)
Parameters
Type | Name | Description |
---|---|---|
DbMediaContentReference | originalReference | |
PublishInfo | publishInfo |
EnsureMediaInformationInOriginalMediaContentReference(DbMediaContentReference, PublishInfo, Boolean)
Makes sure that the supplied DbMediaContentReference has a populated MediaInformation
Declaration
[Obsolete("Use void EnsureMediaInformationInOriginalMediaContentReference(DbMediaContentReference originalReference, PublishInfo publishInfo) instead")]
void EnsureMediaInformationInOriginalMediaContentReference(DbMediaContentReference originalReference, PublishInfo publishInfo, bool ignorePublishInfo)
Parameters
Type | Name | Description |
---|---|---|
DbMediaContentReference | originalReference | The DbMediaContentReference to the original media |
PublishInfo | publishInfo | |
System.Boolean | ignorePublishInfo |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
System.ArgumentException | If the supplied reference is not referring to the original format |
System.ApplicationException | If an error occurred in creating the MediaInformation |
EnsureMediaInformationInOriginalMediaContentReference(DbMediaContentReference, CorePublishInfo)
Declaration
void EnsureMediaInformationInOriginalMediaContentReference(DbMediaContentReference originalReference, CorePublishInfo publishInfo)
Parameters
Type | Name | Description |
---|---|---|
DbMediaContentReference | originalReference | |
CorePublishInfo | publishInfo |
EnsureMediaInformationInOriginalMediaContentReference(DbMediaContentReference, String)
Makes sure that the supplied DbMediaContentReference has a populated MediaInformation
Declaration
[Obsolete("Use void EnsureMediaInformationInOriginalMediaContentReference(DbMediaContentReference originalReference, PublishInfo publishInfo) instead")]
void EnsureMediaInformationInOriginalMediaContentReference(DbMediaContentReference originalReference, string publishIdentifier)
Parameters
Type | Name | Description |
---|---|---|
DbMediaContentReference | originalReference | The DbMediaContentReference to the original media |
System.String | publishIdentifier | The publishIdentifier that is used to create the media information. Can be null if internal media information is requested |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
System.ArgumentException | If the supplied reference is not refering to the original format |
System.ApplicationException | If an error occured in creating the MediaInformation |
GetMetadata(Int32, Int32)
Get the metadata
Declaration
DbMetadata GetMetadata(int versionId, int metadataDefinitionId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | versionId | Version id of the item to get metadata for |
System.Int32 | metadataDefinitionId | The metadata definition id of th metadata to get |
Returns
Type | Description |
---|---|
DbMetadata |
SaveMetadata(IList<DbMetadata>)
Saves the supplied list of metadata to the database
Declaration
void SaveMetadata(IList<DbMetadata> metadata)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<DbMetadata> | metadata | The System.Collections.Generic.IList<T> to save |
Exceptions
Type | Condition |
---|---|
VaultDeniedException | If user don't at least have Contribute to the vaults of the media items |
MandatoryMetadataException | If an updated mediaItem is missing mandatory metadata. |
ReadonlyMetadataException | If an readonly metadata is passed to the method |
NonMultilingualMetadataException | If a language translated metadata is marked as not multilingual |
MalformedMetadataException | If a metadata has an illegal value base on it's MetadataType |