Class 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
    • 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.
      • 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.