public class

ApplicationPropertiesBackedNonZipExpandableExtensions

extends Object
implements NonZipExpandableExtensions
java.lang.Object
   ↳ com.atlassian.jira.web.bean.ApplicationPropertiesBackedNonZipExpandableExtensions

Class Overview

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.

Summary

Public Constructors
ApplicationPropertiesBackedNonZipExpandableExtensions(ApplicationProperties applicationProperties)
Public Methods
boolean contains(String extension)
Determines whether the specified extension is contained in the the list of file extensions which should not be expanded as a zip.
ApplicationProperties getApplicationProperties()
String getNonExpandableExtensionsList()
Returns a comma-separated list of non-expandable file extensions.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.web.bean.NonZipExpandableExtensions

Public Constructors

public ApplicationPropertiesBackedNonZipExpandableExtensions (ApplicationProperties applicationProperties)

Public Methods

public boolean contains (String extension)

Determines whether the specified extension is contained in the the list of file extensions which should not be expanded as a zip.

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.

public ApplicationProperties getApplicationProperties ()

public String getNonExpandableExtensionsList ()

Returns a comma-separated list of non-expandable file extensions.

Returns
  • list of non-expandable file extensions.