Record Class WorkspaceExplorerTrashDAO.TrashDocument
java.lang.Object
java.lang.Record
org.ametys.plugins.workspaces.documents.WorkspaceExplorerTrashDAO.TrashDocument
- Record Components:
ametysObject- the ametys objectdeleteDate- the delete datetrashElementId- the trash element idpath- the path of the deleted object, used to perform actions such as restore or delete and display it to user
- Enclosing class:
WorkspaceExplorerTrashDAO
public static record WorkspaceExplorerTrashDAO.TrashDocument(AmetysObject ametysObject, ZonedDateTime deleteDate, String trashElementId, String path)
extends Record
Record to hold trash document information
-
Constructor Summary
ConstructorsConstructorDescriptionTrashDocument(AmetysObject ametysObject, ZonedDateTime deleteDate, String trashElementId, String path) Creates an instance of aTrashDocumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theametysObjectrecord component.Returns the value of thedeleteDaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrashElementIdrecord component.
-
Constructor Details
-
TrashDocument
public TrashDocument(AmetysObject ametysObject, ZonedDateTime deleteDate, String trashElementId, String path) Creates an instance of aTrashDocumentrecord class.- Parameters:
ametysObject- the value for theametysObjectrecord componentdeleteDate- the value for thedeleteDaterecord componenttrashElementId- the value for thetrashElementIdrecord componentpath- the value for thepathrecord 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). -
ametysObject
Returns the value of theametysObjectrecord component.- Returns:
- the value of the
ametysObjectrecord component
-
deleteDate
Returns the value of thedeleteDaterecord component.- Returns:
- the value of the
deleteDaterecord component
-
trashElementId
Returns the value of thetrashElementIdrecord component.- Returns:
- the value of the
trashElementIdrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-