|
This class maintains the limits and provides methods that combine limits: a) for the transformer as a whole b) for specific combinations if source and target mimetypes c) for the TransformationOptions provided for a specific transform.
Field Summary | ||
protected TransformerDebug |
transformerDebug For debug |
Fields inherited from class org.alfresco.repo.content.transform.ContentTransformerHelper |
transformerConfig |
Constructor Summary | ||
AbstractContentTransformerLimits() |
Method Summary | ||
protected TransformationOptionLimits |
getLimits() Deprecated. use getLimits(String, String, TransformationOptions) which allows the limits to be selected based on mimetype and use. |
|
protected TransformationOptionLimits |
getLimits(ContentReader reader, ContentWriter writer, TransformationOptions options) Returns max and limit values for time, size and pages for a specified source and target mimetypes, combined with this Transformer's general limits and optionally the supplied transformation option's limits. |
|
protected TransformationOptionLimits |
getLimits(String sourceMimetype, String targetMimetype, TransformationOptions options) Returns max and limit values for time, size and pages for a specified source and target mimetypes, combined with this Transformer's general limits and optionally the supplied transformation option's limits. |
|
protected int |
getMaxPages() | |
protected long |
getMaxSourceSizeKBytes() Deprecated. use getMaxSourceSizeKBytes() which allows the limits to be selected based on mimetype and use. |
|
long |
getMaxSourceSizeKBytes(String sourceMimetype, String targetMimetype, TransformationOptions options) Returns the maximum source size (in KBytes) allowed given the supplied values. |
|
protected int |
getPageLimit() | |
protected long |
getReadLimitKBytes() Deprecated. use getReadLimitKBytes() which allows the limits to be selected based on mimetype and use. |
|
protected long |
getReadLimitTimeMs() Deprecated. use getReadLimitTimeMs() which allows the limits to be selected based on mimetype and use. |
|
protected long |
getTimeoutMs() | |
protected boolean |
isPageLimitSupported(String sourceMimetype, String targetMimetype, TransformationOptions options) Indicates if 'page' limits are supported. |
|
boolean |
isTransformable(String sourceMimetype, long sourceSize, String targetMimetype, TransformationOptions options) Indicates whether the provided source mimetype can be transformed into the target mimetype with the options specified by this content transformer. |
|
boolean |
isTransformable(String sourceMimetype, String targetMimetype, TransformationOptions options) | |
boolean |
isTransformableMimetype(String sourceMimetype, String targetMimetype, TransformationOptions options) Indicates if this transformer is able to transform the given source mimetype to the target mimetype. |
|
boolean |
isTransformableSize(String sourceMimetype, long sourceSize, String targetMimetype, TransformationOptions options) Indicates if this transformer is able to transform the given sourceSize. |
|
void |
setLimits(TransformationOptionLimits limits) Deprecated. transformation limits are now set with global properties rather than spring configuration. |
|
void |
setMaxPages(int maxPages) Deprecated. transformation limits are now set with global properties rather than spring configuration. |
|
void |
setMaxSourceSizeKBytes(long maxSourceSizeKBytes) Deprecated. transformation limits are now set with global properties rather than spring configuration. |
|
void |
setMimetypeLimits(Map<String,Map<String,TransformationOptionLimits>> mimetypeLimits) Deprecated. transformation limits are now set with global properties rather than spring configuration. |
|
void |
setPageLimit(int pageLimit) Deprecated. transformation limits are now set with global properties rather than spring configuration. |
|
void |
setPageLimitsSupported(boolean pageLimitsSupported) Indicates if 'page' limits are supported. |
|
protected void |
setReaderLimits(ContentReader reader, ContentWriter writer, TransformationOptions options) Pass on any limits to the reader. |
|
void |
setReadLimitKBytes(long readLimitKBytes) Deprecated. transformation limits are now set with global properties rather than spring configuration. |
|
void |
setReadLimitTimeMs(long readLimitTimeMs) Deprecated. transformation limits are now set with global properties rather than spring configuration. |
|
void |
setTimeoutMs(long timeoutMs) Deprecated. transformation limits are now set with global properties rather than spring configuration. |
|
void |
setTransformerDebug(TransformerDebug transformerDebug) Helper setter of the transformer debug. |
Methods inherited from class org.alfresco.repo.content.transform.ContentTransformerHelper |
deprecatedSetter, equals, getBeanName, getComments, getCommentsOnlySupports, getExtensionOrAny, getMimetype, getMimetypeService, getName, getSimpleName, hashCode, isExplicitTransformation, isSupportedTransformation, onlySupports, register, setBeanName, setExplicitTransformations, setMimetypeService, setSupportedTransformations, setTransformerConfig, setUnsupportedTransformations, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.alfresco.repo.content.transform.ContentTransformer |
getComments, getName, getTransformationTime, getTransformationTime, isExplicitTransformation, transform, transform, transform |
Implementation calls the deprecated overloaded method without the sourceSize parameter and then isTransformableSize(String, long, String, TransformationOptions).
|