jenkins.plugins.svnmerge
Class AbstractSvnmergeTaskAction<P>

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.model.TaskAction
          extended by jenkins.plugins.svnmerge.AbstractSvnmergeTaskAction<P>
Type Parameters:
P - Type that represents the parameter of the action
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem
Direct Known Subclasses:
IntegrateAction, RebaseAction

public abstract class AbstractSvnmergeTaskAction<P>
extends hudson.model.TaskAction

Author:
Kohsuke Kawaguchi

Nested Class Summary
protected  class AbstractSvnmergeTaskAction.TaskImpl
          Queue.Task that performs the integration.
 class AbstractSvnmergeTaskAction.WorkerThread
           
 
Field Summary
 
Fields inherited from class hudson.model.TaskAction
log, workerThread
 
Method Summary
protected abstract  P createParams(org.kohsuke.stapler.StaplerRequest req)
           
protected abstract  AbstractSvnmergeTaskAction.TaskImpl createTask(P param)
           
protected abstract  java.lang.String decidePage()
          Which page to render in the top page?
 void doIndex(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 void doPerform(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Called from UI to commence this task.
 org.kohsuke.stapler.framework.io.LargeText getLog()
           
abstract  java.io.File getLogFile()
           
protected  hudson.security.Permission getPermission()
           
abstract  hudson.model.AbstractProject<?,?> getProject()
           
 FeatureBranchProperty getProperty()
           
 java.util.concurrent.Future<AbstractSvnmergeTaskAction.WorkerThread> performAsync(P param)
          Schedules the execution of this task.
 
Methods inherited from class hudson.model.TaskAction
doClearError, doProgressiveHtml, doProgressiveLog, getACL, getSearchUrl, getWorkerThread, obtainLog
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
 

Method Detail

getPermission

protected hudson.security.Permission getPermission()
Specified by:
getPermission in class hudson.model.TaskAction

getProject

public abstract hudson.model.AbstractProject<?,?> getProject()

getProperty

public final FeatureBranchProperty getProperty()

getLog

public org.kohsuke.stapler.framework.io.LargeText getLog()
Overrides:
getLog in class hudson.model.TaskAction

getLogFile

public abstract java.io.File getLogFile()

doIndex

public void doIndex(org.kohsuke.stapler.StaplerRequest req,
                    org.kohsuke.stapler.StaplerResponse rsp)
             throws java.io.IOException,
                    javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

performAsync

public java.util.concurrent.Future<AbstractSvnmergeTaskAction.WorkerThread> performAsync(P param)
                                                                                  throws java.io.IOException
Schedules the execution of this task.

This happens asynchronously.

Throws:
java.io.IOException

createTask

protected abstract AbstractSvnmergeTaskAction.TaskImpl createTask(P param)
                                                           throws java.io.IOException
Throws:
java.io.IOException

createParams

protected abstract P createParams(org.kohsuke.stapler.StaplerRequest req)
                           throws java.io.IOException
Throws:
java.io.IOException

doPerform

public void doPerform(org.kohsuke.stapler.StaplerRequest req,
                      org.kohsuke.stapler.StaplerResponse rsp)
               throws java.io.IOException,
                      javax.servlet.ServletException
Called from UI to commence this task.

Throws:
java.io.IOException
javax.servlet.ServletException

decidePage

protected abstract java.lang.String decidePage()
Which page to render in the top page?



Copyright © 2004-2011. All Rights Reserved.