com.atlassian.jira.web.action.admin.index
Class IndexAdminImpl

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.jira.web.action.ProjectActionSupport
                  extended by com.atlassian.jira.web.action.admin.index.IndexAdminImpl
All Implemented Interfaces:
ErrorCollection, I18nHelper, IndexAdmin, java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class IndexAdminImpl
extends ProjectActionSupport
implements IndexAdmin

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory
 
Field Summary
static java.lang.String JIRA_IS_BEING_REINDEXED
           
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
projectManager
 
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 com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
IndexAdminImpl(IndexLifecycleManager indexLifecycleManager, GlobalPermissionManager globalPermissionManager, TaskManager taskManager, JiraAuthenticationContext authenticationContext, OutlookDateManager outlookDateManager, IndexPathManager indexPathManager)
           
IndexAdminImpl(ProjectManager projectManager, PermissionManager permissionManager, IndexLifecycleManager indexLifecycleManager, GlobalPermissionManager globalPermissionManager, TaskManager taskManager, JiraAuthenticationContext authenticationContext, OutlookDateManager outlookDateManager, IndexPathManager indexPathManager)
           
 
Method Summary
 java.lang.String doActivate()
           
 java.lang.String doExecute()
           
 java.lang.String doProgress()
           
 java.lang.String doReindex()
           
 TaskDescriptorBean<IndexCommandResult> getCurrentTask()
           
 java.lang.String getDefaultIndexPath()
          Returns the absolute path for the Default Index directory ([jira-home]/caches/index/) This is used for read-only info added to the "Use Default Directory" option.
 java.lang.String getDestinationURL()
           
 java.lang.String getIndexPath()
           
 java.lang.String getIndexPathOption()
           
 TaskDescriptorBean<IndexCommandResult> getOurTask()
           
 long getReindexTime()
           
 boolean getShowCustom()
           
 java.lang.Long getTaskId()
           
 boolean isAnyLiveTasks()
           
 boolean isHasSystemAdminPermission()
           
 void setIndexPathOption(java.lang.String indexPathOption)
           
 void setReindexTime(long reindexTime)
           
 void setTaskId(java.lang.Long taskId)
           
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSelectedProjectId, setSelectedProject, setSelectedProject
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, forceRedirect, getApplicationProperties, getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRandomHint, getRedirect, getRemoteUser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUriValidator, getUserFullName, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, htmlEncode, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, returnComplete, returnComplete, returnCompleteWithInlineRedirect, setConglomerateCookieValue, setInline, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getDefaultResourceBundle, getDelegator, getKeysForPrefix, getLocale, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText0, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doDefault, doValidation, 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
 

Field Detail

JIRA_IS_BEING_REINDEXED

public static final java.lang.String JIRA_IS_BEING_REINDEXED
See Also:
Constant Field Values
Constructor Detail

IndexAdminImpl

public IndexAdminImpl(IndexLifecycleManager indexLifecycleManager,
                      GlobalPermissionManager globalPermissionManager,
                      TaskManager taskManager,
                      JiraAuthenticationContext authenticationContext,
                      OutlookDateManager outlookDateManager,
                      IndexPathManager indexPathManager)

IndexAdminImpl

public IndexAdminImpl(ProjectManager projectManager,
                      PermissionManager permissionManager,
                      IndexLifecycleManager indexLifecycleManager,
                      GlobalPermissionManager globalPermissionManager,
                      TaskManager taskManager,
                      JiraAuthenticationContext authenticationContext,
                      OutlookDateManager outlookDateManager,
                      IndexPathManager indexPathManager)
Method Detail

getIndexPathOption

public java.lang.String getIndexPathOption()

setIndexPathOption

public void setIndexPathOption(java.lang.String indexPathOption)

getDefaultIndexPath

public java.lang.String getDefaultIndexPath()
Returns the absolute path for the Default Index directory ([jira-home]/caches/index/) This is used for read-only info added to the "Use Default Directory" option.

Returns:
the absolute path for the Default Index directory ([jira-home]/caches/index/)

getShowCustom

public boolean getShowCustom()

getIndexPath

public java.lang.String getIndexPath()
Specified by:
getIndexPath in interface IndexAdmin

doExecute

public java.lang.String doExecute()
                           throws java.lang.Exception
Overrides:
doExecute in class webwork.action.ActionSupport
Throws:
java.lang.Exception

doActivate

public java.lang.String doActivate()
                            throws java.lang.Exception
Specified by:
doActivate in interface IndexAdmin
Throws:
java.lang.Exception

doReindex

public java.lang.String doReindex()
                           throws java.lang.Exception
Specified by:
doReindex in interface IndexAdmin
Throws:
java.lang.Exception

doProgress

public java.lang.String doProgress()
                            throws java.util.concurrent.ExecutionException,
                                   java.lang.InterruptedException
Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException

getReindexTime

public long getReindexTime()
Specified by:
getReindexTime in interface IndexAdmin

setReindexTime

public void setReindexTime(long reindexTime)

isAnyLiveTasks

public boolean isAnyLiveTasks()

isHasSystemAdminPermission

public boolean isHasSystemAdminPermission()

getTaskId

public java.lang.Long getTaskId()

setTaskId

public void setTaskId(java.lang.Long taskId)

getOurTask

public TaskDescriptorBean<IndexCommandResult> getOurTask()

getCurrentTask

public TaskDescriptorBean<IndexCommandResult> getCurrentTask()

getDestinationURL

public java.lang.String getDestinationURL()


Copyright © 2002-2010 Atlassian. All Rights Reserved.