Package org.oa4mp.client.api.storage
Class AssetProvider<V extends Asset>
- java.lang.Object
-
- org.oa4mp.client.api.storage.AssetProvider<V>
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.IdentifiableProvider<V>,Serializable,javax.inject.Provider<V>
public class AssetProvider<V extends Asset> extends Object implements edu.uiuc.ncsa.security.core.IdentifiableProvider<V>
Provider (i.e. a factory) for creatingAssets.Created by Jeff Gaynor
on 1/29/13 at 3:45 PM- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssetProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vget()Creates an new asset with a randomly assigned identifier.Vget(boolean createNewIdentifier)Assetget(edu.uiuc.ncsa.security.core.Identifier identifier)Assetget(String identifier)Convenience method to return the asset if the identifier is a string rather than anIdentifier.
-
-
-
Method Detail
-
get
public V get(boolean createNewIdentifier)
-
get
public V get()
Creates an new asset with a randomly assigned identifier.
-
get
public Asset get(String identifier)
Convenience method to return the asset if the identifier is a string rather than anIdentifier.- Parameters:
identifier-- Returns:
-
get
public Asset get(edu.uiuc.ncsa.security.core.Identifier identifier)
-
-