Class MetadataListValueDao

    • Constructor Detail

      • MetadataListValueDao

        public MetadataListValueDao()
    • Method Detail

      • getMetadataListValue

        public MetadataListValue getMetadataListValue​(String listValueId)
        Return the metadata list value with the specified OID
        Parameters:
        listValueId - the OID
        Returns:
        the matching metadata list value, or null if not found
      • getMetadataListValue

        public MetadataListValue getMetadataListValue​(String value,
                                                      String tagId)
        Return the metadata list value with a specific value for a given tag
        Parameters:
        value - the list value
        tagId - the OID of the metadata tag
        Returns:
        the matching metadata list value
      • getListValuesForTag

        public List<MetadataListValue> getListValuesForTag​(String tagId)
        Return all metadata list values for a metadata tag, ordered by sequence and value
        Parameters:
        tagId - the OID of the metadata tag
        Returns:
        the list of metadata list values defined for the tag
      • getValueTree

        public List<MetadataListValue> getValueTree​(String listValueId)
        Return a list of all metadata list values who are part of the list value tree with the given value as its root
        Parameters:
        listValueId - the OID of a metadata list value
        Returns:
        a list containing all metadata list values who are (direct or indirect) children of the value, as well as the value itself
      • deleteCascading

        public void deleteCascading​(String listValueId)
        Delete a metadata list value and all its descendants. This method executes a commit.
        Parameters:
        listValueId - the OID of the metadata list value
      • getChildValues

        public List<MetadataListValue> getChildValues​(String parentId)
        Return the list of metadata list values with a given parent, ordered by sequence and value
        Parameters:
        parentId - the OID of the parent list value
        Returns:
        the list of child metadata list values
      • getChildValues

        public List<MetadataListValue> getChildValues​(List<MetadataListValue> parentValues)
        Return the list of metadata list values whose parent is one of a set of metadata list values, ordered by sequence and value
        Parameters:
        parentValues - the parent metadata list value objects
        Returns:
        the list of child metadata list values
      • getRootValues

        public List<MetadataListValue> getRootValues​(String tagId)
        The list of metadata list values for a specific metadata tag who have no parent, ordered by sequence and value
        Parameters:
        tagId - the OID of the metadata tag
        Returns:
        the list of root list values