com.epam.reportportal.extension.AbstractRoleBasedCommand Maven / Gradle / Ivy
package com.epam.reportportal.extension;
import com.epam.ta.reportportal.entity.integration.Integration;
import java.util.Map;
/**
* @author Ivan Budayeu
*/
public abstract class AbstractRoleBasedCommand implements PluginCommand {
protected abstract void validateRole(Map params);
protected abstract T invokeCommand(Integration integration, Map params);
@Override
public T executeCommand(Integration integration, Map params) {
validateRole(params);
return invokeCommand(integration, params);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy