Interface UpdatingView<Q,O,ID>

Type Parameters:
Q - Query
O - Object
ID - Object identifier
All Superinterfaces:
View<Q,O>
All Known Subinterfaces:
AliasView<Q>, EntryView<Q>

public interface UpdatingView<Q,O,ID> extends View<Q,O>
Adds to View interface ability to add, update and remove objects
  • Method Details

    • add

      boolean add(ProvidedKeyTemplate objectToAdd)
      Adds new key to key source
      Parameters:
      objectToAdd - Key template of a key
      Returns:
      true if key is added successfully
    • removeById

      boolean removeById(ID objectToRemove)
      Removes object from key source by identifier
      Parameters:
      objectToRemove - Identifier of object to remove
      Returns:
      true if object removed successfully
    • removeByIds

      boolean removeByIds(Collection<ID> objectsToRemove)
      Removes one or more objects from key source by identifier
      Parameters:
      objectsToRemove - collection of object identifiers to remove
      Returns:
      true if all objects removed successfully
    • remove

      boolean remove(O objectToRemove)
      Removes object from key source
      Parameters:
      objectToRemove - Object to remove
      Returns:
      true if object removed successfully
    • add

      boolean add(Collection<ProvidedKeyTemplate> objectsToAdd)
      Adds one or more objects to key source from key templates
      Parameters:
      objectsToAdd - collection of key templates
      Returns:
      true if keys are added successfully
    • remove

      boolean remove(Collection<O> objectsToRemove)
      Removes one or more objects from key source
      Parameters:
      objectsToRemove - collection of object to remove
      Returns:
      true if all objects removed successfully
    • update

      boolean update(Collection<O> objectsToRemove, Collection<ProvidedKeyTemplate> objectsToAdd)
      updates content of source objects
      Parameters:
      objectsToRemove - collection of objects to remove
      objectsToAdd - collection of objects to add
      Returns:
      true if all objects are removed and added successfully
    • update

      boolean update(Collection<AliasWithMeta> newMetadata)
      Updates metadata for specified objects
      Parameters:
      newMetadata - collection of new metadata with aliases
      Returns:
      true if metadata for all objects updated correctly