Package com.atlassian.jira.web.bean
Class ApplicationPropertiesBackedNonZipExpandableExtensions
java.lang.Object
com.atlassian.jira.web.bean.ApplicationPropertiesBackedNonZipExpandableExtensions
- All Implemented Interfaces:
NonZipExpandableExtensions
public class ApplicationPropertiesBackedNonZipExpandableExtensions
extends Object
implements NonZipExpandableExtensions
An implementation of
NonZipExpandableExtensions that is backed by a jira application property.
By default, it includes the MS Office OpenXml extensions and OpenOffice OpenDocument extensions.
- Since:
- v4.2
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationPropertiesBackedNonZipExpandableExtensions(ApplicationProperties applicationProperties) -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines whether the specified extension is contained in the the list of file extensions which should not be expanded as a zip.Returns a comma-separated list of non-expandable file extensions.
-
Constructor Details
-
ApplicationPropertiesBackedNonZipExpandableExtensions
public ApplicationPropertiesBackedNonZipExpandableExtensions(ApplicationProperties applicationProperties)
-
-
Method Details
-
getApplicationProperties
-
getNonExpandableExtensionsList
Description copied from interface:NonZipExpandableExtensionsReturns a comma-separated list of non-expandable file extensions.- Specified by:
getNonExpandableExtensionsListin interfaceNonZipExpandableExtensions- Returns:
- list of non-expandable file extensions.
-
contains
Description copied from interface:NonZipExpandableExtensionsDetermines whether the specified extension is contained in the the list of file extensions which should not be expanded as a zip.- Specified by:
containsin interfaceNonZipExpandableExtensions- Parameters:
extension- The extension to check. Should not be null- Returns:
- true, the specified extension is contained in the the list of file extensions which should not be expanded as a zip; otherwise, false.
-