Record Class SurfaceAvailabilityContext
java.lang.Object
java.lang.Record
org.praxisplatform.uischema.surface.SurfaceAvailabilityContext
public record SurfaceAvailabilityContext(String resourceKey, String resourcePath, Object resourceId, String tenant, Locale locale, Principal principal, Set<String> authorities, ResourceStateSnapshot resourceState)
extends Record
Contexto canonico de avaliacao de disponibilidade de surfaces.
O contexto representa sinais compartilhados do request/catalogo atual: identidade do recurso, `resourceId` concreto quando houver, tenancy, locale, principal, authorities e snapshot opcional do estado do recurso.
-
Constructor Summary
ConstructorsConstructorDescriptionSurfaceAvailabilityContext(String resourceKey, String resourcePath, Object resourceId, String tenant, Locale locale, Principal principal, Set<String> authorities, ResourceStateSnapshot resourceState) Creates an instance of aSurfaceAvailabilityContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthoritiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.locale()Returns the value of thelocalerecord component.Returns the value of theprincipalrecord component.Returns the value of theresourceIdrecord component.Returns the value of theresourceKeyrecord component.Returns the value of theresourcePathrecord component.Returns the value of theresourceStaterecord component.tenant()Returns the value of thetenantrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SurfaceAvailabilityContext
public SurfaceAvailabilityContext(String resourceKey, String resourcePath, Object resourceId, String tenant, Locale locale, Principal principal, Set<String> authorities, ResourceStateSnapshot resourceState) Creates an instance of aSurfaceAvailabilityContextrecord class.- Parameters:
resourceKey- the value for theresourceKeyrecord componentresourcePath- the value for theresourcePathrecord componentresourceId- the value for theresourceIdrecord componenttenant- the value for thetenantrecord componentlocale- the value for thelocalerecord componentprincipal- the value for theprincipalrecord componentauthorities- the value for theauthoritiesrecord componentresourceState- the value for theresourceStaterecord 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
-
resourceId
Returns the value of theresourceIdrecord component.- Returns:
- the value of the
resourceIdrecord component
-
tenant
Returns the value of thetenantrecord component.- Returns:
- the value of the
tenantrecord component
-
locale
Returns the value of thelocalerecord component.- Returns:
- the value of the
localerecord component
-
principal
Returns the value of theprincipalrecord component.- Returns:
- the value of the
principalrecord component
-
authorities
Returns the value of theauthoritiesrecord component.- Returns:
- the value of the
authoritiesrecord component
-
resourceState
Returns the value of theresourceStaterecord component.- Returns:
- the value of the
resourceStaterecord component
-