Class CategoryDAOMock
java.lang.Object
org.mycore.frontend.classeditor.mocks.CategoryDAOMock
- All Implemented Interfaces:
MCRCategoryDAO
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddCategory
(MCRCategoryID parentID, MCRCategory category) addCategory
(MCRCategoryID parentID, MCRCategory category, int position) void
boolean
exist
(MCRCategoryID id) getCategoriesByLabel
(String lang, String text) getCategoriesByLabel
(MCRCategoryID baseID, String lang, String text) getCategory
(MCRCategoryID id, int childLevel) getIds()
long
long
getLastModified
(String root) getRootCategory
(MCRCategoryID baseID, int childLevel) boolean
void
init()
void
moveCategory
(MCRCategoryID id, MCRCategoryID newParentID) void
moveCategory
(MCRCategoryID id, MCRCategoryID newParentID, int index) removeLabel
(MCRCategoryID id, String lang) replaceCategory
(MCRCategory newCategory) setLabel
(MCRCategoryID id, MCRLabel label) setLabels
(MCRCategoryID id, SortedSet<MCRLabel> labels) setURI
(MCRCategoryID id, URI uri)
-
Constructor Details
-
CategoryDAOMock
public CategoryDAOMock()
-
-
Method Details
-
init
public void init() -
getIds
-
getCategs
-
addCategory
- Specified by:
addCategory
in interfaceMCRCategoryDAO
-
addCategory
- Specified by:
addCategory
in interfaceMCRCategoryDAO
-
deleteCategory
- Specified by:
deleteCategory
in interfaceMCRCategoryDAO
-
exist
- Specified by:
exist
in interfaceMCRCategoryDAO
-
getCategoriesByLabel
- Specified by:
getCategoriesByLabel
in interfaceMCRCategoryDAO
-
getCategory
- Specified by:
getCategory
in interfaceMCRCategoryDAO
-
getChildren
- Specified by:
getChildren
in interfaceMCRCategoryDAO
-
getParents
- Specified by:
getParents
in interfaceMCRCategoryDAO
-
getRootCategoryIDs
- Specified by:
getRootCategoryIDs
in interfaceMCRCategoryDAO
-
getRootCategories
- Specified by:
getRootCategories
in interfaceMCRCategoryDAO
-
getRootCategory
- Specified by:
getRootCategory
in interfaceMCRCategoryDAO
-
hasChildren
- Specified by:
hasChildren
in interfaceMCRCategoryDAO
-
moveCategory
- Specified by:
moveCategory
in interfaceMCRCategoryDAO
-
moveCategory
- Specified by:
moveCategory
in interfaceMCRCategoryDAO
-
removeLabel
- Specified by:
removeLabel
in interfaceMCRCategoryDAO
-
replaceCategory
public Collection<MCRCategory> replaceCategory(MCRCategory newCategory) throws IllegalArgumentException - Specified by:
replaceCategory
in interfaceMCRCategoryDAO
- Throws:
IllegalArgumentException
-
setLabel
- Specified by:
setLabel
in interfaceMCRCategoryDAO
-
setLabels
- Specified by:
setLabels
in interfaceMCRCategoryDAO
-
setURI
- Specified by:
setURI
in interfaceMCRCategoryDAO
-
getLastModified
public long getLastModified()- Specified by:
getLastModified
in interfaceMCRCategoryDAO
-
getCategoriesByLabel
- Specified by:
getCategoriesByLabel
in interfaceMCRCategoryDAO
-
getLastModified
- Specified by:
getLastModified
in interfaceMCRCategoryDAO
-