|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.content.transform.AbstractContentTransformer2
org.alfresco.repo.content.transform.MediaWikiContentTransformer
public class MediaWikiContentTransformer
MediaWiki content transformer. Converts mediawiki markup into HTML.
http://matheclipse.org/en/Java_Wikipedia_API| Constructor Summary | |
|---|---|
MediaWikiContentTransformer()
|
|
| Method Summary | |
|---|---|
boolean |
isTransformable(java.lang.String sourceMimetype,
java.lang.String targetMimetype,
TransformationOptions options)
Only transform from mediawiki to html |
void |
setFileFolderService(FileFolderService fileFolderService)
Sets the file folder service |
void |
setNodeService(NodeService nodeService)
Sets the node service |
void |
transformInternal(ContentReader reader,
ContentWriter writer,
TransformationOptions options)
Method to be implemented by subclasses wishing to make use of the common infrastructural code provided by this class. |
| Methods inherited from class org.alfresco.repo.content.transform.AbstractContentTransformer2 |
|---|
checkTransformable, getMimetype, getMimetypeService, getTransformationTime, isExplicitTransformation, recordTime, register, setExplicitTransformations, setMimetypeService, setRegistry, toString, transform, transform, transform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MediaWikiContentTransformer()
| Method Detail |
|---|
public void setFileFolderService(FileFolderService fileFolderService)
fileFolderService - the file folder servicepublic void setNodeService(NodeService nodeService)
nodeService - the node service
public boolean isTransformable(java.lang.String sourceMimetype,
java.lang.String targetMimetype,
TransformationOptions options)
sourceMimetype - the source mimetypeoptions - the transformation options
ContentTransformer.isTransformable(java.lang.String, java.lang.String, org.alfresco.service.cmr.repository.TransformationOptions)
public void transformInternal(ContentReader reader,
ContentWriter writer,
TransformationOptions options)
throws java.lang.Exception
AbstractContentTransformer2
transformInternal in class AbstractContentTransformer2reader - the source of the content to transformwriter - the target to which to write the transformed contentoptions - a map of options to use when performing the transformation. The map
will never be null.
java.lang.Exception - exceptions will be handled by this class - subclasses can throw anythingAbstractContentTransformer2.transformInternal(org.alfresco.service.cmr.repository.ContentReader, org.alfresco.service.cmr.repository.ContentWriter, org.alfresco.service.cmr.repository.TransformationOptions)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||