|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.datamodel.classifications.MCRClassificationEditor
public class MCRClassificationEditor
This class implements all methods for a edit, modify delete categories in classification and the classification itself
| Constructor Summary | |
|---|---|
MCRClassificationEditor()
|
|
| Method Summary | |
|---|---|
boolean |
createCategoryInClassification(Document indoc,
MCRCategoryID id)
Create an new category in the category path. |
boolean |
createNewClassification(Document indoc)
Create a new classification with the data from the editor dialogue. |
int |
deleteCategoryInClassification(String clid,
String categid)
Delete a category from a classification. |
boolean |
deleteClassification(String clid)
Delete a classification from the system. |
void |
deleteTempFile()
|
MCRCategory |
findCategory(MCRCategory classification,
MCRCategoryID ID)
Here come private methods |
boolean |
importClassification(boolean bUpdate,
String fileName)
Create or update a classification form import. |
boolean |
isLocked(String classid)
|
boolean |
modifyCategoryInClassification(Document indoc,
MCRCategoryID id)
Replace category data like label(s) and url. |
boolean |
modifyClassificationDescription(Document indoc,
String clid)
Change the description data of a classification. |
boolean |
moveCategoryInClassification(String categid,
String clid,
String way)
Move a category in a classification. |
boolean |
purgeAll()
|
boolean |
saveAll()
|
String |
setTempFile(String name,
org.apache.commons.fileupload.FileItem fi)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MCRClassificationEditor()
| Method Detail |
|---|
public boolean createCategoryInClassification(Document indoc,
MCRCategoryID id)
indoc - the output from the editor dialogueclid - the classification IDcategid - the category ID to add after it
public final boolean modifyCategoryInClassification(Document indoc,
MCRCategoryID id)
indoc - the output from the editor dialogueclid - the classification IDcategid - the category ID
public boolean isLocked(String classid)
public boolean importClassification(boolean bUpdate,
String fileName)
bUpdate - true if this operation should be a update, else falsefileName - the name of classification file
public final boolean createNewClassification(Document indoc)
indoc - the output from the editor dialogue
public final boolean modifyClassificationDescription(Document indoc,
String clid)
indoc - the output from the editor dialogueclid - the classification ID
public boolean moveCategoryInClassification(String categid,
String clid,
String way)
categid - the category IDclid - the classification IDway - the way to move
public boolean saveAll()
public boolean purgeAll()
public final int deleteCategoryInClassification(String clid,
String categid)
clid - the classification IDcategid - the category ID
public final boolean deleteClassification(String clid)
clid - the classification ID
public MCRCategory findCategory(MCRCategory classification,
MCRCategoryID ID)
public final void deleteTempFile()
public final String setTempFile(String name,
org.apache.commons.fileupload.FileItem fi)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||