com.github.rexsheng.springboot.faster.system.dict.domain.DictStateChangedEvent Maven / Gradle / Ivy
The newest version!
package com.github.rexsheng.springboot.faster.system.dict.domain;
import org.springframework.context.ApplicationEvent;
import org.springframework.util.Assert;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public class DictStateChangedEvent extends ApplicationEvent {
private DictState state;
public DictStateChangedEvent(Long dictId, DictState state) {
super(Arrays.asList(dictId));
Assert.notNull(state, "state must not be null");
this.state = state;
}
public DictStateChangedEvent(DictState state) {
super(Collections.emptyList());
Assert.notNull(state, "state must not be null");
this.state = state;
}
public DictStateChangedEvent(List dictIds, DictState state) {
super(dictIds);
Assert.notNull(state, "state must not be null");
this.state = state;
}
public DictState getState() {
return state;
}
public static enum DictState{
DELETE,ADD,STATUS_CHANGED
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy