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>
,javax.inject.Provider<V>
- Direct Known Subclasses:
OA2AssetProvider
public class AssetProvider<V extends Asset> extends Object implements edu.uiuc.ncsa.security.core.IdentifiableProvider<V>
Provider (i.e. a factory) for creatingAsset
s.Created by Jeff Gaynor
on 1/29/13 at 3:45 PM
-
-
Constructor Summary
Constructors Constructor Description AssetProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
get()
Creates an new asset with a randomly assigned identifier.V
get(boolean createNewIdentifier)
Asset
get(edu.uiuc.ncsa.security.core.Identifier identifier)
Asset
get(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)
-
-