Record Class ContextRepository.ContextProjection
java.lang.Object
java.lang.Record
org.gcube.informationsystem.resourceregistry.contexts.ContextRepository.ContextProjection
- Enclosing class:
- ContextRepository
public static record ContextRepository.ContextProjection(org.gcube.informationsystem.resourceregistry.api.rest.MetadataPolicy metadataPolicy, boolean maskMetadata, boolean stripAdditionalProperties)
extends Record
Projection settings computed by the caller (typically the PEP).
This keeps repository logic independent from roles/auth semantics.
-
Constructor Summary
ConstructorsConstructorDescriptionContextProjection(org.gcube.informationsystem.resourceregistry.api.rest.MetadataPolicy metadataPolicy, boolean maskMetadata, boolean stripAdditionalProperties) Creates an instance of aContextProjectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of themaskMetadatarecord component.org.gcube.informationsystem.resourceregistry.api.rest.MetadataPolicyReturns the value of themetadataPolicyrecord component.booleanReturns the value of thestripAdditionalPropertiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ContextProjection
public ContextProjection(org.gcube.informationsystem.resourceregistry.api.rest.MetadataPolicy metadataPolicy, boolean maskMetadata, boolean stripAdditionalProperties) Creates an instance of aContextProjectionrecord class.- Parameters:
metadataPolicy- the value for themetadataPolicyrecord componentmaskMetadata- the value for themaskMetadatarecord componentstripAdditionalProperties- the value for thestripAdditionalPropertiesrecord 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 '=='. -
metadataPolicy
public org.gcube.informationsystem.resourceregistry.api.rest.MetadataPolicy metadataPolicy()Returns the value of themetadataPolicyrecord component.- Returns:
- the value of the
metadataPolicyrecord component
-
maskMetadata
public boolean maskMetadata()Returns the value of themaskMetadatarecord component.- Returns:
- the value of the
maskMetadatarecord component
-
stripAdditionalProperties
public boolean stripAdditionalProperties()Returns the value of thestripAdditionalPropertiesrecord component.- Returns:
- the value of the
stripAdditionalPropertiesrecord component
-