com.atlassian.jira.web.action.setup
Class DevModeSecretSauce

java.lang.Object
  extended by com.atlassian.jira.web.action.setup.DevModeSecretSauce

public class DevModeSecretSauce
extends Object

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.

Since:
v4.4

Constructor Summary
DevModeSecretSauce(JiraProperties jiraSystemProperties)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DevModeSecretSauce

public DevModeSecretSauce(JiraProperties jiraSystemProperties)
Method Detail

isBoneFideJiraDeveloper

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

getSecretSauceProperty

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.