Package com.atlassian.jira.filestore
Class NoOpAttachmentFileStoreProvider
java.lang.Object
com.atlassian.jira.filestore.NoOpAttachmentFileStoreProvider
- All Implemented Interfaces:
AttachmentFileStoreProvider
,FileStoreProvider
An
AttachmentFileStoreProvider
that is only used when Jira fails to create a valid file store provider for
attachments. Jira will fail on startup if this is the case, but some implementation is required for other
components to be initialized correctly, in order to display the startup error.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns theFileStoreAssociationTarget
that this provider is associated with.com.atlassian.dc.filestore.api.FileStore.Path
Fetches the base file store path.Fetches the Analytic info about file store for attachmentsReturns information that describes the file store config.boolean
Indicates whether the file store is somewhere within the Jira home directory.
-
Constructor Details
-
NoOpAttachmentFileStoreProvider
public NoOpAttachmentFileStoreProvider()
-
-
Method Details
-
getBasePath
@Nonnull public com.atlassian.dc.filestore.api.FileStore.Path getBasePath()Description copied from interface:FileStoreProvider
Fetches the base file store path.- Specified by:
getBasePath
in interfaceFileStoreProvider
- Returns:
- see description
-
isStoreInJiraHome
public boolean isStoreInJiraHome()Description copied from interface:FileStoreProvider
Indicates whether the file store is somewhere within the Jira home directory.- Specified by:
isStoreInJiraHome
in interfaceFileStoreProvider
- Returns:
- see description
-
getInformation
Description copied from interface:FileStoreProvider
Returns information that describes the file store config.- Specified by:
getInformation
in interfaceFileStoreProvider
- Returns:
- a
FileStoreInformation
instance that can be used by the JIRA.Templates.Admin.Jira.FileStoreInformation.fileStoreInformation soy template to present information about the file store in the admin UI.
-
getFileStoreAnalyticInfo
Description copied from interface:AttachmentFileStoreProvider
Fetches the Analytic info about file store for attachments- Specified by:
getFileStoreAnalyticInfo
in interfaceAttachmentFileStoreProvider
- Specified by:
getFileStoreAnalyticInfo
in interfaceFileStoreProvider
- Returns:
- FileStoreAnalyticInfo
-
getAssociationTarget
Description copied from interface:FileStoreProvider
Returns theFileStoreAssociationTarget
that this provider is associated with.- Specified by:
getAssociationTarget
in interfaceFileStoreProvider
- Returns:
- FileStoreAssociationTarget
-