ItemType - type of item stored and managedpublic interface PersistenceManager<ItemType> extends IdentifiedComponent
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(ItemType item)
Deprecated.
Determines if an item exists within the persistence store.
|
boolean |
contains(String id)
Deprecated.
Determines if an item with the given ID is exists within the persistence store.
|
ItemType |
get(String id)
Deprecated.
Gets the item associated with the given ID.
|
ItemType |
persist(String id,
ItemType item)
Deprecated.
Persists an item to the persistence store.
|
ItemType |
remove(ItemType item)
Deprecated.
Removes an item from the persistence store.
|
ItemType |
remove(String id)
Deprecated.
Removes an item with the given ID from the persistence store.
|
getIdboolean 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(String, 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–2018 Shibboleth Consortium. All rights reserved.