|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.frontend.cli.MCRAbstractCommands
org.mycore.frontend.cli.MCRDerivateCommands
public class MCRDerivateCommands
Provides static methods that implement commands for the MyCoRe command line interface.
| Field Summary | |
|---|---|
static String |
DEFAULT_TRANSFORMER
Default transformer script |
| Fields inherited from class org.mycore.frontend.cli.MCRAbstractCommands |
|---|
command, CONFIG |
| Constructor Summary | |
|---|---|
MCRDerivateCommands()
The constructor. |
|
| Method Summary | |
|---|---|
static void |
delete(String ID)
Delete an MCRDerivate from the datastore. |
static void |
delete(String IDfrom,
String IDto)
Delete MCRDerivates form ID to ID from the datastore. |
static List<String> |
deleteAllDerivates()
deletes all MCRDerivate from the datastore. |
static void |
export(String ID,
String dirname,
String style)
Save an MCRDerivate to a file named MCRObjectID .xml in a directory with dirname and store the derivate objects in a directory under them named MCRObjectID. |
static void |
export(String fromID,
String toID,
String dirname,
String style)
Export any MCRDerivate's to files named MCRObjectID .xml in a directory and the objects under them named MCRObjectID. |
static List<String> |
exportAllDerivates(String dirname,
String style)
|
static List<String> |
loadFromDirectory(String directory)
Loads MCRDerivates from all XML files in a directory. |
static boolean |
loadFromFile(String file)
Loads an MCRDerivates from an XML file. |
static boolean |
loadFromFile(String file,
boolean importMode)
Loads an MCRDerivates from an XML file. |
static List<String> |
repairDerivateSearch()
The method start the repair the content search index for all derivates. |
static void |
repairDerivateSearchForID(String id)
The method start the repair the content search index for one. |
static void |
show(String ID,
String dirname)
Save an MCRDerivate to a file named MCRObjectID .xml in a directory with dirname and store the derivate objects in a directory under them named MCRObjectID. |
static List<String> |
synchronizeAllDerivates()
The method start the repair the content search index for all derivates. |
static void |
synchronizeDerivateForID(String id)
The method sychronize the xlink:label of the mycorederivate with the xlink:label of the derivate refernce of mycoreobject. |
static List<String> |
updateFromDirectory(String directory)
Updates MCRDerivates from all XML files in a directory. |
static boolean |
updateFromFile(String file)
Updates an MCRDerivates from an XML file. |
static boolean |
updateFromFile(String file,
boolean importMode)
Updates an MCRDerivates from an XML file. |
| Methods inherited from class org.mycore.frontend.cli.MCRAbstractCommands |
|---|
getPossibleCommands |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_TRANSFORMER
| Constructor Detail |
|---|
public MCRDerivateCommands()
| Method Detail |
|---|
public static List<String> deleteAllDerivates()
public static void delete(String ID)
ID - the ID of the MCRDerivate that should be deleted
public static void delete(String IDfrom,
String IDto)
IDfrom - the start ID for deleting the MCRDerivateIDto - the stop ID for deleting the MCRDerivatepublic static List<String> loadFromDirectory(String directory)
directory - the directory containing the XML filespublic static List<String> updateFromDirectory(String directory)
directory - the directory containing the XML filespublic static boolean loadFromFile(String file)
file - the location of the xml file
public static boolean loadFromFile(String file,
boolean importMode)
file - the location of the xml fileimportMode - if true, servdates are taken from xml filepublic static boolean updateFromFile(String file)
file - the location of the xml file
public static boolean updateFromFile(String file,
boolean importMode)
file - the location of the xml fileimportMode - if true, servdates are taken from xml file
public static void show(String ID,
String dirname)
ID - the ID of the MCRDerivate to be save.dirname - the dirname to store the derivate
public static void export(String ID,
String dirname,
String style)
ID - the ID of the MCRDerivate to be save.dirname - the dirname to store the derivatestyle - the type of the stylesheet
public static void export(String fromID,
String toID,
String dirname,
String style)
fromID - the ID of the MCRObject from be save.toID - the ID of the MCRObject to be save.dirname - the filename to store the objectstyle - the type of the stylesheet
public static List<String> exportAllDerivates(String dirname,
String style)
public static List<String> repairDerivateSearch()
public static void repairDerivateSearchForID(String id)
id - the MCRObjectID as Stringpublic static List<String> synchronizeAllDerivates()
public static void synchronizeDerivateForID(String id)
id - the MCRObjectID as String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||