ItemType - type of item stored and managedpublic interface PersistenceManager<ItemType>
extends net.shibboleth.utilities.java.support.component.IdentifiedComponent
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(ItemType item)
Determines if an item exists within the persistence store.
|
boolean |
contains(String id)
Determines if an item with the given ID is exists within the persistence store.
|
ItemType |
get(String id)
Gets the item associated with the given ID.
|
ItemType |
persist(String id,
ItemType item)
Persists an item to the persistence store.
|
ItemType |
remove(ItemType item)
Removes an item from the persistence store.
|
ItemType |
remove(String id)
Removes an item with the given ID from the persistence store.
|
boolean contains(String id)
id - ID of the item, may be null or emptyboolean contains(ItemType item)
item - the item to check to see if it exists within the persistence storeItemType get(String id)
id - ID of the item, may be null or emptyItemType persist(String id, ItemType item)
get(String) or #persist(Object).
Note, the item returned from this method is not necessarily the same as the one provided as an argument. A given
implementation of this interface may return a different object or update the provided object in some way during
this method call.id - the ID of the item to be persisteditem - item to be persisted, maybe nullItemType remove(String id)
id - ID of the item, may be null or emptyCopyright © 1999–2014. All rights reserved.