
com.hpe.dna.common.mongodb.notifier.EntityChangedEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common Show documentation
Show all versions of common Show documentation
Common Library used in HPE DnA Project
The newest version!
package com.hpe.dna.common.mongodb.notifier;
import com.hpe.dna.common.mongodb.Entity;
import java.util.ArrayList;
import java.util.List;
/**
* @author [email protected]
*/
public class EntityChangedEvent {
public enum EEventType {CREATED, BULK_CREATED, DELETED, UPDATED}
private EEventType eventType;
private Class extends Entity> entityType;
private List entityIds;
private List extends Entity> entitiesDeleted;
public EntityChangedEvent(EEventType eventType, Class extends Entity> entityType, List entityIds) {
this.entityIds = entityIds;
this.entityType = entityType;
this.eventType = eventType;
this.entitiesDeleted = new ArrayList<>();
}
public void setEntityType(Class extends Entity> entityType) {
this.entityType = entityType;
}
public Class extends Entity> getEntityType() {
return entityType;
}
public void setEntityIds(List entityIds) {
this.entityIds = entityIds;
}
public List getEntityIds() {
return entityIds;
}
public EEventType getEventType() {
return eventType;
}
public void setEventType(EEventType eventType) {
this.eventType = eventType;
}
public List extends Entity> getEntitiesDeleted() {
return entitiesDeleted;
}
public void setEntitiesDeleted(List extends Entity> entitiesDeleted) {
this.entitiesDeleted = entitiesDeleted;
}
@Override
public String toString() {
return "EntityChangedEvent{" +
"eventType=" + eventType +
", entityType=" + entityType +
", entityIds=" + entityIds +
", entitiesDeleted=" + entitiesDeleted +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy