public interface ContentConversionServices
Modifier and Type | Method and Description |
---|---|
ContentConversionResult |
convert(ObjectStore objStore,
IndependentlyPersistableObject sourceObject,
int elementSequenceNumber,
CmContentConversionSettings outputSettings,
boolean allowAsync)
Converts the specified content element to the specified target content type.
|
ContentConversionResult |
convert(ObjectStore objStore,
java.io.InputStream inputContentStream,
java.lang.String inputContentType,
java.lang.String retrievalName,
CmContentConversionSettings outputSettings,
boolean allowAsync)
Converts the input content to the specified target content type.
|
ContentConversionResult |
convert(ObjectStore objStore,
java.lang.String inputContentFile,
java.lang.String inputContentType,
java.lang.String retrievalName,
CmContentConversionSettings outputSettings,
boolean allowAsync)
Converts the input content to athe specified target content type.
|
CmContentConversionSettings |
copySettings(CmContentConversionSettings src)
Creates a copy of the specified
CmContentConversionSettings instance. |
CmContentConversionSettings |
createDefaultSettings(ObjectStore objStore,
java.lang.String conversionSettingsClass)
Creates an instance initialized with the default property values of the specified conversion settings class.
|
boolean |
isConversionAvailable(ObjectStore objStore,
java.lang.String inputContentType,
java.lang.String conversionSettingsClass,
boolean allowAsync)
Checks whether the conversion from the specified input to the output content type is available or not.
|
ContentConversionResult |
resume(ObjectStore objStore,
byte[] deferralData,
CmContentConversionSettings outputSettings)
Checks and collects the result if the previously submitted conversion request has completed.
|
ContentConversionResult convert(ObjectStore objStore, IndependentlyPersistableObject sourceObject, int elementSequenceNumber, CmContentConversionSettings outputSettings, boolean allowAsync)
objStore
- Object store where source object resides.sourceObject
- Object whose content needs to be converted.elementSequenceNumber
- elementSequenceNumber of content element that needs to be converted.outputSettings
- CmContentConversionSettings instance for this conversion output content type.allowAsync
- Indicates if caller can handle asynchronous conversion.ContentConversionResult
The results of this conversion operation.ContentConversionResult convert(ObjectStore objStore, java.lang.String inputContentFile, java.lang.String inputContentType, java.lang.String retrievalName, CmContentConversionSettings outputSettings, boolean allowAsync)
objStore
- Object store where source content resides.inputContentFile
- File path to content to be converted.inputContentType
- Content type of content to be converted.retrievalName
- Retrieval name of source content element.outputSettings
- CmContentConversionSettings instance for this conversion output content type.allowAsync
- Indicates if caller can handle asynchronous conversion.ContentConversionResult
The results of this conversion operation.ContentConversionResult convert(ObjectStore objStore, java.io.InputStream inputContentStream, java.lang.String inputContentType, java.lang.String retrievalName, CmContentConversionSettings outputSettings, boolean allowAsync)
objStore
- Object store where source content resides.inputContentStream
- InputStream of content to be converted.inputContentType
- Content type of content to be converted.retrievalName
- Retrieval name of source content element.outputSettings
- CmContentConversionSettings instance for this conversion output content type.allowAsync
- Indicates if caller can handle asynchronous conversion.ContentConversionResult
The results of this conversion operation.boolean isConversionAvailable(ObjectStore objStore, java.lang.String inputContentType, java.lang.String conversionSettingsClass, boolean allowAsync)
inputContentType
- Content type of content to be converted.conversionSettingsClass
- CmContentConversionSettings
subclass for a needed conversion output content type.allowAsync
- Indicates if caller can handle asynchronous conversion.CmContentConversionSettings createDefaultSettings(ObjectStore objStore, java.lang.String conversionSettingsClass)
objStore
- Object store to use.conversionSettingsClass
- CmContentConversionSettings
subclass for a needed conversion output content type.CmContentConversionSettings copySettings(CmContentConversionSettings src)
CmContentConversionSettings
instance.src
- CmContentConversionSettings
instance to copy.CmContentConversionSettings
instance copied from src.ContentConversionResult resume(ObjectStore objStore, byte[] deferralData, CmContentConversionSettings outputSettings)
objStore
- Object store where source content resides.deferralData
- identifier for previously submitted conversion request.outputSettings
- CmContentConversionSettings instance identical to what was passed to the initial convert call.ContentConversionResult
The results of this conversion operation.© Copyright IBM Corporation 2006, 2015. All rights reserved.