Class PromptObjectIdentifier
java.lang.Object
de.xima.fc.prompt.mgmt.service.PromptObjectIdentifier
- All Implemented Interfaces:
Serializable
The identifier of a prompt object, i.e. a prompt connection or a prompt query. A prompt object is identified uniquely
by this prompt object identifier that consists of the object's
scope and its unique UUID
within that scope. The scope itself can be the system scope, a tenant scope, or a project scope; and is identified by
its kind and an ID within that kind.- Since:
- 8.5.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static PromptObjectIdentifierof(PromptScope scope, UUID uuid) Creates a new prompt object identifier with the given assignee and UUID.static PromptObjectIdentifierCreates a new prompt object identifier for the given prompt connection data.static PromptObjectIdentifierofQueryData(PromptQueryData data) Creates a new prompt object identifier for the given prompt query data.scope()Gets the assignee of the prompt object.toString()Returns a machine-readable string representation of this prompt object identifier, that can be parsed back usingvalueOf(String).uuid()Gets the UUID of the prompt object.static PromptObjectIdentifierParses a prompt object identifier from its string representation, as returned bytoString().
-
Method Details
-
equals
-
hashCode
-
scope
-
toString
Returns a machine-readable string representation of this prompt object identifier, that can be parsed back usingvalueOf(String). -
uuid
-
of
Creates a new prompt object identifier with the given assignee and UUID.- Parameters:
scope- The scope to which the prompt object assigned.uuid- The UUID of the prompt object.- Returns:
- The prompt object identifier.
-
ofConnectionData
Creates a new prompt object identifier for the given prompt connection data.- Parameters:
data- The prompt connection data.- Returns:
- The prompt object identifier.
-
ofQueryData
Creates a new prompt object identifier for the given prompt query data.- Parameters:
data- The prompt query data.- Returns:
- The prompt object identifier.
-
valueOf
Parses a prompt object identifier from its string representation, as returned bytoString().- Parameters:
value- The string representation.- Returns:
- The prompt object identifier, or null if the value is null or blank.
- Throws:
IllegalArgumentException- If the value is not in the correct format.
-