Record Class PlatformIdentityInfo
java.lang.Object
java.lang.Record
ai.timefold.solver.tools.maven.client.PlatformIdentityInfo
public record PlatformIdentityInfo(String user, Set<String> scopes, Set<String> namespaces, Set<UUID> tenants, ConfigurationInfo config)
extends Record
The identity behind the personal access token, as reported by the platform's
aboutme endpoint. The namespaces
the token is associated with are being migrated by Timefold Platform from accountIds to namespaces,
so both field names are accepted and either one may be missing from the response.-
Constructor Summary
ConstructorsConstructorDescriptionPlatformIdentityInfo(String user, Set<String> scopes, Set<String> namespaces, Set<UUID> tenants, ConfigurationInfo config) Creates an instance of aPlatformIdentityInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionconfig()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanhasAccessToNamespace(String namespace) final inthashCode()Returns a hash code value for this object.booleanReturns the value of thenamespacesrecord component.scopes()Returns the value of thescopesrecord component.tenants()Returns the value of thetenantsrecord component.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord component.
-
Constructor Details
-
PlatformIdentityInfo
public PlatformIdentityInfo(String user, Set<String> scopes, Set<String> namespaces, Set<UUID> tenants, ConfigurationInfo config) Creates an instance of aPlatformIdentityInforecord class.- Parameters:
user- the value for theuserrecord componentscopes- the value for thescopesrecord componentnamespaces- the value for thenamespacesrecord componenttenants- the value for thetenantsrecord componentconfig- the value for theconfigrecord component
-
-
Method Details
-
hasPushAccessRights
public boolean hasPushAccessRights() -
hasAccessToNamespace
-
toString
-
hashCode
-
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). -
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
scopes
-
namespaces
-
tenants
-
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-