Package de.xima.fc.asset.mgmt.impex
Class AssetObjectIdentifier
- java.lang.Object
-
- de.xima.fc.asset.mgmt.impex.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'sscopeand its uniqueUUIDwithin that scope. The scope itself can be the tenant scope or a project scope; and is identified by itskindand an ID within that kind.- Since:
- 8.6.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)AssetScopegetScope()UUIDgetUuid()inthashCode()static AssetObjectIdentifierof(AssetScope scope, UUID uuid)Creates a new resource object identifier with the given assignee and UUID.AssetScopescope()Gets the assignee of the resource object.StringtoString()Returns a machine-readable string representation of this resource object identifier, that can be parsed back usingvalueOf(String).UUIDuuid()Gets the UUID of the resource object, which is unique within the scope.static AssetObjectIdentifiervalueOf(String value)Parses a string representation of a ResourceObjectIdentifier, as produced bytoString(), back into an object instance.
-
-
-
Method Detail
-
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 usingvalueOf(String).
-
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 bytoString(), 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.
-
getScope
public AssetScope getScope()
-
getUuid
public UUID getUuid()
-
-