public class SubModExportRange extends Module
Constructor and Description |
---|
SubModExportRange(java.lang.String[] args)
Constructor for this module.
|
SubModExportRange(java.lang.String outputpath,
int projectId,
int from,
int to,
PDRType type) |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Validates user input and requests objects from the repostitory and writes them to file.
|
protected Options |
getActionOptions(java.lang.String actionName)
Required for the command line help system.
|
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 SubModExportRange(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 SubModExportRange(java.lang.String outputpath, int projectId, int from, int to, PDRType type) throws java.lang.Exception
outputpath
- File the objects will be written to.projectId
- Project ID.from
- Beginnin of the ID range.to
- End of the ID range.type
- PDR type of the objects that shall be written.java.lang.Exception
- Error during repository or filesystem access.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 void execute() throws java.lang.Exception
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