|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.util.ConfluenceRenderUtils
public final class ConfluenceRenderUtils
Utilities for rendering Confluence wiki content.
Constructor Summary | |
---|---|
ConfluenceRenderUtils()
|
Method Summary | |
---|---|
static String |
getAbsoluteAttachmentRemotePath(Attachment attachment)
Returns the remote path to the given attachment and its siblings. |
static String |
getAttachmentRemotePath(Attachment attachment)
Returns the remote path to the given attachment and its siblings. |
static String |
getAttachmentRemotePath(ContentEntityObject content)
Returns the remote path to the attachments of the given ContentEntityObject . |
static String |
getAttachmentsPathForContent(ContentEntityObject content)
Returns the download path for all the attachments on a given content object, excluding the context path and base URL. |
static String |
getAttachmentsRemotePath(PageContext context)
Returns the remote path to files attached to the contextual page. |
static String |
renderDefaultStylesheet()
Returns a default stylesheet for Confluence. |
static String |
renderSpaceStylesheet(Space space)
Returns a default stylesheet for Confluence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfluenceRenderUtils()
Method Detail |
---|
public static String getAttachmentsRemotePath(PageContext context)
context
- must contain an existing ContentEntityObject
public static String getAttachmentRemotePath(Attachment attachment)
attachment
- must be attached to an existing ContentEntityObject
attachment
is null, or else the path to the attachments of
the content to which the attachment belongs. Eg "/confluence/download/attachments/34253"public static String getAbsoluteAttachmentRemotePath(Attachment attachment)
attachment
- must be attached to an existing ContentEntityObject
attachment
is null, or else the path to the attachments of the
content to which the attachment belongs. Eg "http://example.com/confluence/download/attachments/34253"public static String getAttachmentRemotePath(ContentEntityObject content)
ContentEntityObject
.
The path commences with the application's context path.
content
is null, or else the path its attachments.
Eg "/confluence/download/attachments/34253"public static String getAttachmentsPathForContent(ContentEntityObject content)
public static String renderDefaultStylesheet()
DefaultTheme
public static String renderSpaceStylesheet(Space space)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |