public class

DevModeSecretSauce

extends Object
java.lang.Object
   ↳ com.atlassian.jira.web.action.setup.DevModeSecretSauce

Class Overview

This is ONLY ever called in dev mode. Its here to save us time but still leave JIRA alone enough so that we can test it "fully". All you have to do is remove your secretsauce

This is ONLY here to make developers more productive and not in ANY way there for customers. Its so we can get versions of JIRA out quicker to customers. You have to place specific files into specific places and run in specific modes to get this to work. So its not a security hole nor is it detracting from testability of JIRA. Its is however aimed at increasing the velocity of the JIRA developers.

Summary

Public Constructors
DevModeSecretSauce(JiraProperties jiraSystemProperties)
Public Methods
String getSecretSauceProperty(String propertyName)
Can be called to get target harded code values if they are a JIRA developer or empty string otherwise
boolean isBoneFideJiraDeveloper()
This returns true if it detects that you are a bona fide JIRA developer and want the auto setup stuff to just work.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DevModeSecretSauce (JiraProperties jiraSystemProperties)

Public Methods

public String getSecretSauceProperty (String propertyName)

Can be called to get target harded code values if they are a JIRA developer or empty string otherwise

Parameters
propertyName the desired value if we are in JIRA easy setup mode
Returns
  • the value or empty string

public boolean isBoneFideJiraDeveloper ()

This returns true if it detects that you are a bona fide JIRA developer and want the auto setup stuff to just work.

It ONLY ever works in jira.dev.mode and ONLY if you drop the secretsauce file into ~/.jiradev directory

Returns
  • true if they are a JIRA developer