Record Class ActionDefinition
java.lang.Object
java.lang.Record
org.praxisplatform.uischema.action.ActionDefinition
public record ActionDefinition(String id, String resourceKey, String resourcePath, String group, ActionScope scope, String title, String description, CanonicalOperationRef operation, CanonicalSchemaRef requestSchema, CanonicalSchemaRef responseSchema, int order, String successMessage, List<String> requiredAuthorities, List<String> allowedStates, List<String> tags)
extends Record
Definicao estavel de action derivada de endpoint real anotado com
@WorkflowAction.-
Constructor Summary
ConstructorsConstructorDescriptionActionDefinition(String id, String resourceKey, String resourcePath, String group, ActionScope scope, String title, String description, CanonicalOperationRef operation, CanonicalSchemaRef requestSchema, CanonicalSchemaRef responseSchema, int order, String successMessage, List<String> requiredAuthorities, List<String> allowedStates, List<String> tags) Creates an instance of aActionDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedStatesrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theoperationrecord component.intorder()Returns the value of theorderrecord component.Returns the value of therequestSchemarecord component.Returns the value of therequiredAuthoritiesrecord component.Returns the value of theresourceKeyrecord component.Returns the value of theresourcePathrecord component.Returns the value of theresponseSchemarecord component.scope()Returns the value of thescoperecord component.Returns the value of thesuccessMessagerecord component.tags()Returns the value of thetagsrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActionDefinition
public ActionDefinition(String id, String resourceKey, String resourcePath, String group, ActionScope scope, String title, String description, CanonicalOperationRef operation, CanonicalSchemaRef requestSchema, CanonicalSchemaRef responseSchema, int order, String successMessage, List<String> requiredAuthorities, List<String> allowedStates, List<String> tags) Creates an instance of aActionDefinitionrecord class.- Parameters:
id- the value for theidrecord componentresourceKey- the value for theresourceKeyrecord componentresourcePath- the value for theresourcePathrecord componentgroup- the value for thegrouprecord componentscope- the value for thescoperecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentoperation- the value for theoperationrecord componentrequestSchema- the value for therequestSchemarecord componentresponseSchema- the value for theresponseSchemarecord componentorder- the value for theorderrecord componentsuccessMessage- the value for thesuccessMessagerecord componentrequiredAuthorities- the value for therequiredAuthoritiesrecord componentallowedStates- the value for theallowedStatesrecord componenttags- the value for thetagsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
resourceKey
Returns the value of theresourceKeyrecord component.- Returns:
- the value of the
resourceKeyrecord component
-
resourcePath
Returns the value of theresourcePathrecord component.- Returns:
- the value of the
resourcePathrecord component
-
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-
requestSchema
Returns the value of therequestSchemarecord component.- Returns:
- the value of the
requestSchemarecord component
-
responseSchema
Returns the value of theresponseSchemarecord component.- Returns:
- the value of the
responseSchemarecord component
-
order
public int order()Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-
successMessage
Returns the value of thesuccessMessagerecord component.- Returns:
- the value of the
successMessagerecord component
-
requiredAuthorities
Returns the value of therequiredAuthoritiesrecord component.- Returns:
- the value of the
requiredAuthoritiesrecord component
-
allowedStates
Returns the value of theallowedStatesrecord component.- Returns:
- the value of the
allowedStatesrecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-