public class AttachmentUrlParser
extends java.lang.Object
FileServerServlet
for URL prefix constants.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MODIFICATION_DATE_PARAMETER |
static java.lang.String |
VERSION_PARAMETER |
Constructor and Description |
---|
AttachmentUrlParser() |
Modifier and Type | Method and Description |
---|---|
Attachment |
getAttachment(java.lang.String urlPath,
java.lang.String urlPrefix,
java.util.Map parameters)
Gets the attachment based on the url, prefix and query parameters.
|
java.lang.String |
getAttachmentFileName(java.lang.String urlPath) |
ContentEntityObject |
getEntity(java.lang.String urlPath,
java.lang.String prefix)
Gets the entity that the attachment is attached to based on the given url.
|
long |
getEntityId(java.lang.String urlPath,
java.lang.String prefix)
Gets the entity id that the attachment is attached to based on the given
url.
|
void |
setAttachmentManager(AttachmentManager attachmentManager) |
void |
setContentEntityObjectDao(ContentEntityObjectDao contentEntityObjectDao) |
void |
setPageManager(PageManager pageManager) |
public static final java.lang.String VERSION_PARAMETER
public static final java.lang.String MODIFICATION_DATE_PARAMETER
public Attachment getAttachment(java.lang.String urlPath, java.lang.String urlPrefix, java.util.Map parameters)
urlPath
- the attachment url pathurlPrefix
- the url prefix up to the entity idparameters
- query parameters from the urlpublic ContentEntityObject getEntity(java.lang.String urlPath, java.lang.String prefix)
urlPath
- the attachment url pathprefix
- the url prefix up to the entity idpublic long getEntityId(java.lang.String urlPath, java.lang.String prefix)
urlPath
- the attachment url pathprefix
- the url prefix up to the entity idpublic java.lang.String getAttachmentFileName(java.lang.String urlPath)
public void setContentEntityObjectDao(ContentEntityObjectDao contentEntityObjectDao)
public void setAttachmentManager(AttachmentManager attachmentManager)
public void setPageManager(PageManager pageManager)
Copyright © 2003-2014 Atlassian. All Rights Reserved.