Interface UpdatingView<Q,O,ID>
- Type Parameters:
Q- QueryO- ObjectID- Object identifier
- All Superinterfaces:
View<Q,O>
Adds to View interface ability to add, update and remove objects
-
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(ProvidedKeyTemplate objectToAdd) Adds new key to key sourcebooleanadd(Collection<ProvidedKeyTemplate> objectsToAdd) Adds one or more objects to key source from key templatesbooleanremove(Collection<O> objectsToRemove) Removes one or more objects from key sourcebooleanRemoves object from key sourcebooleanremoveById(ID objectToRemove) Removes object from key source by identifierbooleanremoveByIds(Collection<ID> objectsToRemove) Removes one or more objects from key source by identifierbooleanupdate(Collection<AliasWithMeta> newMetadata) Updates metadata for specified objectsbooleanupdate(Collection<O> objectsToRemove, Collection<ProvidedKeyTemplate> objectsToAdd) updates content of source objectsMethods inherited from interface de.adorsys.keymanagement.api.view.View
all, retrieve, retrieve, uniqueResult, uniqueResult
-
Method Details
-
add
Adds new key to key source- Parameters:
objectToAdd- Key template of a key- Returns:
- true if key is added successfully
-
removeById
Removes object from key source by identifier- Parameters:
objectToRemove- Identifier of object to remove- Returns:
- true if object removed successfully
-
removeByIds
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
Removes object from key source- Parameters:
objectToRemove- Object to remove- Returns:
- true if object removed successfully
-
add
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
Removes one or more objects from key source- Parameters:
objectsToRemove- collection of object to remove- Returns:
- true if all objects removed successfully
-
update
updates content of source objects- Parameters:
objectsToRemove- collection of objects to removeobjectsToAdd- collection of objects to add- Returns:
- true if all objects are removed and added successfully
-
update
Updates metadata for specified objects- Parameters:
newMetadata- collection of new metadata with aliases- Returns:
- true if metadata for all objects updated correctly
-