com.atlassian.studio.jira.web.action.project.crucible
Class CrucibleProject

java.lang.Object
  extended by webwork.action.ActionSupport
      extended by com.atlassian.jira.action.JiraActionSupport
          extended by com.atlassian.jira.web.action.JiraWebActionSupport
              extended by com.atlassian.studio.jira.web.action.project.crucible.CrucibleProject
All Implemented Interfaces:
ErrorCollection, I18nHelper, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class CrucibleProject
extends JiraWebActionSupport

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.ErrorCollection
ErrorCollection.Reason
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory
 
Field Summary
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
CrucibleProject(com.atlassian.sal.api.net.RequestFactory<?> requestFactory, PermissionManager permissionManager, ProjectManager projectManager, com.atlassian.applinks.core.AppLinksManager appLinksManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, com.atlassian.plugin.webresource.WebResourceManager webResourceManager, com.atlassian.studio.host.common.ThemeProperties themeProperties, GroupManager groupManager)
           
 
Method Summary
 String commaSeparate(Set<String> set)
           
protected  String doExecute()
           
 String doListProjects()
           
protected  void doValidation()
           
 String doViewProject()
           
 String getDefaultDuration()
           
 Set<String> getGroups()
           
 String getKey()
           
 String getMessage()
           
 com.atlassian.studio.core.globaladmin.crucible.CrucibleProjectConfig getProjectConfig()
           
 String getProjectName()
           
 Collection<Project> getProjects()
           
 String getText(String aTextName)
          Called to return the formatted text of the specified i18n key or the key itself if no message can be found
 String getText(String key, String arg1)
          Called to return the formatted text of the specified i18n key or the key itself if no message can be found
 String getText(String key, String arg2, String arg3)
          Called to return the formatted text of the specified i18n key or the key itself if no message can be found
 boolean isAllowReviewersToJoin()
           
 void setAllowedReviewerGroups(String[] allowedReviewerGroups)
           
 void setAllowedReviewers(String allowedReviewers)
           
 void setAllowReviewersToJoin(boolean allowReviewersToJoin)
           
 void setDefaultDuration(String defaultDuration)
           
 void setDefaultModerator(String defaultModerator)
           
 void setDefaultReviewerGroups(String[] defaultReviewerGroups)
           
 void setDefaultReviewers(String defaultReviewers)
           
 void setKey(String key)
           
 void setMessage(String message)
           
 void setModeratorEnabled(boolean moderatorEnabled)
           
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDmyDateFormatter, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInUser, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirectChecker, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, htmlEncode, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getRemoteUser, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isIndexing, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doDefault, getCommandName, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
getCommandName, setCommand
 

Constructor Detail

CrucibleProject

public CrucibleProject(com.atlassian.sal.api.net.RequestFactory<?> requestFactory,
                       PermissionManager permissionManager,
                       ProjectManager projectManager,
                       com.atlassian.applinks.core.AppLinksManager appLinksManager,
                       com.atlassian.sal.api.message.I18nResolver i18nResolver,
                       com.atlassian.plugin.webresource.WebResourceManager webResourceManager,
                       com.atlassian.studio.host.common.ThemeProperties themeProperties,
                       GroupManager groupManager)
Method Detail

doValidation

protected void doValidation()
Overrides:
doValidation in class webwork.action.ActionSupport

doExecute

protected String doExecute()
                    throws Exception
Overrides:
doExecute in class webwork.action.ActionSupport
Throws:
Exception

doListProjects

public String doListProjects()

doViewProject

public String doViewProject()

getProjects

public Collection<Project> getProjects()

getGroups

public Set<String> getGroups()

getText

public String getText(String aTextName)
Description copied from interface: I18nHelper
Called to return the formatted text of the specified i18n key or the key itself if no message can be found

Specified by:
getText in interface I18nHelper
Overrides:
getText in class JiraActionSupport
Parameters:
aTextName - the key of the i18n message
Returns:
the formatted text or the key itself if no i18n message can be found

getText

public String getText(String key,
                      String arg1)
Description copied from interface: I18nHelper
Called to return the formatted text of the specified i18n key or the key itself if no message can be found

Specified by:
getText in interface I18nHelper
Overrides:
getText in class JiraActionSupport
Parameters:
key - the key of the i18n message
arg1 - a value to be substituted into the message
Returns:
the formatted text or the key itself if no i18n message can be found

getText

public String getText(String key,
                      String arg2,
                      String arg3)
Description copied from interface: I18nHelper
Called to return the formatted text of the specified i18n key or the key itself if no message can be found

Specified by:
getText in interface I18nHelper
Overrides:
getText in class JiraActionSupport
Parameters:
key - the key of the i18n message
arg2 - a value to be substituted into the message
arg3 - a value to be substituted into the message
Returns:
the formatted text or the key itself if no i18n message can be found

setKey

public void setKey(String key)

getKey

public String getKey()

getProjectConfig

public com.atlassian.studio.core.globaladmin.crucible.CrucibleProjectConfig getProjectConfig()

commaSeparate

public String commaSeparate(Set<String> set)

getProjectName

public String getProjectName()

setModeratorEnabled

public void setModeratorEnabled(boolean moderatorEnabled)

setDefaultModerator

public void setDefaultModerator(String defaultModerator)

setDefaultReviewers

public void setDefaultReviewers(String defaultReviewers)

setDefaultReviewerGroups

public void setDefaultReviewerGroups(String[] defaultReviewerGroups)

setAllowedReviewers

public void setAllowedReviewers(String allowedReviewers)

setAllowedReviewerGroups

public void setAllowedReviewerGroups(String[] allowedReviewerGroups)

getDefaultDuration

public String getDefaultDuration()

setDefaultDuration

public void setDefaultDuration(String defaultDuration)

isAllowReviewersToJoin

public boolean isAllowReviewersToJoin()

setAllowReviewersToJoin

public void setAllowReviewersToJoin(boolean allowReviewersToJoin)

getMessage

public String getMessage()

setMessage

public void setMessage(String message)


Copyright © 2002-2012 Atlassian. All Rights Reserved.