Package org.apereo.cas.ticket.registry
Record Class RedisTicketDocument
java.lang.Object
java.lang.Record
org.apereo.cas.ticket.registry.RedisTicketDocument
- All Implemented Interfaces:
Serializable
public record RedisTicketDocument(String json, String ticketId, String type, String principal, String prefix, String service, String attributes)
extends Record
implements Serializable
This is
RedisTicketDocument.- Since:
- 5.1.0
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringField name to hold the principal/authentication attribute names.static final StringField name to hold ticket id.static final StringField name to hold ticket json data.static final StringField name to hold ticket prefix.static final StringField name to hold the principal id.static final StringField name to hold the service/application URL, if any.static final StringField name to hold ticket type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.builder()final booleanIndicates whether some other object is "equal to" this one.static RedisTicketDocumentFrom document map to redis document.final inthashCode()Returns a hash code value for this object.json()Returns the value of thejsonrecord component.prefix()Returns the value of theprefixrecord component.Returns the value of theprincipalrecord component.service()Returns the value of theservicerecord component.ticketId()Returns the value of theticketIdrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
FIELD_NAME_JSON
Field name to hold ticket json data.- See Also:
-
FIELD_NAME_TYPE
Field name to hold ticket type.- See Also:
-
FIELD_NAME_ID
Field name to hold ticket id.- See Also:
-
FIELD_NAME_PREFIX
Field name to hold ticket prefix.- See Also:
-
FIELD_NAME_PRINCIPAL
Field name to hold the principal id.- See Also:
-
FIELD_NAME_SERVICE
Field name to hold the service/application URL, if any.- See Also:
-
FIELD_NAME_ATTRIBUTES
Field name to hold the principal/authentication attribute names.- See Also:
-
-
Constructor Details
-
RedisTicketDocument
public RedisTicketDocument(String json, String ticketId, String type, String principal, String prefix, String service, String attributes) Creates an instance of aRedisTicketDocumentrecord class.- Parameters:
json- the value for thejsonrecord componentticketId- the value for theticketIdrecord componenttype- the value for thetyperecord componentprincipal- the value for theprincipalrecord componentprefix- the value for theprefixrecord componentservice- the value for theservicerecord componentattributes- the value for theattributesrecord component
-
-
Method Details
-
from
From document map to redis document.- Parameters:
document- the document- Returns:
- the redis ticket document
-
builder
-
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). -
json
Returns the value of thejsonrecord component.- Returns:
- the value of the
jsonrecord component
-
ticketId
Returns the value of theticketIdrecord component.- Returns:
- the value of the
ticketIdrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
principal
Returns the value of theprincipalrecord component.- Returns:
- the value of the
principalrecord component
-
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
service
Returns the value of theservicerecord component.- Returns:
- the value of the
servicerecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-