com.atlassian.studio.confluence.transformer
Class AbstractAppLinkTransformer

java.lang.Object
  extended by com.atlassian.studio.confluence.transformer.AbstractAppLinkTransformer
All Implemented Interfaces:
Transformer
Direct Known Subclasses:
BambooAppLinkTransformer, FecruAppLinkTransformer, JiraAppLinkTransformer

public abstract class AbstractAppLinkTransformer
extends Object
implements Transformer


Nested Class Summary
static interface AbstractAppLinkTransformer.LinkSupplier
           
 
Constructor Summary
AbstractAppLinkTransformer(XmlEventReaderFactory xmlEventReaderFactory, XmlOutputFactory xmlFragmentOutputFactory, AbstractAppLinkTransformer.LinkSupplier remoteInstanceSupplier, com.atlassian.event.api.EventPublisher eventPublisher)
           
AbstractAppLinkTransformer(XmlEventReaderFactory xmlEventReaderFactory, XmlOutputFactory xmlFragmentOutputFactory, com.atlassian.applinks.api.EntityLinkService entityLinkService, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.applinks.spi.util.TypeAccessor typeAccessor, SpaceManager spaceManager)
           
 
Method Summary
protected abstract  Class<? extends com.atlassian.applinks.api.ApplicationType> getApplicationType()
           
protected abstract  AbstractLinkMatchedEvent getEventToPublish(String key)
           
protected abstract  Collection<? extends LinkMatcher> getLinkMatchers()
           
 String transform(Reader reader, ConversionContext conversionContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAppLinkTransformer

public AbstractAppLinkTransformer(XmlEventReaderFactory xmlEventReaderFactory,
                                  @Qualifier(value="xmlFragmentOutputFactory")
                                  XmlOutputFactory xmlFragmentOutputFactory,
                                  com.atlassian.applinks.api.EntityLinkService entityLinkService,
                                  com.atlassian.event.api.EventPublisher eventPublisher,
                                  com.atlassian.applinks.spi.util.TypeAccessor typeAccessor,
                                  SpaceManager spaceManager)

AbstractAppLinkTransformer

public AbstractAppLinkTransformer(XmlEventReaderFactory xmlEventReaderFactory,
                                  @Qualifier(value="xmlFragmentOutputFactory")
                                  XmlOutputFactory xmlFragmentOutputFactory,
                                  AbstractAppLinkTransformer.LinkSupplier remoteInstanceSupplier,
                                  com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail

transform

public String transform(Reader reader,
                        ConversionContext conversionContext)
                 throws XhtmlException
Specified by:
transform in interface Transformer
Returns:
Throws:
XhtmlParsingException - if there is a problem parsing the input parameter.
XhtmlException - for all other errors that may occur during transformation.

getApplicationType

protected abstract Class<? extends com.atlassian.applinks.api.ApplicationType> getApplicationType()

getEventToPublish

protected abstract AbstractLinkMatchedEvent getEventToPublish(String key)

getLinkMatchers

protected abstract Collection<? extends LinkMatcher> getLinkMatchers()


Copyright © 2003–2015 Atlassian. All rights reserved.