|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.content.transform.ContentTransformerHelper
public class ContentTransformerHelper
A class providing basic functionality shared by both ContentTransformers and ContentTransformerWorker
s.
| Constructor Summary | |
|---|---|
ContentTransformerHelper()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
getMimetype(org.alfresco.service.cmr.repository.ContentAccessor content)
Convenience to fetch and check the mimetype for the given content |
protected org.alfresco.service.cmr.repository.MimetypeService |
getMimetypeService()
|
boolean |
isExplicitTransformation(java.lang.String sourceMimetype,
java.lang.String targetMimetype,
TransformationOptions options)
Default implementation, override if need to extend logic |
void |
setExplicitTransformations(java.util.List explicitTransformations)
|
void |
setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
Helper setter of the mimetype service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentTransformerHelper()
| Method Detail |
|---|
public void setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
mimetypeService - protected org.alfresco.service.cmr.repository.MimetypeService getMimetypeService()
public void setExplicitTransformations(java.util.List explicitTransformations)
protected java.lang.String getMimetype(org.alfresco.service.cmr.repository.ContentAccessor content)
content - the reader/writer for the content
org.alfresco.error.AlfrescoRuntimeException - if the content doesn't have a mimetype
public boolean isExplicitTransformation(java.lang.String sourceMimetype,
java.lang.String targetMimetype,
TransformationOptions options)
ContentTransformer.isExplicitTransformation(java.lang.String,
java.lang.String, org.alfresco.service.cmr.repository.TransformationOptions)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||