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

com.epam.reportportal.extension.AbstractRoleBasedCommand Maven / Gradle / Ivy

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);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy