class RuleServiceImpl implements RuleService {

	@Override
	public String createRule(final MultipartFile fileToUpload, final CreateUpdateRuleDetails ruleDetails, final String userId) throws PacManException {
		checkRuleTypeNotServerlessOrManaged(ruleDetails, fileToUpload);
		return addRuleInstance(fileToUpload, ruleDetails, userId);
	}

}