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