@ProviderType
public interface AMProcessor<M>
The type parameter M specifies the model used by the processor
to generate the media. The type parameter T restricts the valid
AMAttribute set available.
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp(M model)
Completely removes any generated media for the model.
|
void |
process(com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
java.lang.String configurationEntryUuid) |
void |
process(M model)
Generates the media for the model.
|
void cleanUp(M model) throws com.liferay.portal.kernel.exception.PortalException
model - the model for which all generated media is deletedcom.liferay.portal.kernel.exception.PortalException - if an error occurred while calling any Liferay
servicesvoid process(com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
java.lang.String configurationEntryUuid)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionvoid process(M model) throws com.liferay.portal.kernel.exception.PortalException
model - the model for which media is generatedcom.liferay.portal.kernel.exception.PortalException - if an error occurred while calling any Liferay
services