Class ContentMetadataMutations


  • public class ContentMetadataMutations
    extends Object
    Defines multiple mutations on metadata value which are applied atomically. This class isn't thread safe.
    • Constructor Detail

      • ContentMetadataMutations

        public ContentMetadataMutations()
        Constructs a DefaultMetadataMutations.
    • Method Detail

      • set

        public ContentMetadataMutations set​(String name,
                                            String value)
        Adds a mutation to set a metadata value.
        Parameters:
        name - The name of the metadata value.
        value - The value to be set.
        Returns:
        This instance, for convenience.
      • set

        public ContentMetadataMutations set​(String name,
                                            long value)
        Adds a mutation to set a metadata value.
        Parameters:
        name - The name of the metadata value.
        value - The value to be set.
        Returns:
        This instance, for convenience.
      • set

        public ContentMetadataMutations set​(String name,
                                            byte[] value)
        Adds a mutation to set a metadata value.
        Parameters:
        name - The name of the metadata value.
        value - The value to be set.
        Returns:
        This instance, for convenience.
      • remove

        public ContentMetadataMutations remove​(String name)
        Adds a mutation to remove a metadata value.
        Parameters:
        name - The name of the metadata value.
        Returns:
        This instance, for convenience.
      • getRemovedValues

        public List<String> getRemovedValues()
        Returns a list of names of metadata values to be removed.
      • getEditedValues

        public Map<String,​Object> getEditedValues()
        Returns a map of metadata name, value pairs to be set. Values are copied.