|
Field Summary | ||
protected TransformerConfig |
transformerConfig |
Constructor Summary | ||
ContentTransformerHelper() |
Method Summary | ||
protected void |
deprecatedSetter(String sourceMimetype, String targetMimetype, String suffixAndValue) Called by deprecated property setter methods that should no longer be called by Spring configuration as the values are now set using global properties. |
|
boolean |
equals(Object obj) | |
getBeanName() Returns the Spring bean name. |
||
getComments(boolean available) Overridden to supply a comment or String of commented out transformation properties that specify any (hard coded or implied) supported transformations. |
||
protected String |
getCommentsOnlySupports(List<String> sourceMimetypes, List<String> targetMimetypes, boolean available) Helper method for getComments(boolean) to create a line that indicates which source and target mimetypes it supports. |
|
protected String |
getExtensionOrAny(String mimetype) | |
protected String |
getMimetype(ContentAccessor content) Convenience to fetch and check the mimetype for the given content |
|
protected MimetypeService |
getMimetypeService() | |
getName() Returns transformer name. |
||
static String |
getSimpleName(ContentTransformer transformer) Returns the simple form of the transformer name, which has had the normal "transformer." prefix to the Spring bean name removed. |
|
int |
hashCode() | |
boolean |
isExplicitTransformation(String sourceMimetype, String targetMimetype, TransformationOptions options) Deprecated. Should now use priority and unsupported transformer properties. |
|
boolean |
isSupportedTransformation(String sourceMimetype, String targetMimetype, TransformationOptions options) | |
protected String |
onlySupports(String sourceMimetype, String targetMimetype, boolean available) Helper method for getComments(boolean) to create a line that indicates which source and target mimetypes it supports. |
|
void |
register() THIS IS A CUSTOM SPRING INIT METHOD |
|
void |
setBeanName(String beanName) Sets the Spring bean name. |
|
void |
setExplicitTransformations(List<org.alfresco.repo.content.transform.ExplictTransformationDetails> explicitTransformations) Deprecated. supported transformations are now set with global properties rather than spring configuration. |
|
void |
setMimetypeService(MimetypeService mimetypeService) Helper setter of the mimetype service. |
|
void |
setSupportedTransformations(List<org.alfresco.repo.content.transform.SupportedTransformation> supportedTransformations) Deprecated. supported transformations are now set with global properties rather than spring configuration. |
|
void |
setTransformerConfig(TransformerConfig transformerConfig) | |
void |
setUnsupportedTransformations(List<org.alfresco.repo.content.transform.SupportedTransformation> unsupportedTransformations) Deprecated. supported transformations are now set with global properties rather than spring configuration. |
|
toString() |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
|