Record Class File.PublicLinkToken
java.lang.Object
java.lang.Record
org.ametys.plugins.workspaces.documents.jcr.File.PublicLinkToken
- Record Components:
id- the token idcreationDate- the creation datefileId- the file id
- Enclosing class:
File
public static record File.PublicLinkToken(String id, ZonedDateTime creationDate, String fileId)
extends Record
Token class representing a composite object with id, creation date, and file id.
-
Constructor Summary
ConstructorsConstructorDescriptionPublicLinkToken(String id, ZonedDateTime creationDate, String fileId) Creates an instance of aPublicLinkTokenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreationDaterecord component.final booleanIndicates whether some other object is "equal to" this one.fileId()Returns the value of thefileIdrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PublicLinkToken
Creates an instance of aPublicLinkTokenrecord class.- Parameters:
id- the value for theidrecord componentcreationDate- the value for thecreationDaterecord componentfileId- the value for thefileIdrecord 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
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
creationDate
Returns the value of thecreationDaterecord component.- Returns:
- the value of the
creationDaterecord component
-
fileId
Returns the value of thefileIdrecord component.- Returns:
- the value of the
fileIdrecord component
-