Package de.xima.fc.asset.mgmt.impex
Class AssetData
- java.lang.Object
-
- de.xima.fc.asset.mgmt.impex.AssetData
-
- All Implemented Interfaces:
Serializable
public class AssetData extends Object implements Serializable
Represents the data of an asset, i.e. the configuration of an asset without its content. This is used for import/export of assets, where the content is handled separately.- Since:
- 8.6.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAssetData.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AssetData.Builderbuilder()Creates a new builder forAssetData.static AssetData.Builderderive(AssetData data)Creates a new builder pre-configured with the data of the given instance.Stringdescription()Gets the internal description of the asset.Stringname()Gets the name of the asset.AssetScopescope()Gets the scope (assignee) of the asset.AssetTypetype()Gets the type of the asset.UUIDuuid()Gets the UUID of the asset.
-
-
-
Method Detail
-
type
public AssetType type()
Gets the type of the asset. The type defines the kind of asset, e.g. a resource or a template.- Returns:
- The type.
-
scope
public AssetScope scope()
Gets the scope (assignee) of the asset. Defines the scope to which the asset is assigned, e.g. the system or a tenant scope.- Returns:
- The scope.
-
description
public String description()
Gets the internal description of the asset. The description should only be visible to backend users who configure the asset, but not to end users.- Returns:
- The description of the asset.
-
name
public String name()
Gets the name of the asset. The name is unique with the scope to which the asset is assigned.- Returns:
- The name of the asset.
-
uuid
public UUID uuid()
Gets the UUID of the asset. The UUID is unique only within the assigned scope.- Returns:
- The UUID.
-
builder
public static AssetData.Builder builder()
Creates a new builder forAssetData.- Returns:
- A new builder.
-
derive
public static AssetData.Builder derive(AssetData data)
Creates a new builder pre-configured with the data of the given instance.- Parameters:
data- The instance to copy data from.- Returns:
- A new builder.
-
-