public class AttachmentUriGenerator extends Object implements ResourceUriGenerator
ResourceUriGenerator.NoopGenerator
Constructor and Description |
---|
AttachmentUriGenerator(AttachmentManagerInternal attachmentManager) |
Modifier and Type | Method and Description |
---|---|
Map<String,URI> |
generate(URI baseUrl,
Set<String> identifiers)
For each of the identifiers in
identifiers set calculate the corresponding URI and return a mapping from
the identifier to this URI. |
public AttachmentUriGenerator(AttachmentManagerInternal attachmentManager)
public Map<String,URI> generate(URI baseUrl, Set<String> identifiers)
ResourceUriGenerator
identifiers
set calculate the corresponding URI and return a mapping from
the identifier to this URI. If the identifier doesn't have corresponding URI, the map shouldn't include it.
The URI is calculated with respect to provided baseUrl
.
This method signature receives a Set and returns a Map to make possible potential optimizations from using batch operations (for example the implementation might fetch several records in a single database query).
generate
in interface ResourceUriGenerator
identifiers
. For each identifier key the value of
the map is a corresponding URI of the resource.Copyright © 2003–2021 Atlassian. All rights reserved.