public class SubModExportProject extends Module
Constructor and Description |
---|
SubModExportProject(java.lang.String[] args)
Constructor for this module.
|
SubModExportProject(java.lang.String outputdirectory,
int projectId) |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Performs the actions provieded my the implementing module.
|
protected Options |
getActionOptions(java.lang.String actionName)
Required for the command line help system.
|
java.lang.String |
leadingZeros(int number,
int length)
Adds zeros in front of a number that is returned as a string.
|
static java.lang.String |
moduleDescription() |
protected void |
parseParams()
Method to handle parameter value parsing in subclasses.
|
boolean |
requiresConnection()
Tells the caller if this module requires connection to the repository.
|
getArgs, getCommandLine, getModuleName, getOptions, notifyListeners, notifyListeners, notifyListeners, notifyListeners, notifyListeners, parseArgs
public SubModExportProject(java.lang.String[] args) throws java.lang.Exception
args
- (String[]) The current command line user input.java.lang.Exception
- Missing parameters or other parameter parsing exceptions.public SubModExportProject(java.lang.String outputdirectory, int projectId) throws java.lang.Exception
outputdirectory
- (String) Path to the target directory.projectId
- (int) IF of the project that will be exported.java.lang.Exception
- Error during repository access or filesystem I/O.protected final void parseParams() throws java.lang.Exception
Module
parseParams
in class Module
java.lang.Exception
- Is thrown when command line values fail to pass the required validation.public final void execute() throws java.lang.Exception
Module
public final java.lang.String leadingZeros(int number, int length)
number
- (int) The number that will be displayed.length
- (int) The total length of the target string.protected final Options getActionOptions(java.lang.String actionName) throws java.lang.Exception
Module
getActionOptions
in class Module
actionName
- (String) Name of the submodule called in the command line.java.lang.Exception
- Error retrieving the requestes informations.public static java.lang.String moduleDescription()
public final boolean requiresConnection()
Module
requiresConnection
in class Module