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, HttpServletVariables, AuthorizationSupport, 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 class com.atlassian.jira.web.action.JiraWebActionSupport
JiraWebActionSupport.MessageType
 
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.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, FileFactory fileFactory)
           
IndexAdminImpl(ProjectManager projectManager, PermissionManager permissionManager, IndexLifecycleManager indexLifecycleManager, GlobalPermissionManager globalPermissionManager, TaskManager taskManager, JiraAuthenticationContext authenticationContext, TaskDescriptorBean.Factory factory, IndexPathManager indexPathManager, FileFactory fileFactory, IndexRecoveryService indexRecoveryService, ClusterManager clusterManager, JiraHome jiraHome, I18nHelper.BeanFactory i18nBeanFactory)
           
 
Method Summary
 String doActivate()
           
 String doCancel()
           
 String doCopy()
           
protected  String doExecute()
           
 String doProgress()
           
 String doRecover()
           
 String doReindex()
           
 String getCannotReindexInForegroundMessage()
           
 String getCopyFromNodeId()
           
 String getCurrentNodeId()
           
 TaskDescriptorBean<IndexCommandResult> getCurrentTask()
           
 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.
 String getDestinationURL()
           
 String getIndexingStrategy()
           
 String getIndexPath()
           
 String getIndexPathOption()
           
 Collection<Node> getNodeList()
           
 TaskDescriptorBean<IndexCommandResult> getOurTask()
           
 String getRecoveryFilename()
           
 String getRecoveryFilePath()
           
 long getReindexTime()
           
 boolean getShowCustom()
           
 String getSnapshotDirectory()
           
 String getSnapshotInterval()
           
 Long getTaskId()
           
 boolean isAnyLiveTasks()
           
 boolean isClustered()
           
 boolean isCopyRequested()
           
 boolean isHasSystemAdminPermission()
           
 boolean isIndexConsistent()
           
 boolean isTaskInProgress()
           
 boolean recoveryEnabled()
           
 void setCopyFromNodeId(String copyFromNodeId)
           
 void setIndexingStrategy(String indexingStrategy)
           
 void setIndexPathOption(String indexPathOption)
           
 void setRecoveryFilename(String recoveryFilename)
           
 void setReindexTime(long reindexTime)
           
 void setTaskId(Long taskId)
           
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowsableProjects, getBrowseableProjects, getSelectedProjectId, setSelectedProject, setSelectedProject
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addMessageToResponse, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, hasIssuePermission, hasPermission, hasProjectPermission, htmlEncode, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, urlEncode
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getRemoteUser, getResourceBundle, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUntransformedRawText, getUserPreferences, getWatcherManager, hasAnyErrors, isIndexing, isKeyDefined, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doDefault, doValidation, getCommandName, 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, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
getCommandName, setCommand
 

Constructor Detail

IndexAdminImpl

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

IndexAdminImpl

public IndexAdminImpl(ProjectManager projectManager,
                      PermissionManager permissionManager,
                      IndexLifecycleManager indexLifecycleManager,
                      GlobalPermissionManager globalPermissionManager,
                      TaskManager taskManager,
                      JiraAuthenticationContext authenticationContext,
                      TaskDescriptorBean.Factory factory,
                      IndexPathManager indexPathManager,
                      FileFactory fileFactory,
                      IndexRecoveryService indexRecoveryService,
                      ClusterManager clusterManager,
                      JiraHome jiraHome,
                      I18nHelper.BeanFactory i18nBeanFactory)
Method Detail

getIndexPathOption

public String getIndexPathOption()

setIndexPathOption

public void setIndexPathOption(String indexPathOption)

getDefaultIndexPath

public 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 String getIndexPath()
Specified by:
getIndexPath in interface IndexAdmin

doExecute

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

doActivate

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

doReindex

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

doProgress

public String doProgress()
                  throws ExecutionException,
                         InterruptedException
Throws:
ExecutionException
InterruptedException

doCancel

public String doCancel()
                throws ExecutionException,
                       InterruptedException
Throws:
ExecutionException
InterruptedException

doRecover

public String doRecover()
                 throws Exception
Throws:
Exception

doCopy

public String doCopy()
              throws Exception
Throws:
Exception

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 Long getTaskId()

setTaskId

public void setTaskId(Long taskId)

getOurTask

public TaskDescriptorBean<IndexCommandResult> getOurTask()

getCurrentTask

public TaskDescriptorBean<IndexCommandResult> getCurrentTask()

getIndexingStrategy

public String getIndexingStrategy()

setIndexingStrategy

public void setIndexingStrategy(String indexingStrategy)

isIndexConsistent

public boolean isIndexConsistent()

getDestinationURL

public String getDestinationURL()

isTaskInProgress

public boolean isTaskInProgress()

getCannotReindexInForegroundMessage

public String getCannotReindexInForegroundMessage()

getRecoveryFilename

public String getRecoveryFilename()

getRecoveryFilePath

public String getRecoveryFilePath()

getSnapshotInterval

public String getSnapshotInterval()

getSnapshotDirectory

public String getSnapshotDirectory()

setRecoveryFilename

public void setRecoveryFilename(String recoveryFilename)

recoveryEnabled

public boolean recoveryEnabled()

getCopyFromNodeId

public String getCopyFromNodeId()

setCopyFromNodeId

public void setCopyFromNodeId(String copyFromNodeId)

getNodeList

public Collection<Node> getNodeList()

isClustered

public boolean isClustered()

getCurrentNodeId

public String getCurrentNodeId()

isCopyRequested

public boolean isCopyRequested()


Copyright © 2002-2014 Atlassian. All Rights Reserved.