Uses of Class
org.mycore.datamodel.classifications2.MCRCategoryID
Package
Description
Automatically maps classification categories that have been set manually
in object metadata to other classification categories
MyCoRe workflow components
Context sensitive mapping of actions
-
Uses of MCRCategoryID in org.mycore.datamodel.classifications2
Modifier and TypeFieldDescriptionstatic SingularAttribute<MCRCategoryID,
String> MCRCategoryID_.ID
static SingularAttribute<MCRCategoryID,
String> MCRCategoryID_.rootID
Modifier and TypeMethodDescriptionstatic MCRCategoryID
MCRCategoryID.fromString
(String categoryId) MCRCategory.getId()
static MCRCategoryID
Modifier and TypeMethodDescriptionMCRCategLinkService.countLinks
(MCRCategory category, boolean childrenOnly) Counts links to a collection of categories.MCRCategLinkService.countLinksForType
(MCRCategory category, String type, boolean childrenOnly) Counts links to a collection of categories.MCRCategLinkService.getLinksFromReference
(MCRCategLinkReference reference) Returns a list of linked categories.MCRCategoryDAO.getRootCategoryIDs()
Returns all category IDs that do not have a parent category.MCRCategLinkService.hasLinks
(MCRCategory category) Checks if a categories id refered by objects.Modifier and TypeMethodDescriptionMCRCategoryDAO.addCategory
(MCRCategoryID parentID, MCRCategory category) Adds a category as child of another category.MCRCategoryDAO.addCategory
(MCRCategoryID parentID, MCRCategory category, int position) Adds a category as child of another category.void
MCRCategoryDAO.deleteCategory
(MCRCategoryID id) Deletes a category with all child categories.boolean
MCRCategoryDAO.exist
(MCRCategoryID id) Tells if a given category exists.MCRCategoryDAO.getCategoriesByLabel
(MCRCategoryID baseID, String lang, String text) Retrieve all Categories tagged by a specific label in a specific lang.MCRCategoryDAO.getCategory
(MCRCategoryID id, int childLevel) Returns MCRCategory with this id and childLevel levels of subcategories.MCRCategoryDAO.getChildren
(MCRCategoryID id) Returns the list of child categories for the specified category.MCRCategLinkService.getLinksFromCategory
(MCRCategoryID id) Returns a list of linked Object IDs.MCRCategLinkService.getLinksFromCategoryForType
(MCRCategoryID id, String type) Returns a list of linked Object IDs restricted by the specified type.MCRCategoryDAO.getParents
(MCRCategoryID id) Returns the parent of the given category and its parent and so on.MCRCategoryDAO.getRootCategory
(MCRCategoryID baseID, int childLevel) Returns the root Category with ancestor axis of the specified category and childLevel levels of subcategories.boolean
MCRCategoryDAO.hasChildren
(MCRCategoryID id) Tells if a given category contains subcategories.boolean
MCRCategLinkService.isInCategory
(MCRCategLinkReference reference, MCRCategoryID id) Checks if a given reference is in a specific category.void
MCRCategoryDAO.moveCategory
(MCRCategoryID id, MCRCategoryID newParentID) Moves a Category from one subtree in a classification to a new parent.void
MCRCategoryDAO.moveCategory
(MCRCategoryID id, MCRCategoryID newParentID, int index) Moves a Category from one subtree in a classification to a new parent as theindex
th child.MCRCategoryDAO.removeLabel
(MCRCategoryID id, String lang) Removes a label from a Category.void
MCRCategory.setId
(MCRCategoryID id) MCRCategoryDAO.setLabel
(MCRCategoryID id, MCRLabel label) Sets or updates a label from a Category.MCRCategoryDAO.setLabels
(MCRCategoryID id, SortedSet<MCRLabel> labels) Sets a new set of labels from a Category.MCRCategoryDAO.setURI
(MCRCategoryID id, URI uri) Sets or updates the URI from a Category.Modifier and TypeMethodDescriptionvoid
MCRCategLinkService.setLinks
(MCRCategLinkReference objectReference, Collection<MCRCategoryID> categories) Add links between categories and Objects. -
Uses of MCRCategoryID in org.mycore.datamodel.classifications2.impl
Modifier and TypeMethodDescriptionMCRCategLinkServiceImpl.countLinks
(MCRCategory parent, boolean childrenOnly) MCRCategLinkServiceImpl.countLinksForType
(MCRCategory parent, String type, boolean childrenOnly) MCRCategLinkServiceImpl.getLinksFromReference
(MCRCategLinkReference reference) MCRCategoryDAOImpl.getRootCategoryIDs()
MCRCategLinkServiceImpl.hasLinks
(MCRCategory category) Modifier and TypeMethodDescriptionMCRCategoryDAOImpl.addCategory
(MCRCategoryID parentID, MCRCategory category) MCRCategoryDAOImpl.addCategory
(MCRCategoryID parentID, MCRCategory category, int position) MCREventedCategoryDAOImpl.addCategory
(MCRCategoryID parentID, MCRCategory category, int position) void
MCRCategoryDAOImpl.deleteCategory
(MCRCategoryID id) void
MCREventedCategoryDAOImpl.deleteCategory
(MCRCategoryID id) boolean
MCRCategoryDAOImpl.exist
(MCRCategoryID id) static MCRCategoryImpl
MCRCategoryDAOImpl.getByNaturalID
(EntityManager entityManager, MCRCategoryID id) returns database backed MCRCategoryImpl every change to the returned MCRCategory is reflected in the database.MCRCategoryDAOImpl.getCategoriesByLabel
(MCRCategoryID baseID, String lang, String text) MCRCategoryDAOImpl.getCategory
(MCRCategoryID id, int childLevel) MCRCategoryDAOImpl.getChildren
(MCRCategoryID cid) MCRCategLinkServiceImpl.getLinksFromCategory
(MCRCategoryID id) MCRCategLinkServiceImpl.getLinksFromCategoryForType
(MCRCategoryID id, String type) MCRCategoryDAOImpl.getParents
(MCRCategoryID id) MCRCategoryDAOImpl.getRootCategory
(MCRCategoryID baseID, int childLevel) boolean
MCRCategoryDAOImpl.hasChildren
(MCRCategoryID cid) boolean
MCRCategLinkServiceImpl.isInCategory
(MCRCategLinkReference reference, MCRCategoryID id) void
MCRCategoryDAOImpl.moveCategory
(MCRCategoryID id, MCRCategoryID newParentID) void
MCRCategoryDAOImpl.moveCategory
(MCRCategoryID id, MCRCategoryID newParentID, int index) void
MCREventedCategoryDAOImpl.moveCategory
(MCRCategoryID id, MCRCategoryID newParentID, int index) MCRCategoryDAOImpl.removeLabel
(MCRCategoryID id, String lang) MCREventedCategoryDAOImpl.removeLabel
(MCRCategoryID id, String lang) void
MCRAbstractCategoryImpl.setId
(MCRCategoryID id) MCRCategoryDAOImpl.setLabel
(MCRCategoryID id, MCRLabel label) MCREventedCategoryDAOImpl.setLabel
(MCRCategoryID id, MCRLabel label) MCRCategoryDAOImpl.setLabels
(MCRCategoryID id, SortedSet<MCRLabel> labels) MCREventedCategoryDAOImpl.setLabels
(MCRCategoryID id, SortedSet<MCRLabel> labels) MCRCategoryDAOImpl.setURI
(MCRCategoryID id, URI uri) Modifier and TypeMethodDescriptionvoid
MCRCategLinkServiceImpl.setLinks
(MCRCategLinkReference objectReference, Collection<MCRCategoryID> categories) ModifierConstructorDescriptionMCRCategoryDTO
(int internalID, URI uri, MCRCategoryID id, int leftValue, int rightValue, int level) MCRCategoryDTO
(int internalID, URI uri, MCRCategoryID id, int leftValue, int rightValue, int level, String lang, String text, String description) -
Uses of MCRCategoryID in org.mycore.datamodel.classifications2.mapper
Modifier and TypeMethodDescriptionprotected void
MCRCategoryMapper.addParentsToList
(MCRCategoryID childID, List<MCRCategoryID> list) protected abstract void
MCRCategoryMapperBase.addParentsToList
(MCRCategoryID childID, List<MCRCategoryID> list) protected String
MCRCategoryMapper.getMappingRule
(MCRCategoryID categoryID) protected abstract String
MCRCategoryMapperBase.getMappingRule
(MCRCategoryID categoryID) Modifier and TypeMethodDescriptionprotected void
MCRCategoryMapper.addParentsToList
(MCRCategoryID childID, List<MCRCategoryID> list) protected abstract void
MCRCategoryMapperBase.addParentsToList
(MCRCategoryID childID, List<MCRCategoryID> list) MCRCategoryMapperBase.map
(Collection<MCRCategoryID> input) -
Uses of MCRCategoryID in org.mycore.datamodel.classifications2.utils
Modifier and TypeMethodDescriptionstatic Document
MCRSkosTransformer.getSkosInRDFXML
(MCRCategory categ, MCRCategoryID current) return a classification tree as SKOS XML -
Uses of MCRCategoryID in org.mycore.datamodel.common
Modifier and TypeMethodDescriptiondefault MCRContent
MCRXMLClassificationManager.retrieveContent
(MCRCategoryID mcrid) Load a Classification from the StoreMCRXMLClassificationManager.retrieveContent
(MCRCategoryID mcrid, String revision) Load a Classification from the Storeprotected static void
MCRServiceFlagEventHandler.updateDerivateState
(MCRObjectID derID, MCRCategoryID state) -
Uses of MCRCategoryID in org.mycore.datamodel.metadata
Modifier and TypeMethodDescriptionfinal MCRCategoryID
MCRObjectService.getClassification
(int index) This method get a single classification from the classification list as a string.final MCRCategoryID
MCRObjectService.getState()
This method returns the status classificationModifier and TypeMethodDescriptionMCRFileMetadata.getCategories()
static List<MCRCategoryID>
MCRObjectUtils.getCategories
(MCRObject object) Returns a list ofMCRCategoryID
s which are used in the given object.MCRMetaEnrichedLinkID.getClassifications()
final ArrayList<MCRCategoryID>
MCRObjectService.getClassifications()
This method returns all classification values of any type.final ArrayList<MCRCategoryID>
MCRObjectService.getClassifications
(String type) This method returns all classification values of the specified type.Modifier and TypeMethodDescriptionfinal void
MCRObjectService.addClassification
(String type, MCRCategoryID value) This method adds a classification to the classification list.final void
MCRObjectService.addClassification
(MCRCategoryID value) This method adds a classification to the classification list.final void
MCRObjectService.replaceClassification
(int index, MCRCategoryID value) This method set a classification in the classification list.final void
MCRObjectService.setState
(MCRCategoryID state) This method sets the status classificationModifier and TypeMethodDescriptionvoid
MCRFileMetadata.setCategories
(Collection<MCRCategoryID> categories) void
MCREditableMetaEnrichedLinkID.setClassifications
(List<MCRCategoryID> list) ModifierConstructorDescriptionMCRMetaClassification
(String subtag, int inherted, String type, MCRCategoryID category) This is the constructor.ModifierConstructorDescriptionMCRFileMetadata
(String name, String urn, String handle, Collection<MCRCategoryID> categories) MCRFileMetadata
(String name, String urn, Collection<MCRCategoryID> categories) -
Uses of MCRCategoryID in org.mycore.frontend.classeditor
Modifier and TypeMethodDescriptionMCRCategoryIDTypeAdapter.deserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) Modifier and TypeMethodDescriptioncom.google.gson.JsonElement
MCRCategoryIDTypeAdapter.serialize
(MCRCategoryID id, Type typeOfSrc, com.google.gson.JsonSerializationContext context) -
Uses of MCRCategoryID in org.mycore.frontend.classeditor.json
Modifier and TypeMethodDescriptionvoid
MCRJSONCategoriesSaveList.add
(MCRCategory categ, MCRCategoryID parentID, int index, String status) void
MCRJSONCategory.setId
(MCRCategoryID id) void
MCRJSONCategory.setParentID
(MCRCategoryID parentID) -
Uses of MCRCategoryID in org.mycore.frontend.classeditor.resources
Modifier and TypeMethodDescriptionprotected MCRCategoryID
MCRClassificationEditorResource.newRootID()
Modifier and TypeMethodDescriptionprotected String
MCRClassificationEditorResource.buildJsonError
(String errorType, MCRCategoryID mcrCategoryID) -
Uses of MCRCategoryID in org.mycore.frontend.classeditor.utils
Modifier and TypeMethodDescriptionstatic HashMap<MCRCategoryID,
String> MCRCategUtils.getCategoryIDMap
(String json) Modifier and TypeMethodDescriptionstatic String
MCRCategUtils.maskCategID
(MCRCategoryID categoryID) static MCRCategory
MCRCategUtils.newCategory
(MCRCategoryID id, SortedSet<MCRLabel> labels, MCRCategoryID mcrCategoryID) -
Uses of MCRCategoryID in org.mycore.frontend.classeditor.wrapper
ModifierConstructorDescriptionMCRCategoryListWrapper
(List<MCRCategory> categList, Map<MCRCategoryID, Boolean> linkMap) -
Uses of MCRCategoryID in org.mycore.impex
Modifier and TypeMethodDescriptionprotected void
MCRTransferPackage.resolveChildrenAndLinks
(MCRObject object, LinkedHashMap<MCRObjectID, MCRObject> objectMap, Set<MCRCategoryID> categories) Fills the given objectMap with all children and links of the object. -
Uses of MCRCategoryID in org.mycore.mods
-
Uses of MCRCategoryID in org.mycore.mods.classification
Modifier and TypeMethodDescriptionstatic MCRCategoryID
MCRClassMapper.getCategoryID
(Element modsElement) static MCRCategoryID
MCRClassMapper.getCategoryID
(Element modsElement) protected MCRCategoryID
MCRAccessCondition.lookupCategoryID()
Modifier and TypeMethodDescriptionstatic void
MCRClassMapper.assignCategory
(Element modsElement, MCRCategoryID categID) static void
MCRClassMapper.assignCategory
(Element modsElement, MCRCategoryID categID) -
Uses of MCRCategoryID in org.mycore.ocfl
Modifier and TypeMethodDescriptionstatic void
MCROCFLPersistenceTransaction.addClassficationEvent
(MCRCategoryID id, char type) Add Classifications to get Updated/Deleted once the Transaction gets Committedprotected String
MCROCFLXMLClassificationManager.buildFilePath
(MCRCategoryID mcrid) Build file path from ID, use for root classifications only!void
MCROCFLXMLClassificationManager.create
(MCRCategoryID mcrCg, MCRContent xml) void
MCROCFLXMLClassificationManager.delete
(MCRCategoryID mcrid) protected String
MCROCFLXMLClassificationManager.getOCFLObjectID
(MCRCategoryID mcrid) MCROCFLXMLClassificationManager.retrieveContent
(MCRCategoryID mcrid, String revision) Load a Classification from the OCFL Store.void
MCROCFLXMLClassificationManager.update
(MCRCategoryID mcrCg, MCRContent xml) -
Uses of MCRCategoryID in org.mycore.restapi.v2
Modifier and TypeMethodDescriptionvoid
MCRRestDerivates.DerivateMetadata.setClassifications
(List<MCRCategoryID> classifications) -
Uses of MCRCategoryID in org.mycore.solr.classification
Modifier and TypeMethodDescriptionstatic Collection<MCRCategoryID>
MCRSolrClassificationUtil.fromString
(Collection<String> categoryIds) Returns a collection of category id instances.Modifier and TypeMethodDescriptionMCRSolrCategoryDAO.addCategory
(MCRCategoryID parentID, MCRCategory category, int position) void
MCRSolrCategoryDAO.deleteCategory
(MCRCategoryID id) static String
MCRSolrClassificationUtil.encodeCategoryId
(MCRCategoryID classId) Encodes the mycore category id to a solr usable one.void
MCRSolrCategoryDAO.moveCategory
(MCRCategoryID id, MCRCategoryID newParentID, int index) MCRSolrCategoryDAO.removeLabel
(MCRCategoryID id, String lang) MCRSolrCategoryDAO.setLabel
(MCRCategoryID id, MCRLabel label) MCRSolrCategoryDAO.setLabels
(MCRCategoryID id, SortedSet<MCRLabel> labels) MCRSolrCategoryDAO.setURI
(MCRCategoryID id, URI uri) protected void
MCRSolrCategoryDAO.solrDelete
(MCRCategoryID id, MCRCategory parent) protected void
MCRSolrCategoryDAO.solrMove
(MCRCategoryID id, MCRCategoryID newParentID, int index) Modifier and TypeMethodDescriptionstatic void
MCRSolrClassificationUtil.reindex
(Collection<MCRCategoryID> categoryIds) void
MCRSolrCategLinkService.setLinks
(MCRCategLinkReference objectReference, Collection<MCRCategoryID> categories) static List<org.apache.solr.common.SolrInputDocument>
MCRSolrClassificationUtil.toSolrDocument
(MCRCategLinkReference linkReference, Collection<MCRCategoryID> categories) Creates a new list ofSolrInputDocument
based on the given categories and the link.ModifierConstructorDescriptionMCRSolrCategoryLink
(MCRCategoryID categoryId, MCRCategLinkReference linkReference) Creates a new link object. -
Uses of MCRCategoryID in org.mycore.wfc
Modifier and TypeFieldDescriptionstatic final MCRCategoryID
MCRConstants.COLLECTION_CLASS_ID
static final MCRCategoryID
MCRConstants.STATUS_CLASS_ID
-
Uses of MCRCategoryID in org.mycore.wfc.actionmapping
ModifierConstructorDescriptionMCRCategoryCondition
(String fieldName, MCRCategoryID mcrCategoryID, boolean not)