Interface AMProcessor<M>
@ProviderType
public interface AMProcessor<M>
Generates a particular type of media.
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.
-
Method Summary
-
Method Details
-
cleanUp
Completely removes any generated media for the model.- Parameters:
model- the model for which all generated media is deleted- Throws:
com.liferay.portal.kernel.exception.PortalException- if an error occurred while calling any Liferay services
-
process
void process(com.liferay.portal.kernel.repository.model.FileVersion fileVersion, String configurationEntryUuid) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
process
Generates the media for the model. Some implementations might not generate any media for the model.- Parameters:
model- the model for which media is generated- Throws:
com.liferay.portal.kernel.exception.PortalException- if an error occurred while calling any Liferay services
-