|
||||||||||
| 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.MCRClassification2Commands
public class MCRClassification2Commands
Commands for the classification system.
| Field Summary | |
|---|---|
static String |
DEFAULT_TRANSFORMER
Default transformer script |
| Fields inherited from class org.mycore.frontend.cli.MCRAbstractCommands |
|---|
command, CONFIG |
| Constructor Summary | |
|---|---|
MCRClassification2Commands()
|
|
| Method Summary | |
|---|---|
static void |
countChildren(String classID)
Deletes a classification |
static void |
delete(String classID)
Deletes a classification |
static boolean |
export(String ID,
String dirname,
String style)
Save a MCRClassification. |
static boolean |
exportAll(String dirname,
String style)
Save all MCRClassifications. |
static void |
listAllClassifications()
List all IDs of all classifications stored in the database |
static void |
listClassification(String classid)
List a MCRClassification. |
static List<String> |
loadFromDirectory(String directory)
Loads MCRClassification from all XML files in a directory. |
static void |
loadFromFile(String filename)
Adds a classification. |
static List<String> |
updateFromDirectory(String directory)
Updates MCRClassification from all XML files in a directory. |
static void |
updateFromFile(String filename)
Replaces a classification with a new version |
| 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 MCRClassification2Commands()
| Method Detail |
|---|
public static void delete(String classID)
classID - MCRCategoryDAO.deleteCategory(MCRCategoryID)public static void countChildren(String classID)
classID - MCRCategoryDAO.deleteCategory(MCRCategoryID)
public static void loadFromFile(String filename)
throws URISyntaxException
filname - file in mcrclass xml format
URISyntaxExceptionMCRCategoryDAO.addCategory(MCRCategoryID, MCRCategory)
public static void updateFromFile(String filename)
throws URISyntaxException
filename - file in mcrclass xml format
URISyntaxExceptionMCRCategoryDAO.replaceCategory(MCRCategory)
public static List<String> loadFromDirectory(String directory)
throws MCRActiveLinkException
directory - the directory containing the XML files
MCRActiveLinkException
public static List<String> updateFromDirectory(String directory)
throws MCRActiveLinkException
directory - the directory containing the XML files
MCRActiveLinkException
public static boolean export(String ID,
String dirname,
String style)
throws Exception
ID - the ID of the MCRClassification to be save.filename - the filename to store the classificationstyle - the name part of the stylesheet like style
-classification.xsl
Exception
public static boolean exportAll(String dirname,
String style)
throws Exception
dirname - the directory name to store all classificationsstyle - the name part of the stylesheet like style
-classification.xsl
Exceptionpublic static void listAllClassifications()
public static void listClassification(String classid)
classid - the MCRObjectID of the classification
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||