Class AssetConverter

  • All Implemented Interfaces:
    edu.uiuc.ncsa.security.core.XMLConverter<Asset>
    Direct Known Subclasses:
    OA2AssetConverter

    public class AssetConverter
    extends edu.uiuc.ncsa.security.storage.data.MapConverter<Asset>
    A serializer that converts Assets to/from key/value pairs. This is used by every AssetStore and provides a consistent mechanism for these conversions.

    Created by Jeff Gaynor
    on 1/28/13 at 3:39 PM

    • Constructor Detail

      • AssetConverter

        public AssetConverter​(edu.uiuc.ncsa.security.storage.data.SerializationKeys keys,
                              edu.uiuc.ncsa.security.core.IdentifiableProvider<Asset> provider)
    • Method Detail

      • fromMap

        public Asset fromMap​(edu.uiuc.ncsa.security.storage.data.ConversionMap<String,​Object> map,
                             Asset asset)
        Overrides:
        fromMap in class edu.uiuc.ncsa.security.storage.data.MapConverter<Asset>
      • toMap

        public void toMap​(Asset asset,
                          edu.uiuc.ncsa.security.storage.data.ConversionMap<String,​Object> map)
        Overrides:
        toMap in class edu.uiuc.ncsa.security.storage.data.MapConverter<Asset>