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

com.centurylink.mdw.event.EventHandler Maven / Gradle / Ivy

There is a newer version: 6.1.39
Show newest version
/**
 * 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