com.epam.reportportal.extension.AbstractRoleBasedCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plugin-api Show documentation
Show all versions of plugin-api Show documentation
EPAM Report portal. Plugin extension APIs
The newest version!
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);
}
}