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

net.n2oapp.framework.api.event.MetadataChangedEvent Maven / Gradle / Ivy

There is a newer version: 7.28.1
Show newest version
package net.n2oapp.framework.api.event;

import net.n2oapp.framework.api.metadata.SourceMetadata;

/**
 * Событие, когда метаданная изменилась
 */
public class MetadataChangedEvent extends N2oEvent {
    private boolean all = false;
    private String sourceId;
    private Class baseSourceClass;

    /**
     * Конструктор события изменения всех метаданных
     */
    public MetadataChangedEvent(Object source) {
        super(source);
        this.all = true;
    }

    /**
     * Конструктор события изменения одной метаданной
     */
    public MetadataChangedEvent(Object source, String sourceId, Class baseSourceClass) {
        super(source);
        this.sourceId = sourceId;
        this.baseSourceClass = baseSourceClass;
    }

    public String getSourceId() {
        return sourceId;
    }

    public Class getBaseSourceClass() {
        return baseSourceClass;
    }

    public boolean isAll() {
        return all;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy