com.atlassian.jira.web.bean
Class ApplicationPropertiesBackedNonZipExpandableExtensions

java.lang.Object
  extended by 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
ApplicationPropertiesBackedNonZipExpandableExtensions(ApplicationProperties applicationProperties)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationPropertiesBackedNonZipExpandableExtensions

public ApplicationPropertiesBackedNonZipExpandableExtensions(ApplicationProperties applicationProperties)
Method Detail

getApplicationProperties

public ApplicationProperties getApplicationProperties()

getNonExpandableExtensionsList

public String getNonExpandableExtensionsList()
Description copied from interface: NonZipExpandableExtensions
Returns a comma-separated list of non-expandable file extensions.

Specified by:
getNonExpandableExtensionsList in interface NonZipExpandableExtensions
Returns:
list of non-expandable file extensions.

contains

public boolean contains(String extension)
Description copied from interface: NonZipExpandableExtensions
Determines whether the specified extension is contained in the the list of file extensions which should not be expanded as a zip.

Specified by:
contains in interface NonZipExpandableExtensions
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.


Copyright © 2002-2013 Atlassian. All Rights Reserved.