Class PdcClassificationRepository

    • Constructor Detail

      • PdcClassificationRepository

        public PdcClassificationRepository()
    • Method Detail

      • findPredefinedClassificationByComponentInstanceId

        public PdcClassification findPredefinedClassificationByComponentInstanceId​(String instanceId)
        Finds the predefined classification on the PdC that is set for the whole specified component instance.
        Parameters:
        instanceId - the unique identifier of the component instance.
        Returns:
        the predefined classification that is set to the component instance, or null if no predefined classification was set for the component instance.
      • findPredefinedClassificationByNodeId

        public PdcClassification findPredefinedClassificationByNodeId​(String nodeId,
                                                                      String instanceId)
        Finds the predefined classification on the PdC that is set for the contents in the specified node of the specified component instance.
        Parameters:
        nodeId - the unique identifier of the node.
        instanceId - the unique identifier of the component instance to which the node belongs.
        Returns:
        either the predefined classification associated with the node or null if no predefined classification exists for that node.
      • findClassificationsByPdcAxisValues

        public List<PdcClassification> findClassificationsByPdcAxisValues​(List<PdcAxisValue> values)
        Finds all classifications on the PdC that have at least one position with the one or more of the specified axis values. If no such values exist, then an empty list is returned.
        Parameters:
        values - a list of PdC's axis values.
        Returns:
        a list of classifications having at least one of the specified values or an empty list.
      • deleteAllClassificationsByComponentInstanceId

        public void deleteAllClassificationsByComponentInstanceId​(String instanceId)
        Deletes all the classifications (both the predefined ones and the content's ones) that were set in the specified component instance. This method is generally used when a component instance is being deleted.
        Parameters:
        instanceId - the unique identifier of the component instance.