All Downloads are FREE. Search and download functionalities are using the official Maven repository.

run.halo.app.search.event.HaloDocumentDeleteRequestEvent Maven / Gradle / Ivy

The newest version!
package run.halo.app.search.event;

import org.springframework.context.ApplicationEvent;
import org.springframework.lang.Nullable;
import run.halo.app.plugin.SharedEvent;

@SharedEvent
public class HaloDocumentDeleteRequestEvent extends ApplicationEvent {

    private final Iterable docIds;

    /**
     * Construct a new {@code HaloDocumentDeleteRequestEvent} instance.
     *
     * @param source The source of the event.
     * @param docIds If the document IDs are not provided, all documents will be deleted.
     */
    public HaloDocumentDeleteRequestEvent(Object source, @Nullable Iterable docIds) {
        super(source);
        this.docIds = docIds;
    }

    public Iterable getDocIds() {
        return docIds;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy