com.atlassian.jira.web.action.admin.vcs
Class RepositoryActionSupport

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.admin.vcs.RepositoryActionSupport
All Implemented Interfaces:
ErrorCollection, I18nHelper, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
Direct Known Subclasses:
AddRepository, DeleteRepository, RepositoryTest, UpdateRepository

public class RepositoryActionSupport
extends JiraWebActionSupport

See Also:
Serialized Form

Field Summary
protected  Long id
           
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, savedFilters, selectedProject
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
 
Fields inherited from interface com.atlassian.jira.util.I18nHelper
DEFAULT_RESOURCE_BUNDLE
 
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
RepositoryActionSupport(RepositoryManager repositoryManager, CvsRepositoryUtil cvsRepositoryUtil)
           
 
Method Summary
protected  String checkRepository(String repositoryName, String logFilePath, String cvsRoot, String moduleName, String password, int cvsTimeout, boolean fetchLog)
           
 String doDefault()
           
 String doView()
           
protected  CvsRepositoryUtil getCvsRepositoryUtil()
           
 String getCvsRoot()
           
 String getDescription()
           
 Long getId()
           
 String getLogFilePath()
           
 String getModuleName()
           
 String getName()
           
protected  String getPassword()
           
 String getRepositoryBrowserRootParam()
           
 String getRepositoryBrowserURL()
           
protected  RepositoryManager getRepositoryManager()
           
 String getTimeout()
           
 String getType()
           
 String[] getTypes()
           
 boolean isFetchLog()
           
 void setCvsRoot(String cvsRoot)
           
 void setDescription(String description)
           
 void setFetchLog(boolean fetchLog)
           
 void setId(Long id)
           
 void setLogFilePath(String logFilePath)
           
 void setModuleName(String moduleName)
           
 void setName(String name)
           
 void setPassword(String password)
           
 void setRepositoryBrowserRootParam(String repositoryBrowserRootParam)
           
 void setRepositoryBrowserURL(String repositoryBrowserURL)
           
 void setTimeout(String timeout)
           
 void setType(String type)
           
protected  void testRepository(String repositoryName, String logFilePath, String cvsRoot, String moduleName, String password, int cvsTimeout, boolean fetchLog)
           
 void validateRepositoryParameters()
           
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, forceRedirect, getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getReturnUrl, getSearchSortReverseDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUserFullName, getVersionManager, getWebworkStack, getWebworkStack, htmlEncode, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isSystemAdministrator, isUserExists, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getJiraLocaleUtils, getLocale, getResult, getText, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doExecute, doValidation, 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
setCommand
 

Field Detail

id

protected Long id
Constructor Detail

RepositoryActionSupport

public RepositoryActionSupport(RepositoryManager repositoryManager,
                               CvsRepositoryUtil cvsRepositoryUtil)
Method Detail

doView

public String doView()

doDefault

public String doDefault()
                 throws Exception
Overrides:
doDefault in class webwork.action.ActionSupport
Throws:
Exception

getId

public Long getId()

setId

public void setId(Long id)

getName

public String getName()

setName

public void setName(String name)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getType

public String getType()

setType

public void setType(String type)

getTypes

public String[] getTypes()

getPassword

protected String getPassword()

setPassword

public void setPassword(String password)

getLogFilePath

public String getLogFilePath()

setLogFilePath

public void setLogFilePath(String logFilePath)

getCvsRoot

public String getCvsRoot()

setCvsRoot

public void setCvsRoot(String cvsRoot)

getModuleName

public String getModuleName()

setModuleName

public void setModuleName(String moduleName)

isFetchLog

public boolean isFetchLog()

setFetchLog

public void setFetchLog(boolean fetchLog)

getRepositoryBrowserURL

public String getRepositoryBrowserURL()

setRepositoryBrowserURL

public void setRepositoryBrowserURL(String repositoryBrowserURL)

getRepositoryBrowserRootParam

public String getRepositoryBrowserRootParam()

setRepositoryBrowserRootParam

public void setRepositoryBrowserRootParam(String repositoryBrowserRootParam)

getRepositoryManager

protected RepositoryManager getRepositoryManager()

getTimeout

public String getTimeout()

setTimeout

public void setTimeout(String timeout)

checkRepository

protected String checkRepository(String repositoryName,
                                 String logFilePath,
                                 String cvsRoot,
                                 String moduleName,
                                 String password,
                                 int cvsTimeout,
                                 boolean fetchLog)

testRepository

protected void testRepository(String repositoryName,
                              String logFilePath,
                              String cvsRoot,
                              String moduleName,
                              String password,
                              int cvsTimeout,
                              boolean fetchLog)
                       throws org.netbeans.lib.cvsclient.connection.AuthenticationException,
                              IOException,
                              org.netbeans.lib.cvsclient.command.CommandException,
                              net.sf.statcvs.input.LogSyntaxException,
                              LockException
Throws:
org.netbeans.lib.cvsclient.connection.AuthenticationException
IOException
org.netbeans.lib.cvsclient.command.CommandException
net.sf.statcvs.input.LogSyntaxException
LockException

getCvsRepositoryUtil

protected CvsRepositoryUtil getCvsRepositoryUtil()

validateRepositoryParameters

public void validateRepositoryParameters()


Copyright © 2002-2009 Atlassian. All Rights Reserved.