Class AssetProvider<V extends Asset>

  • 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 creating Assets.

    Created by Jeff Gaynor
    on 1/29/13 at 3:45 PM

    • Constructor Detail

      • AssetProvider

        public AssetProvider()
    • Method Detail

      • get

        public V get​(boolean createNewIdentifier)
        Specified by:
        get in interface edu.uiuc.ncsa.security.core.IdentifiableProvider<V extends Asset>
      • get

        public V get()
        Creates an new asset with a randomly assigned identifier.
        Specified by:
        get in interface javax.inject.Provider<V extends Asset>
        Returns:
      • get

        public Asset get​(String identifier)
        Convenience method to return the asset if the identifier is a string rather than an Identifier.
        Parameters:
        identifier -
        Returns:
      • get

        public Asset get​(edu.uiuc.ncsa.security.core.Identifier identifier)