Class AssetInsertResult

java.lang.Object
mc.core.system.util.misc.Pair<Asset,Collection>
mc.core.domain.asset.AssetInsertResult
All Implemented Interfaces:
Serializable

public class AssetInsertResult extends mc.core.system.util.misc.Pair<Asset,Collection>
Result of inserting 1 Asset or extracting a ZIP file to insert multiple assets.
See Also:
  • Constructor Details

    • AssetInsertResult

      public AssetInsertResult(Asset asset, Collection collection)
      Parameters:
      asset - Newly created asset of null in case an insert was not performed directly. The latter occurs when extracting ZIP files and creating multiple assets.
      collection - Collection into which the created asset has been stored.
  • Method Details

    • getAsset

      public Asset getAsset()
      Returns:
      Newly created asset of null in case an insert was not performed directly. The latter occurs when extracting ZIP files and creating multiple assets.
    • getCollection

      public Collection getCollection()
      Returns:
      Collection into which the created asset has been stored.
    • getEntity

      public ComplexEntity getEntity()
      Returns:
      Newly inserted Asset or Collection within assets have been created.
    • getId

      public long getId()
      Returns:
      Id of newly inserted Asset or Collection within assets have been created.
    • of

      public static AssetInsertResult of(Asset asset, Collection collection)
      Redirect to constructor.
      See Also: