Record Class CapabilitySnapshot
java.lang.Object
java.lang.Record
org.praxisplatform.uischema.capability.CapabilitySnapshot
public record CapabilitySnapshot(String resourceKey, String resourcePath, String group, Object resourceId, Map<String,Boolean> canonicalOperations, List<SurfaceCatalogItem> surfaces, List<ActionCatalogItem> actions)
extends Record
Snapshot unificado das capacidades canonicamente disponiveis para uma colecao ou instancia.
O campo group representa o grupo OpenAPI canonico resolvido a partir de
resourcePath. No estado atual da Fase 6, isso normalmente corresponde ao grupo
individual do recurso, e nao ao agrupamento documental agregado de @ApiGroup.
-
Constructor Summary
ConstructorsConstructorDescriptionCapabilitySnapshot(String resourceKey, String resourcePath, String group, Object resourceId, Map<String, Boolean> canonicalOperations, List<SurfaceCatalogItem> surfaces, List<ActionCatalogItem> actions) Creates an instance of aCapabilitySnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactions()Returns the value of theactionsrecord component.Returns the value of thecanonicalOperationsrecord 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.Returns the value of theresourceIdrecord component.Returns the value of theresourceKeyrecord component.Returns the value of theresourcePathrecord component.surfaces()Returns the value of thesurfacesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CapabilitySnapshot
public CapabilitySnapshot(String resourceKey, String resourcePath, String group, Object resourceId, Map<String, Boolean> canonicalOperations, List<SurfaceCatalogItem> surfaces, List<ActionCatalogItem> actions) Creates an instance of aCapabilitySnapshotrecord class.- Parameters:
resourceKey- the value for theresourceKeyrecord componentresourcePath- the value for theresourcePathrecord componentgroup- the value for thegrouprecord componentresourceId- the value for theresourceIdrecord componentcanonicalOperations- the value for thecanonicalOperationsrecord componentsurfaces- the value for thesurfacesrecord componentactions- the value for theactionsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
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
-
resourceId
Returns the value of theresourceIdrecord component.- Returns:
- the value of the
resourceIdrecord component
-
canonicalOperations
Returns the value of thecanonicalOperationsrecord component.- Returns:
- the value of the
canonicalOperationsrecord component
-
surfaces
Returns the value of thesurfacesrecord component.- Returns:
- the value of the
surfacesrecord component
-
actions
Returns the value of theactionsrecord component.- Returns:
- the value of the
actionsrecord component
-