public abstract class TransformationManager extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
TransformationManager()
Constructor protected from erroneous application access.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addTransformationListener(TransformationListener listener)
Adds a
TransformationListener to receive callbacks from the
TransformationManager. |
abstract Transformation[] |
getDefaultTransformations()
Returns the currently-set default transformation.
|
static TransformationManager |
getInstance()
Gets an instance of the
TransformationManager. |
abstract Transformation[] |
getSupportedTransformations()
Gets all of the transformation permutations the Host device supports.
|
abstract Transformation[] |
getTransformations(ContentItem item)
Returns the applied transformations for the content item.
|
abstract void |
removeTransformationListener(TransformationListener listener)
Removes the specified TransformationListener.
|
abstract Transformation[] |
setDefaultTransformations(Transformation[] transformations)
Sets the default transformations.
|
abstract void |
setTransformations(ContentItem[] items)
Applies the default transformations for a set of content items.
|
abstract void |
setTransformations(ContentItem[] items,
Transformation[] transformations)
Applies specific transformations for a set of content items.
|
abstract void |
setTransformations(Transformation[] transformations)
Applies the transformations to all existing local content items that
represent network operator content.
|
protected TransformationManager()
public static TransformationManager getInstance()
TransformationManager.SecurityException - if the calling application has not been granted
HomeNetPermission("contentmanagement").public abstract void addTransformationListener(TransformationListener listener)
TransformationListener to receive callbacks from the
TransformationManager. The TransformationListener
will be notified whenever transformations are applied for the
ContentItem. Subsequent calls to register the same
listener will be ignored.listener - The listener that will receive the callbacksIllegalArgumentException - if the listener parameter is null.public abstract void removeTransformationListener(TransformationListener listener)
listener - The listener to removepublic abstract Transformation[] getSupportedTransformations()
public abstract Transformation[] setDefaultTransformations(Transformation[] transformations)
TransformationManager. A call to setDefaultTransformation
over-rides any previously-set default transformations and passing an
empty array disables any previously-set default transformations.
See [OC-BUNDLE] for additional mapping of this method.transformations - The new default transformations.IllegalArgumentException - if the transformations parameter is null.public abstract Transformation[] getDefaultTransformations()
public abstract Transformation[] getTransformations(ContentItem item)
item - The content item.IllegalArgumentException - if the item parameter is null.public abstract void setTransformations(Transformation[] transformations)
transformations - The array of transformations to be applied.IllegalArgumentException - if the transformations parameter is null.public abstract void setTransformations(ContentItem[] items)
ContentItem in the items array parameter. If a content item
in the array parameter is not local or does not represent MSO local
content it is skipped without change or notification. A call to this
method will remove any existing transformations before setting the
transformations.
See [OC-BUNDLE] for additional mapping of this method.items - The array of content items the transformation metadata
will be configured in.IllegalArgumentException - if the parameter is null or empty.public abstract void setTransformations(ContentItem[] items, Transformation[] transformations)
ContentItem in the items array parameter. If a content item
in the array parameter is not local or does not represent MSO local
content it is skipped without change or notification. A call to this
method will remove any existing transformations before setting the
transformations.
See [OC-BUNDLE] for additional mapping of this method.items - The array of content items the transformation metadata will
be configured in.transformations - The array of transformations to apply.IllegalArgumentException - if items parameter is null or empty or
the transformations parameter is null.Copyright © 2013 CableLabs. All rights reserved.