|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.client.batch.AutoModify
public class AutoModify
Command-line version of the Batch Modify utility that's available in the admin GUI client. This utility processes an xml input file containing modify directives enabling mass updating of existing objects. It has six required arguments:
| Field Summary | |
|---|---|
static FedoraAPIAMTOM |
APIA
|
static FedoraAPIMMTOM |
APIM
|
| Constructor Summary | |
|---|---|
AutoModify(FedoraAPIAMTOM apia,
FedoraAPIMMTOM apim,
String protocol,
String host,
int port,
String context,
String user,
String pass)
Constructor for the class. |
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
|
static void |
modify(FedoraAPIMMTOM APIM,
Uploader UPLOADER,
FedoraAPIAMTOM APIA,
String directivesFilePath,
String logFilePath,
boolean isValidateOnly)
Process the modify directives. |
void |
modify(String directivesFilePath,
String logFilePath,
boolean isValidateOnly)
Processes the modify directives. |
static void |
showUsage(String errMessage)
Displays the command-line syntax. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static FedoraAPIAMTOM APIA
public static FedoraAPIMMTOM APIM
| Constructor Detail |
|---|
public AutoModify(FedoraAPIAMTOM apia,
FedoraAPIMMTOM apim,
String protocol,
String host,
int port,
String context,
String user,
String pass)
throws MalformedURLException,
javax.xml.rpc.ServiceException,
IOException
Constructor for the class.
apia - -
SOAP stub for APIA service.apim - -
SOAP stub for APIM service.host - -
Hostname of the Fedora server.port - -
Port number of the Fedora server.user - -
username of the Fedora server admin user.pass - -
password of the Fedora server admin user.
MalformedURLException - -
If the URL generated from host and port is invalid.
javax.xml.rpc.ServiceException - -
If unable to connect via SOAP to the Fedora API-M web service.
IOException - -
If an error occurs in creating an instance of the Uploader.| Method Detail |
|---|
public void modify(String directivesFilePath,
String logFilePath,
boolean isValidateOnly)
Processes the modify directives.
directivesFilePath - -
The absolute file path of the file containing the modify
directives.logFilePath - -
The absolute file path of the log file.isValidateOnly - -
Boolean flag; true indicates validate only; false indicates
process the directives file.
public static void modify(FedoraAPIMMTOM APIM,
Uploader UPLOADER,
FedoraAPIAMTOM APIA,
String directivesFilePath,
String logFilePath,
boolean isValidateOnly)
Process the modify directives.
APIM - -
An instance of FedoraAPIM.UPLOADER - -
An instance of the Uploader.directivesFilePath - -
The absolute file path of the file containing the modify
directives.APIA - -
An instance of FedoraAPIA.logFilePath - -
The absolute file path of the log file.isValidateOnly - -
Boolean flag; true indicates validate only; false indicates
process the directives file.public static void showUsage(String errMessage)
Displays the command-line syntax.
errMessage - -
The error message to be displayed.public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||