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
ConstructorDescriptionBasicResourceInformation
(@Nullable String oid, @Nullable PolyStringType name, @Nullable ShadowCachingPolicyType cachingPolicy, boolean readCachedCapabilityPresent, @Nullable XMLGregorianCalendar cacheInvalidationTimestamp) Creates an instance of aBasicResourceInformation
record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable XMLGregorianCalendar
Returns the value of thecacheInvalidationTimestamp
record component.@Nullable ShadowCachingPolicyType
Returns the value of thecachingPolicy
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@Nullable PolyStringType
name()
Returns the value of thename
record component.static BasicResourceInformation
of
(@NotNull PrismObject<ResourceType> resource) static BasicResourceInformation
of
(@NotNull ResourceType resource) @Nullable String
oid()
Returns the value of theoid
record component.boolean
Returns the value of thereadCachedCapabilityPresent
record 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 aBasicResourceInformation
record class.- Parameters:
oid
- the value for theoid
record componentname
- the value for thename
record componentcachingPolicy
- the value for thecachingPolicy
record componentreadCachedCapabilityPresent
- the value for thereadCachedCapabilityPresent
record componentcacheInvalidationTimestamp
- the value for thecacheInvalidationTimestamp
record 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 theoid
record component.- Returns:
- the value of the
oid
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
cachingPolicy
Returns the value of thecachingPolicy
record component.- Returns:
- the value of the
cachingPolicy
record component
-
readCachedCapabilityPresent
public boolean readCachedCapabilityPresent()Returns the value of thereadCachedCapabilityPresent
record component.- Returns:
- the value of the
readCachedCapabilityPresent
record component
-
cacheInvalidationTimestamp
Returns the value of thecacheInvalidationTimestamp
record component.- Returns:
- the value of the
cacheInvalidationTimestamp
record component
-