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
ConstructorsModifierConstructorDescriptionprotectedDeletionInfo(String contentId, Collection<String> linkedContents, boolean hidden) Creates an instance of aDeletionInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhidden()Returns the value of thehiddenrecord component.Returns the value of thelinkedContentsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeletionInfo
Creates an instance of aDeletionInforecord class.- Parameters:
contentId- the value for thecontentIdrecord componentlinkedContents- the value for thelinkedContentsrecord componenthidden- the value for thehiddenrecord 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 thecontentIdrecord component.- Returns:
- the value of the
contentIdrecord component
-
linkedContents
Returns the value of thelinkedContentsrecord component.- Returns:
- the value of the
linkedContentsrecord component
-