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 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 a ActionDefinition record class.
      Parameters:
      id - the value for the id record component
      resourceKey - the value for the resourceKey record component
      resourcePath - the value for the resourcePath record component
      group - the value for the group record component
      scope - the value for the scope record component
      title - the value for the title record component
      description - the value for the description record component
      operation - the value for the operation record component
      requestSchema - the value for the requestSchema record component
      responseSchema - the value for the responseSchema record component
      order - the value for the order record component
      successMessage - the value for the successMessage record component
      requiredAuthorities - the value for the requiredAuthorities record component
      allowedStates - the value for the allowedStates record component
      tags - the value for the tags record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • resourceKey

      public String resourceKey()
      Returns the value of the resourceKey record component.
      Returns:
      the value of the resourceKey record component
    • resourcePath

      public String resourcePath()
      Returns the value of the resourcePath record component.
      Returns:
      the value of the resourcePath record component
    • group

      public String group()
      Returns the value of the group record component.
      Returns:
      the value of the group record component
    • scope

      public ActionScope scope()
      Returns the value of the scope record component.
      Returns:
      the value of the scope record component
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • operation

      public CanonicalOperationRef operation()
      Returns the value of the operation record component.
      Returns:
      the value of the operation record component
    • requestSchema

      public CanonicalSchemaRef requestSchema()
      Returns the value of the requestSchema record component.
      Returns:
      the value of the requestSchema record component
    • responseSchema

      public CanonicalSchemaRef responseSchema()
      Returns the value of the responseSchema record component.
      Returns:
      the value of the responseSchema record component
    • order

      public int order()
      Returns the value of the order record component.
      Returns:
      the value of the order record component
    • successMessage

      public String successMessage()
      Returns the value of the successMessage record component.
      Returns:
      the value of the successMessage record component
    • requiredAuthorities

      public List<String> requiredAuthorities()
      Returns the value of the requiredAuthorities record component.
      Returns:
      the value of the requiredAuthorities record component
    • allowedStates

      public List<String> allowedStates()
      Returns the value of the allowedStates record component.
      Returns:
      the value of the allowedStates record component
    • tags

      public List<String> tags()
      Returns the value of the tags record component.
      Returns:
      the value of the tags record component