de.smartics.ci.comm.command
Class AbstractJobCommand<T extends Command<T>>

Package class diagram package AbstractJobCommand
java.lang.Object
  extended by de.smartics.ci.comm.command.AbstractCommand<T>
      extended by de.smartics.ci.comm.command.AbstractJobCommand<T>
Type Parameters:
T - the concrete type of the command.
All Implemented Interfaces:
Command<T>
Direct Known Subclasses:
AbstractCheckStatusJobCommand, AbstractCreateJobCommand, AbstractDeleteJobCommand, AbstractDisableJobCommand, AbstractEnableJobCommand, AbstractGenericJobCommand, AbstractUpdateJobCommand

public abstract class AbstractJobCommand<T extends Command<T>>
     
     
extends AbstractCommand<T>
implements Command<T>

Abstract class that combines all every job command needs.


Field Summary
protected  String jobName
          The name of the job that shall be enabled.
 
Fields inherited from class de.smartics.ci.comm.command.AbstractCommand
ERROR_CATEGORY_DESTINGUISHER, logLevel
 
Constructor Summary
AbstractJobCommand(String jobName)
          Default constructor.
 
Method Summary
protected  String buildCiJobApiUrl(String url, String jobName, String apiMethod)
          Build the job api url string.
 void setJobName(String jobName)
          Sets the name of the job that shall be enabled.
 
Methods inherited from class de.smartics.ci.comm.command.AbstractCommand
addRequestHeaders, buildQueryString, checkParameterNotBlank, checkResult, checkResultRegardingRedirect, fetchDelimiter, setLogLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.smartics.ci.comm.command.Command
execute
 

Field Detail

jobName

protected String jobName
The name of the job that shall be enabled.

Constructor Detail

AbstractJobCommand

public AbstractJobCommand(String jobName)
Default constructor.

Parameters:
jobName - the name of the job that shall be enabled.
Method Detail

setJobName

public final void setJobName(String jobName)
Sets the name of the job that shall be enabled.

Parameters:
jobName - the name of the job that shall be enabled.

buildCiJobApiUrl

protected final String buildCiJobApiUrl(String url,
                                        String jobName,
                                        String apiMethod)
Build the job api url string.

Parameters:
url - the url to the system.
jobName - the name of the job.
apiMethod - the api method to call.
Returns:
the api string.


Copyright © 2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.