edu.uiuc.ncsa.myproxy.oa4mp.client.storage
Interface AssetStore
- All Superinterfaces:
- Map<edu.uiuc.ncsa.security.core.Identifier,Asset>, edu.uiuc.ncsa.security.core.Store<Asset>
- All Known Implementing Classes:
- FSAssetStore, MemoryAssetStore, SQLAssetStore
public interface AssetStore
- extends edu.uiuc.ncsa.security.core.Store<Asset>
The top-level abstract class for storing Assets. This is a map that is keyed off an
Identifier generated by the client. The only requirement on the identifier is
it be a URI, otherwise it may be arbitrary.
Usage
A store is specified in the client configuration.
Lifecycle
Once the asset store is specified in the configuration, the system will instantitate it and manage it.
It is accessible from the ClientEnvironment.getAssetStore()
Note that if there is no asset store specified, then calls for the store return a null,
therefore implementors should check if there has been a store with the
ClientEnvironment.hasAssetStore() method first.
Created by Jeff Gaynor
on 1/23/13 at 4:42 PM
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Methods inherited from interface edu.uiuc.ncsa.security.core.Store |
create, register, save, update |
| Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
get
Asset get(String identifier)
- Simplifying calls. These should simply convert the string to an identifier.
- Parameters:
identifier -
- Returns:
save
void save(String identifier,
Asset v)
Copyright © 2013. All Rights Reserved.