Class AssetObjectIdentifier

  • All Implemented Interfaces:
    Serializable

    public class AssetObjectIdentifier
    extends Object
    implements Serializable
    The identifier of a resource object, i.e. a resource or a template. A resource object is identified uniquely by this resource object identifier that consists of the object's scope and its unique UUID within that scope. The scope itself can be the tenant scope or a project scope; and is identified by its kind and an ID within that kind.
    Since:
    8.6.0
    Author:
    XIMA MEDIA GmbH
    See Also:
    Serialized Form
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • scope

        public AssetScope scope()
        Gets the assignee of the resource object.
        Returns:
        The assignee.
      • toString

        public String toString()
        Returns a machine-readable string representation of this resource object identifier, that can be parsed back using valueOf(String).
        Overrides:
        toString in class Object
        Returns:
        The string representation.
      • uuid

        public UUID uuid()
        Gets the UUID of the resource object, which is unique within the scope.
        Returns:
        The UUID.
      • of

        public static AssetObjectIdentifier of​(AssetScope scope,
                                               UUID uuid)
        Creates a new resource object identifier with the given assignee and UUID.
        Parameters:
        scope - The scope of the resource object.
        uuid - The UUID of the resource
        Returns:
        A new ResourceObjectIdentifier instance, or null if either scope or uuid is null.
      • valueOf

        public static AssetObjectIdentifier valueOf​(String value)
        Parses a string representation of a ResourceObjectIdentifier, as produced by toString(), back into an object instance.
        Parameters:
        value - The string representation to parse.
        Returns:
        The parsed ResourceObjectIdentifier, or
        Throws:
        IllegalArgumentException - if the input string is not in the expected format.
      • getUuid

        public UUID getUuid()