
com.centurylink.mdw.event.EventHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mdw-common Show documentation
Show all versions of mdw-common Show documentation
MDW is a microservices based workflow framework
/**
* Copyright (c) 2014 CenturyLink, Inc. All Rights Reserved.
*/
package com.centurylink.mdw.event;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.centurylink.mdw.model.Response;
import com.centurylink.mdw.model.request.Request;
import com.centurylink.mdw.model.user.Role;
import com.centurylink.mdw.model.user.Workgroup;
public interface EventHandler {
public Response handleEventMessage(Request msg, Object msgobj, Map metainfo)
throws EventHandlerException;
public default List getRoles() {
List defaultRoles = new ArrayList();
defaultRoles.add(Workgroup.SITE_ADMIN_GROUP);
defaultRoles.add(Role.PROCESS_EXECUTION);
return defaultRoles;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy