Package mc.core.domain.asset
Class AssetInsertResult
java.lang.Object
mc.core.system.util.misc.Pair<Asset,Collection>
mc.core.domain.asset.AssetInsertResult
- All Implemented Interfaces:
Serializable
Result of inserting 1
Asset or extracting a ZIP file to insert multiple assets.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAsset()longgetId()static AssetInsertResultof(Asset asset, Collection collection) Redirect to constructor.Methods inherited from class mc.core.system.util.misc.Pair
equals, hashCode, left, of, right, toString
-
Constructor Details
-
AssetInsertResult
- Parameters:
asset- Newly created asset ofnullin 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
- Returns:
- Newly created asset of
nullin case an insert was not performed directly. The latter occurs when extracting ZIP files and creating multiple assets.
-
getCollection
- Returns:
- Collection into which the created asset has been stored.
-
getEntity
- Returns:
- Newly inserted
AssetorCollectionwithin assets have been created.
-
getId
public long getId()- Returns:
- Id of newly inserted
AssetorCollectionwithin assets have been created.
-
of
Redirect to constructor.- See Also:
-