@ProviderType
public interface AMImageConfigurationHelper
AMImageConfigurationEntry
. This interface is
the preferred mechanism to interact with image configuration entries.Modifier and Type | Method and Description |
---|---|
AMImageConfigurationEntry |
addAMImageConfigurationEntry(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.String uuid,
java.util.Map<java.lang.String,java.lang.String> properties)
Adds a new image configuration entry.
|
void |
deleteAMImageConfigurationEntry(long companyId,
java.lang.String uuid)
Deletes an existing and disabled image configuration entry.
|
void |
disableAMImageConfigurationEntry(long companyId,
java.lang.String uuid)
Disables an existing and enabled image configuration entry.
|
void |
enableAMImageConfigurationEntry(long companyId,
java.lang.String uuid)
Enables an existing and disabled image configuration entry.
|
void |
forceDeleteAMImageConfigurationEntry(long companyId,
java.lang.String uuid)
Deletes an existing image configuration entry, even if it is enabled.
|
java.util.Collection<AMImageConfigurationEntry> |
getAMImageConfigurationEntries(long companyId)
Returns a collection of the enabled image configuration entries for a
company.
|
java.util.Collection<AMImageConfigurationEntry> |
getAMImageConfigurationEntries(long companyId,
java.util.function.Predicate<? super AMImageConfigurationEntry> predicate)
Returns a collection of image configuration entries filtered by the given
predicate for a company.
|
java.util.Optional<AMImageConfigurationEntry> |
getAMImageConfigurationEntry(long companyId,
java.lang.String configurationEntryUUID)
Returns an optional image configuration entry for the given company and
image configuration entry UUID.
|
AMImageConfigurationEntry |
updateAMImageConfigurationEntry(long companyId,
java.lang.String oldUuid,
java.lang.String name,
java.lang.String description,
java.lang.String newUuid,
java.util.Map<java.lang.String,java.lang.String> properties)
Updates an existing image configuration entry.
|
AMImageConfigurationEntry addAMImageConfigurationEntry(long companyId, java.lang.String name, java.lang.String description, java.lang.String uuid, java.util.Map<java.lang.String,java.lang.String> properties) throws AMImageConfigurationException, java.io.IOException
companyId
- the primary key of the companyname
- the image configuration entry's unique namedescription
- the image configuration entry's descriptionuuid
- the image configuration entry's UUIDproperties
- a set of properties with additional information about
how the adaptive media image will be generatedAMImageConfigurationException
- if there was an issue with the
values of the new configuration entryjava.io.IOException
- if there was an issue when persisting the new image
configuration entry in the storevoid deleteAMImageConfigurationEntry(long companyId, java.lang.String uuid) throws AMImageConfigurationException.InvalidStateAMImageConfigurationException, java.io.IOException
companyId
- the primary key of the companyuuid
- the image configuration entry's UUIDAMImageConfigurationException.InvalidStateAMImageConfigurationException
- if the image
configuration entry to delete was not disabledjava.io.IOException
- if there was an issue when deleting the image
configuration entry from the storevoid disableAMImageConfigurationEntry(long companyId, java.lang.String uuid) throws java.io.IOException
companyId
- the primary key of the companyuuid
- the image configuration entry's UUIDjava.io.IOException
- if there was an issue when updating the image
configuration entry from the storevoid enableAMImageConfigurationEntry(long companyId, java.lang.String uuid) throws java.io.IOException
companyId
- the primary key of the companyuuid
- the image configuration entry's UUIDjava.io.IOException
- if there was an issue when updating the image
configuration entry from the storevoid forceDeleteAMImageConfigurationEntry(long companyId, java.lang.String uuid) throws java.io.IOException
companyId
- the primary key of the companyuuid
- the image configuration entry's UUIDjava.io.IOException
- if there was an issue when deleting the image
configuration entry from the storejava.util.Collection<AMImageConfigurationEntry> getAMImageConfigurationEntries(long companyId)
companyId
- the primary key of the companyjava.util.Collection<AMImageConfigurationEntry> getAMImageConfigurationEntries(long companyId, java.util.function.Predicate<? super AMImageConfigurationEntry> predicate)
companyId
- the primary key of the companypredicate
- the predicate used to filter the collectionjava.util.Optional<AMImageConfigurationEntry> getAMImageConfigurationEntry(long companyId, java.lang.String configurationEntryUUID)
companyId
- the primary key of the companyconfigurationEntryUUID
- the image configuration entry's UUIDAMImageConfigurationEntry updateAMImageConfigurationEntry(long companyId, java.lang.String oldUuid, java.lang.String name, java.lang.String description, java.lang.String newUuid, java.util.Map<java.lang.String,java.lang.String> properties) throws AMImageConfigurationException, java.io.IOException
companyId
- the primary key of the companyoldUuid
- the image configuration entry's UUID to updatename
- the new image configuration entry's namedescription
- the new image configuration entry's descriptionnewUuid
- the new image configuration entry's UUIDproperties
- the new set of properties with additional information
about how the adaptive media image will be generatedAMImageConfigurationException
- if there was an issue with the
values of the new configuration entryjava.io.IOException
- if there was an issue when persisting the new image
configuration entry in the store