|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.content.render.xhtml.view.excerpt.DefaultExcerpter
public class DefaultExcerpter
Constructor Summary | |
---|---|
DefaultExcerpter(javax.xml.stream.XMLOutputFactory xmlFragmentOutputFactory,
XmlEventReaderFactory xmlEventReaderFactory,
HtmlToXmlConverter htmlToXmlConverter,
SettingsManager settingsManager,
Renderer viewRenderer,
Unmarshaller<EmbeddedImage> embeddedImageUnmarshaller,
FragmentTransformer fragmentTransformer,
AttachmentResourceIdentifierResolver attachmentResolver,
DataSourceFactory datasourceFactory,
ThumbnailManager thumbnailManager,
XhtmlContent xhtmlContent)
|
Method Summary | |
---|---|
java.lang.String |
createExcerpt(ContentEntityObject contentEntity,
java.lang.String outputType)
Creates an excerpt of the contentEntityObject without any tags excluded including an implementation specific number of blocking |
java.lang.String |
createExcerpt(ContentEntityObject contentEntity,
java.lang.String outputType,
ExcerptConfig config)
Creates an excerpt of the contentEntityObject excluding any html tags that are in the exclude set. |
java.lang.String |
createExcerpt(ContentEntityObject contentEntity,
java.lang.String outputType,
java.util.Set<java.lang.String> excludeSet,
int maxBlocksForExcerpt)
|
java.lang.String |
createExcerpt(java.lang.String contentHtml,
ExcerptConfig config)
|
java.util.List<javax.activation.DataSource> |
extractImageSrc(ContentEntityObject ceo,
int maxImages)
|
java.util.List<javax.activation.DataSource> |
extractImageSrc(ContentEntityObject ceo,
int maxImages,
boolean alwaysUseThumbnails)
|
java.util.List<java.lang.String> |
extractImageSrc(java.lang.String contentHtml,
int maxImages)
|
java.util.List<java.net.URI> |
extractImageThumbnailUris(ContentEntityObject contentEntity,
int maxUris)
Returns the URIs of thumbnails for each of the images attached to the specified content entity. |
protected java.util.List<javax.xml.stream.events.XMLEvent> |
filterEmptyAndExcludedEvents(javax.xml.stream.XMLEventReader reader,
java.util.Set<java.lang.String> excludeSet)
|
java.lang.String |
renderContent(ContentEntityObject contentEntity,
java.lang.String outputType)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultExcerpter(javax.xml.stream.XMLOutputFactory xmlFragmentOutputFactory, XmlEventReaderFactory xmlEventReaderFactory, HtmlToXmlConverter htmlToXmlConverter, SettingsManager settingsManager, Renderer viewRenderer, Unmarshaller<EmbeddedImage> embeddedImageUnmarshaller, FragmentTransformer fragmentTransformer, AttachmentResourceIdentifierResolver attachmentResolver, DataSourceFactory datasourceFactory, ThumbnailManager thumbnailManager, XhtmlContent xhtmlContent)
Method Detail |
---|
public java.lang.String createExcerpt(ContentEntityObject contentEntity, java.lang.String outputType) throws java.lang.Exception
Excerpter
createExcerpt
in interface Excerpter
contentEntity
- - contentEntityObject to create an excerpt ofoutputType
- - the output type in which to render the content, @see RenderContextOutputType
java.lang.Exception
- - if an excerpt could not be created for this ContentEntityObjectpublic java.lang.String createExcerpt(ContentEntityObject contentEntity, java.lang.String outputType, java.util.Set<java.lang.String> excludeSet, int maxBlocksForExcerpt) throws java.lang.Exception
java.lang.Exception
public java.lang.String createExcerpt(ContentEntityObject contentEntity, java.lang.String outputType, ExcerptConfig config) throws javax.xml.stream.XMLStreamException
Excerpter
createExcerpt
in interface Excerpter
outputType
- - the output type in which to render the content, @see RenderContextOutputTypeconfig
- - a parameter object that allows the content of the excerpt to be customized. @see ExcerptConfig
javax.xml.stream.XMLStreamException
@Deprecated public java.lang.String renderContent(ContentEntityObject contentEntity, java.lang.String outputType)
public java.lang.String createExcerpt(java.lang.String contentHtml, ExcerptConfig config) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public java.util.List<javax.activation.DataSource> extractImageSrc(ContentEntityObject ceo, int maxImages) throws javax.xml.stream.XMLStreamException, XhtmlException
extractImageSrc
in interface Excerpter
javax.xml.stream.XMLStreamException
XhtmlException
public java.util.List<javax.activation.DataSource> extractImageSrc(ContentEntityObject ceo, int maxImages, boolean alwaysUseThumbnails) throws javax.xml.stream.XMLStreamException, XhtmlException
extractImageSrc
in interface Excerpter
javax.xml.stream.XMLStreamException
XhtmlException
public java.util.List<java.lang.String> extractImageSrc(java.lang.String contentHtml, int maxImages) throws javax.xml.stream.XMLStreamException
extractImageSrc
in interface Excerpter
javax.xml.stream.XMLStreamException
protected java.util.List<javax.xml.stream.events.XMLEvent> filterEmptyAndExcludedEvents(javax.xml.stream.XMLEventReader reader, java.util.Set<java.lang.String> excludeSet)
public java.util.List<java.net.URI> extractImageThumbnailUris(ContentEntityObject contentEntity, int maxUris) throws XhtmlException
Excerpter
extractImageThumbnailUris
in interface Excerpter
contentEntity
- the content entitymaxUris
- the maximum URI's to return
XhtmlException
- if there is an error parsing the contents for image references.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |