Package org.ametys.plugins.userdirectory
Record Class AbstractDeleteUDContentComponent.DeletionInfo
java.lang.Object
java.lang.Record
org.ametys.plugins.userdirectory.AbstractDeleteUDContentComponent.DeletionInfo
- Record Components:
contentId
- the id to deletelinkedContents
- the list of content ids that will be deleted because of the deletion of this content- to hide the trash element
- Enclosing class:
AbstractDeleteUDContentComponent
protected static record AbstractDeleteUDContentComponent.DeletionInfo(String contentId, Collection<String> linkedContents, boolean hidden)
extends Record
Store information related to a deletion operation to perform
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DeletionInfo
(String contentId, Collection<String> linkedContents, boolean hidden) Creates an instance of aDeletionInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentId
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.boolean
hidden()
Returns the value of thehidden
record component.Returns the value of thelinkedContents
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
DeletionInfo
Creates an instance of aDeletionInfo
record class.- Parameters:
contentId
- the value for thecontentId
record componentlinkedContents
- the value for thelinkedContents
record componenthidden
- the value for thehidden
record 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
contentId
Returns the value of thecontentId
record component.- Returns:
- the value of the
contentId
record component
-
linkedContents
Returns the value of thelinkedContents
record component.- Returns:
- the value of the
linkedContents
record component
-