Record Class BasicResourceInformation
java.lang.Object
java.lang.Record
com.evolveum.midpoint.schema.processor.BasicResourceInformation
- All Implemented Interfaces:
Serializable
public record BasicResourceInformation(@Nullable String oid, @Nullable PolyStringType name, @Nullable ShadowCachingPolicyType cachingPolicy, boolean readCachedCapabilityPresent, @Nullable XMLGregorianCalendar cacheInvalidationTimestamp)
extends Record
implements Serializable
Provides basic information about
ResourceType for the purpose of refined resource object type/class definitions.
It is the information from the outside of `schemaHandling`. It is important also as a provider of default values e.g. for
caching.
The instance of this record should be shared throughout all the definitions for the resource to avoid memory bloat.
The instance is immutable. All of its components must be effectively immutable.
To be extended later, e.g., with capabilities.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBasicResourceInformation(@Nullable String oid, @Nullable PolyStringType name, @Nullable ShadowCachingPolicyType cachingPolicy, boolean readCachedCapabilityPresent, @Nullable XMLGregorianCalendar cacheInvalidationTimestamp) Creates an instance of aBasicResourceInformationrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable XMLGregorianCalendarReturns the value of thecacheInvalidationTimestamprecord component.@Nullable ShadowCachingPolicyTypeReturns the value of thecachingPolicyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable PolyStringTypename()Returns the value of thenamerecord component.static BasicResourceInformationof(@NotNull PrismObject<ResourceType> resource) static BasicResourceInformationof(@NotNull ResourceType resource) @Nullable Stringoid()Returns the value of theoidrecord component.booleanReturns the value of thereadCachedCapabilityPresentrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
BasicResourceInformation
public BasicResourceInformation(@Nullable @Nullable String oid, @Nullable @Nullable PolyStringType name, @Nullable @Nullable ShadowCachingPolicyType cachingPolicy, boolean readCachedCapabilityPresent, @Nullable @Nullable XMLGregorianCalendar cacheInvalidationTimestamp) Creates an instance of aBasicResourceInformationrecord class.- Parameters:
oid- the value for theoidrecord componentname- the value for thenamerecord componentcachingPolicy- the value for thecachingPolicyrecord componentreadCachedCapabilityPresent- the value for thereadCachedCapabilityPresentrecord componentcacheInvalidationTimestamp- the value for thecacheInvalidationTimestamprecord component
-
-
Method Details
-
of
-
of
-
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 '=='. -
oid
Returns the value of theoidrecord component.- Returns:
- the value of the
oidrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
cachingPolicy
Returns the value of thecachingPolicyrecord component.- Returns:
- the value of the
cachingPolicyrecord component
-
readCachedCapabilityPresent
public boolean readCachedCapabilityPresent()Returns the value of thereadCachedCapabilityPresentrecord component.- Returns:
- the value of the
readCachedCapabilityPresentrecord component
-
cacheInvalidationTimestamp
Returns the value of thecacheInvalidationTimestamprecord component.- Returns:
- the value of the
cacheInvalidationTimestamprecord component
-