public final class ConfluenceRenderUtils extends Object
Constructor and Description |
---|
ConfluenceRenderUtils() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static String getAttachmentsRemotePath(PageContext context)
context
- must contain an existing ContentEntityObjectpublic static String getAttachmentRemotePath(Attachment attachment)
attachment
- must be attached to an existing ContentEntityObjectattachment
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
Copyright © 2003–2019 Atlassian. All rights reserved.