Search in sources :

Example 11 with ApiPlanBean

use of io.apiman.manager.api.beans.apis.ApiPlanBean in project apiman by apiman.

the class OrganizationResourceImpl method createApiVersionInternal.

/**
 * Creates an API version.
 * @param bean
 * @param api
 * @param gateway
 * @throws Exception
 * @throws StorageException
 */
protected ApiVersionBean createApiVersionInternal(NewApiVersionBean bean, ApiBean api, GatewaySummaryBean gateway) throws Exception, StorageException {
    if (!BeanUtils.isValidVersion(bean.getVersion())) {
        // $NON-NLS-1$
        throw new StorageException("Invalid/illegal API version: " + bean.getVersion());
    }
    ApiVersionBean newVersion = new ApiVersionBean();
    newVersion.setVersion(bean.getVersion());
    newVersion.setCreatedBy(securityContext.getCurrentUser());
    newVersion.setCreatedOn(new Date());
    newVersion.setModifiedBy(securityContext.getCurrentUser());
    newVersion.setModifiedOn(new Date());
    newVersion.setStatus(ApiStatus.Created);
    newVersion.setApi(api);
    newVersion.setEndpoint(bean.getEndpoint());
    newVersion.setEndpointType(bean.getEndpointType());
    newVersion.setEndpointContentType(bean.getEndpointContentType());
    newVersion.setDefinitionUrl(bean.getDefinitionUrl());
    if (bean.getPublicAPI() != null) {
        newVersion.setPublicAPI(bean.getPublicAPI());
    }
    if (bean.getParsePayload() != null) {
        newVersion.setParsePayload(bean.getParsePayload());
    }
    if (bean.getDisableKeysStrip() != null) {
        newVersion.setDisableKeysStrip(bean.getDisableKeysStrip());
    }
    if (bean.getPlans() != null) {
        newVersion.setPlans(bean.getPlans());
    }
    if (bean.getDefinitionType() != null) {
        newVersion.setDefinitionType(bean.getDefinitionType());
    } else {
        newVersion.setDefinitionType(ApiDefinitionType.None);
    }
    if (gateway != null && newVersion.getGateways() == null) {
        newVersion.setGateways(new HashSet<>());
        ApiGatewayBean sgb = new ApiGatewayBean();
        sgb.setGatewayId(gateway.getId());
        newVersion.getGateways().add(sgb);
    }
    if (apiValidator.isReady(newVersion)) {
        newVersion.setStatus(ApiStatus.Ready);
    } else {
        newVersion.setStatus(ApiStatus.Created);
    }
    // Ensure all of the plans are in the right status (locked)
    Set<ApiPlanBean> plans = newVersion.getPlans();
    if (plans != null) {
        for (ApiPlanBean splanBean : plans) {
            String orgId = newVersion.getApi().getOrganization().getId();
            PlanVersionBean pvb = storage.getPlanVersion(orgId, splanBean.getPlanId(), splanBean.getVersion());
            if (pvb == null) {
                // $NON-NLS-1$
                throw new StorageException(Messages.i18n.format("PlanVersionDoesNotExist", splanBean.getPlanId(), splanBean.getVersion()));
            }
            if (pvb.getStatus() != PlanStatus.Locked) {
                // $NON-NLS-1$
                throw new StorageException(Messages.i18n.format("PlanNotLocked", splanBean.getPlanId(), splanBean.getVersion()));
            }
        }
    }
    storage.createApiVersion(newVersion);
    if (bean.getDefinitionUrl() != null) {
        InputStream definition = null;
        try {
            definition = new URL(bean.getDefinitionUrl()).openStream();
            storage.updateApiDefinition(newVersion, definition);
        } catch (Exception e) {
            // $NON-NLS-1$
            log.error("Unable to store API definition from: " + bean.getDefinitionUrl(), e);
            // Set definition type silently to None
            newVersion.setDefinitionType(ApiDefinitionType.None);
            storage.updateApiVersion(newVersion);
        } finally {
            IOUtils.closeQuietly(definition);
        }
    }
    storage.createAuditEntry(AuditUtils.apiVersionCreated(newVersion, securityContext));
    return newVersion;
}
Also used : ApiGatewayBean(io.apiman.manager.api.beans.apis.ApiGatewayBean) ApiPlanBean(io.apiman.manager.api.beans.apis.ApiPlanBean) ByteArrayInputStream(java.io.ByteArrayInputStream) InputStream(java.io.InputStream) StorageException(io.apiman.manager.api.core.exceptions.StorageException) ApiVersionBean(io.apiman.manager.api.beans.apis.ApiVersionBean) UpdateApiVersionBean(io.apiman.manager.api.beans.apis.UpdateApiVersionBean) NewApiVersionBean(io.apiman.manager.api.beans.apis.NewApiVersionBean) Date(java.util.Date) URL(java.net.URL) ClientAlreadyExistsException(io.apiman.manager.api.rest.exceptions.ClientAlreadyExistsException) ApiVersionAlreadyExistsException(io.apiman.manager.api.rest.exceptions.ApiVersionAlreadyExistsException) GatewayNotFoundException(io.apiman.manager.api.rest.exceptions.GatewayNotFoundException) InvalidVersionException(io.apiman.manager.api.rest.exceptions.InvalidVersionException) OrganizationAlreadyExistsException(io.apiman.manager.api.rest.exceptions.OrganizationAlreadyExistsException) EntityStillActiveException(io.apiman.manager.api.rest.exceptions.EntityStillActiveException) PolicyNotFoundException(io.apiman.manager.api.rest.exceptions.PolicyNotFoundException) PlanAlreadyExistsException(io.apiman.manager.api.rest.exceptions.PlanAlreadyExistsException) ApiAlreadyExistsException(io.apiman.manager.api.rest.exceptions.ApiAlreadyExistsException) NotAuthorizedException(io.apiman.manager.api.rest.exceptions.NotAuthorizedException) UserNotFoundException(io.apiman.manager.api.rest.exceptions.UserNotFoundException) GatewayAuthenticationException(io.apiman.manager.api.gateway.GatewayAuthenticationException) AbstractRestException(io.apiman.manager.api.rest.exceptions.AbstractRestException) PlanVersionNotFoundException(io.apiman.manager.api.rest.exceptions.PlanVersionNotFoundException) RoleNotFoundException(io.apiman.manager.api.rest.exceptions.RoleNotFoundException) InvalidNameException(io.apiman.manager.api.rest.exceptions.InvalidNameException) ClientVersionNotFoundException(io.apiman.manager.api.rest.exceptions.ClientVersionNotFoundException) IOException(java.io.IOException) InvalidApiStatusException(io.apiman.manager.api.rest.exceptions.InvalidApiStatusException) ApiNotFoundException(io.apiman.manager.api.rest.exceptions.ApiNotFoundException) ContractAlreadyExistsException(io.apiman.manager.api.rest.exceptions.ContractAlreadyExistsException) InvalidClientStatusException(io.apiman.manager.api.rest.exceptions.InvalidClientStatusException) ApiVersionNotFoundException(io.apiman.manager.api.rest.exceptions.ApiVersionNotFoundException) StorageException(io.apiman.manager.api.core.exceptions.StorageException) ClientVersionAlreadyExistsException(io.apiman.manager.api.rest.exceptions.ClientVersionAlreadyExistsException) InvalidPlanStatusException(io.apiman.manager.api.rest.exceptions.InvalidPlanStatusException) SystemErrorException(io.apiman.manager.api.rest.exceptions.SystemErrorException) ContractNotFoundException(io.apiman.manager.api.rest.exceptions.ContractNotFoundException) InvalidParameterException(io.apiman.manager.api.rest.exceptions.InvalidParameterException) ClientNotFoundException(io.apiman.manager.api.rest.exceptions.ClientNotFoundException) PlanNotFoundException(io.apiman.manager.api.rest.exceptions.PlanNotFoundException) InvalidMetricCriteriaException(io.apiman.manager.api.rest.exceptions.InvalidMetricCriteriaException) MalformedURLException(java.net.MalformedURLException) PlanVersionAlreadyExistsException(io.apiman.manager.api.rest.exceptions.PlanVersionAlreadyExistsException) PolicyDefinitionNotFoundException(io.apiman.manager.api.rest.exceptions.PolicyDefinitionNotFoundException) OrganizationNotFoundException(io.apiman.manager.api.rest.exceptions.OrganizationNotFoundException) ApiDefinitionNotFoundException(io.apiman.manager.api.rest.exceptions.ApiDefinitionNotFoundException) NewPlanVersionBean(io.apiman.manager.api.beans.plans.NewPlanVersionBean) PlanVersionBean(io.apiman.manager.api.beans.plans.PlanVersionBean)

Example 12 with ApiPlanBean

use of io.apiman.manager.api.beans.apis.ApiPlanBean in project apiman by apiman.

the class OrganizationResourceImpl method createContractInternal.

/**
 * Creates a contract.
 * @param organizationId
 * @param clientId
 * @param version
 * @param bean
 * @throws StorageException
 * @throws Exception
 */
protected ContractBean createContractInternal(String organizationId, String clientId, String version, NewContractBean bean) throws StorageException, Exception {
    ClientVersionBean cvb = getClientVersionFromStorage(organizationId, clientId, version);
    if (cvb.getStatus() == ClientStatus.Retired) {
        throw ExceptionFactory.invalidClientStatusException();
    }
    ApiVersionBean avb = storage.getApiVersion(bean.getApiOrgId(), bean.getApiId(), bean.getApiVersion());
    if (avb == null) {
        throw ExceptionFactory.apiNotFoundException(bean.getApiId());
    }
    if (avb.getStatus() != ApiStatus.Published) {
        throw ExceptionFactory.invalidApiStatusException();
    }
    Set<ApiPlanBean> plans = avb.getPlans();
    String planVersion = null;
    if (plans != null) {
        for (ApiPlanBean apiPlanBean : plans) {
            if (apiPlanBean.getPlanId().equals(bean.getPlanId())) {
                planVersion = apiPlanBean.getVersion();
            }
        }
    }
    if (planVersion == null) {
        throw ExceptionFactory.planNotFoundException(bean.getPlanId());
    }
    PlanVersionBean pvb = getPlanVersionFromStorage(bean.getApiOrgId(), bean.getPlanId(), planVersion);
    if (pvb.getStatus() != PlanStatus.Locked) {
        throw ExceptionFactory.invalidPlanStatusException();
    }
    ContractBean contract = new ContractBean();
    contract.setClient(cvb);
    contract.setApi(avb);
    contract.setPlan(pvb);
    contract.setCreatedBy(securityContext.getCurrentUser());
    contract.setCreatedOn(new Date());
    // Move the client to the "Ready" state if necessary.
    if (cvb.getStatus() == ClientStatus.Created && clientValidator.isReady(cvb, true)) {
        cvb.setStatus(ClientStatus.Ready);
    }
    storage.createContract(contract);
    storage.createAuditEntry(AuditUtils.contractCreatedFromClient(contract, securityContext));
    storage.createAuditEntry(AuditUtils.contractCreatedToApi(contract, securityContext));
    // Update the version with new meta-data (e.g. modified-by)
    cvb.setModifiedBy(securityContext.getCurrentUser());
    cvb.setModifiedOn(new Date());
    storage.updateClientVersion(cvb);
    return contract;
}
Also used : NewClientVersionBean(io.apiman.manager.api.beans.clients.NewClientVersionBean) ClientVersionBean(io.apiman.manager.api.beans.clients.ClientVersionBean) ApiPlanBean(io.apiman.manager.api.beans.apis.ApiPlanBean) ApiVersionBean(io.apiman.manager.api.beans.apis.ApiVersionBean) UpdateApiVersionBean(io.apiman.manager.api.beans.apis.UpdateApiVersionBean) NewApiVersionBean(io.apiman.manager.api.beans.apis.NewApiVersionBean) Date(java.util.Date) NewPlanVersionBean(io.apiman.manager.api.beans.plans.NewPlanVersionBean) PlanVersionBean(io.apiman.manager.api.beans.plans.PlanVersionBean) NewContractBean(io.apiman.manager.api.beans.contracts.NewContractBean) ContractBean(io.apiman.manager.api.beans.contracts.ContractBean)

Example 13 with ApiPlanBean

use of io.apiman.manager.api.beans.apis.ApiPlanBean in project apiman by apiman.

the class OrganizationResourceImpl method updateApiVersion.

/**
 * @see IOrganizationResource#updateApiVersion(java.lang.String, java.lang.String, java.lang.String, io.apiman.manager.api.beans.apis.UpdateApiVersionBean)
 */
@Override
public ApiVersionBean updateApiVersion(String organizationId, String apiId, String version, UpdateApiVersionBean bean) throws ApiVersionNotFoundException, NotAuthorizedException {
    securityContext.checkPermissions(PermissionType.apiEdit, organizationId);
    ApiVersionBean avb = getApiVersion(organizationId, apiId, version);
    if (avb.isPublicAPI()) {
        if (avb.getStatus() == ApiStatus.Retired) {
            throw ExceptionFactory.invalidApiStatusException();
        }
    } else {
        if (avb.getStatus() == ApiStatus.Published || avb.getStatus() == ApiStatus.Retired) {
            throw ExceptionFactory.invalidApiStatusException();
        }
    }
    avb.setModifiedBy(securityContext.getCurrentUser());
    avb.setModifiedOn(new Date());
    EntityUpdatedData data = new EntityUpdatedData();
    if (AuditUtils.valueChanged(avb.getPlans(), bean.getPlans())) {
        // $NON-NLS-1$
        data.addChange("plans", AuditUtils.asString_ApiPlanBeans(avb.getPlans()), AuditUtils.asString_ApiPlanBeans(bean.getPlans()));
        if (avb.getPlans() == null) {
            avb.setPlans(new HashSet<>());
        }
        avb.getPlans().clear();
        if (bean.getPlans() != null) {
            avb.getPlans().addAll(bean.getPlans());
        }
    }
    if (AuditUtils.valueChanged(avb.getGateways(), bean.getGateways())) {
        // $NON-NLS-1$
        data.addChange("gateways", AuditUtils.asString_ApiGatewayBeans(avb.getGateways()), AuditUtils.asString_ApiGatewayBeans(bean.getGateways()));
        if (avb.getGateways() == null) {
            avb.setGateways(new HashSet<>());
        }
        avb.getGateways().clear();
        avb.getGateways().addAll(bean.getGateways());
    }
    if (AuditUtils.valueChanged(avb.getEndpoint(), bean.getEndpoint())) {
        // validate the endpoint is a URL
        validateEndpoint(bean.getEndpoint());
        // $NON-NLS-1$
        data.addChange("endpoint", avb.getEndpoint(), bean.getEndpoint());
        avb.setEndpoint(bean.getEndpoint());
    }
    if (AuditUtils.valueChanged(avb.getEndpointType(), bean.getEndpointType())) {
        // $NON-NLS-1$
        data.addChange("endpointType", avb.getEndpointType(), bean.getEndpointType());
        avb.setEndpointType(bean.getEndpointType());
    }
    if (AuditUtils.valueChanged(avb.getEndpointContentType(), bean.getEndpointContentType())) {
        // $NON-NLS-1$
        data.addChange("endpointContentType", avb.getEndpointContentType(), bean.getEndpointContentType());
        avb.setEndpointContentType(bean.getEndpointContentType());
    }
    if (AuditUtils.valueChanged(avb.getEndpointProperties(), bean.getEndpointProperties())) {
        if (avb.getEndpointProperties() == null) {
            avb.setEndpointProperties(new HashMap<>());
        } else {
            avb.getEndpointProperties().clear();
        }
        if (bean.getEndpointProperties() != null) {
            avb.getEndpointProperties().putAll(bean.getEndpointProperties());
        }
    }
    if (AuditUtils.valueChanged(avb.isPublicAPI(), bean.getPublicAPI())) {
        // $NON-NLS-1$
        data.addChange("publicAPI", String.valueOf(avb.isPublicAPI()), String.valueOf(bean.getPublicAPI()));
        avb.setPublicAPI(bean.getPublicAPI());
    }
    if (AuditUtils.valueChanged(avb.isParsePayload(), bean.getParsePayload())) {
        // $NON-NLS-1$
        data.addChange("parsePayload", String.valueOf(avb.isParsePayload()), String.valueOf(bean.getParsePayload()));
        avb.setParsePayload(bean.getParsePayload());
    }
    if (AuditUtils.valueChanged(avb.getDisableKeysStrip(), bean.getDisableKeysStrip())) {
        // $NON-NLS-1$
        data.addChange("disableKeysStrip", String.valueOf(avb.getDisableKeysStrip()), String.valueOf(bean.getDisableKeysStrip()));
        avb.setDisableKeysStrip(bean.getDisableKeysStrip());
    }
    try {
        if (avb.getGateways() == null || avb.getGateways().isEmpty()) {
            GatewaySummaryBean gateway = getSingularGateway();
            if (gateway != null && avb.getGateways() == null) {
                avb.setGateways(new HashSet<>());
                ApiGatewayBean sgb = new ApiGatewayBean();
                sgb.setGatewayId(gateway.getId());
                avb.getGateways().add(sgb);
            }
        }
        if (avb.getStatus() != ApiStatus.Published) {
            if (apiValidator.isReady(avb)) {
                avb.setStatus(ApiStatus.Ready);
            } else {
                avb.setStatus(ApiStatus.Created);
            }
        } else {
            if (!apiValidator.isReady(avb)) {
                throw ExceptionFactory.invalidApiStatusException();
            }
        }
    } catch (Exception e) {
        throw new SystemErrorException(e);
    }
    try {
        encryptEndpointProperties(avb);
        storage.beginTx();
        // Ensure all of the plans are in the right status (locked)
        Set<ApiPlanBean> plans = avb.getPlans();
        if (plans != null) {
            for (ApiPlanBean splanBean : plans) {
                String orgId = avb.getApi().getOrganization().getId();
                PlanVersionBean pvb = storage.getPlanVersion(orgId, splanBean.getPlanId(), splanBean.getVersion());
                if (pvb == null) {
                    // $NON-NLS-1$
                    throw new StorageException(Messages.i18n.format("PlanVersionDoesNotExist", splanBean.getPlanId(), splanBean.getVersion()));
                }
                if (pvb.getStatus() != PlanStatus.Locked) {
                    // $NON-NLS-1$
                    throw new StorageException(Messages.i18n.format("PlanNotLocked", splanBean.getPlanId(), splanBean.getVersion()));
                }
            }
        }
        storage.updateApiVersion(avb);
        storage.createAuditEntry(AuditUtils.apiVersionUpdated(avb, data, securityContext));
        storage.commitTx();
        // $NON-NLS-1$
        log.debug(String.format("Successfully updated API Version: %s", avb));
        decryptEndpointProperties(avb);
        return avb;
    } catch (AbstractRestException e) {
        storage.rollbackTx();
        throw e;
    } catch (Exception e) {
        storage.rollbackTx();
        throw new SystemErrorException(e);
    }
}
Also used : SystemErrorException(io.apiman.manager.api.rest.exceptions.SystemErrorException) ApiPlanBean(io.apiman.manager.api.beans.apis.ApiPlanBean) GatewaySummaryBean(io.apiman.manager.api.beans.summary.GatewaySummaryBean) Date(java.util.Date) ClientAlreadyExistsException(io.apiman.manager.api.rest.exceptions.ClientAlreadyExistsException) ApiVersionAlreadyExistsException(io.apiman.manager.api.rest.exceptions.ApiVersionAlreadyExistsException) GatewayNotFoundException(io.apiman.manager.api.rest.exceptions.GatewayNotFoundException) InvalidVersionException(io.apiman.manager.api.rest.exceptions.InvalidVersionException) OrganizationAlreadyExistsException(io.apiman.manager.api.rest.exceptions.OrganizationAlreadyExistsException) EntityStillActiveException(io.apiman.manager.api.rest.exceptions.EntityStillActiveException) PolicyNotFoundException(io.apiman.manager.api.rest.exceptions.PolicyNotFoundException) PlanAlreadyExistsException(io.apiman.manager.api.rest.exceptions.PlanAlreadyExistsException) ApiAlreadyExistsException(io.apiman.manager.api.rest.exceptions.ApiAlreadyExistsException) NotAuthorizedException(io.apiman.manager.api.rest.exceptions.NotAuthorizedException) UserNotFoundException(io.apiman.manager.api.rest.exceptions.UserNotFoundException) GatewayAuthenticationException(io.apiman.manager.api.gateway.GatewayAuthenticationException) AbstractRestException(io.apiman.manager.api.rest.exceptions.AbstractRestException) PlanVersionNotFoundException(io.apiman.manager.api.rest.exceptions.PlanVersionNotFoundException) RoleNotFoundException(io.apiman.manager.api.rest.exceptions.RoleNotFoundException) InvalidNameException(io.apiman.manager.api.rest.exceptions.InvalidNameException) ClientVersionNotFoundException(io.apiman.manager.api.rest.exceptions.ClientVersionNotFoundException) IOException(java.io.IOException) InvalidApiStatusException(io.apiman.manager.api.rest.exceptions.InvalidApiStatusException) ApiNotFoundException(io.apiman.manager.api.rest.exceptions.ApiNotFoundException) ContractAlreadyExistsException(io.apiman.manager.api.rest.exceptions.ContractAlreadyExistsException) InvalidClientStatusException(io.apiman.manager.api.rest.exceptions.InvalidClientStatusException) ApiVersionNotFoundException(io.apiman.manager.api.rest.exceptions.ApiVersionNotFoundException) StorageException(io.apiman.manager.api.core.exceptions.StorageException) ClientVersionAlreadyExistsException(io.apiman.manager.api.rest.exceptions.ClientVersionAlreadyExistsException) InvalidPlanStatusException(io.apiman.manager.api.rest.exceptions.InvalidPlanStatusException) SystemErrorException(io.apiman.manager.api.rest.exceptions.SystemErrorException) ContractNotFoundException(io.apiman.manager.api.rest.exceptions.ContractNotFoundException) InvalidParameterException(io.apiman.manager.api.rest.exceptions.InvalidParameterException) ClientNotFoundException(io.apiman.manager.api.rest.exceptions.ClientNotFoundException) PlanNotFoundException(io.apiman.manager.api.rest.exceptions.PlanNotFoundException) InvalidMetricCriteriaException(io.apiman.manager.api.rest.exceptions.InvalidMetricCriteriaException) MalformedURLException(java.net.MalformedURLException) PlanVersionAlreadyExistsException(io.apiman.manager.api.rest.exceptions.PlanVersionAlreadyExistsException) PolicyDefinitionNotFoundException(io.apiman.manager.api.rest.exceptions.PolicyDefinitionNotFoundException) OrganizationNotFoundException(io.apiman.manager.api.rest.exceptions.OrganizationNotFoundException) ApiDefinitionNotFoundException(io.apiman.manager.api.rest.exceptions.ApiDefinitionNotFoundException) NewPlanVersionBean(io.apiman.manager.api.beans.plans.NewPlanVersionBean) PlanVersionBean(io.apiman.manager.api.beans.plans.PlanVersionBean) ApiGatewayBean(io.apiman.manager.api.beans.apis.ApiGatewayBean) AbstractRestException(io.apiman.manager.api.rest.exceptions.AbstractRestException) ApiVersionBean(io.apiman.manager.api.beans.apis.ApiVersionBean) UpdateApiVersionBean(io.apiman.manager.api.beans.apis.UpdateApiVersionBean) NewApiVersionBean(io.apiman.manager.api.beans.apis.NewApiVersionBean) StorageException(io.apiman.manager.api.core.exceptions.StorageException) EntityUpdatedData(io.apiman.manager.api.beans.audit.data.EntityUpdatedData)

Aggregations

ApiPlanBean (io.apiman.manager.api.beans.apis.ApiPlanBean)13 ApiVersionBean (io.apiman.manager.api.beans.apis.ApiVersionBean)11 NewApiVersionBean (io.apiman.manager.api.beans.apis.NewApiVersionBean)7 UpdateApiVersionBean (io.apiman.manager.api.beans.apis.UpdateApiVersionBean)7 PlanVersionBean (io.apiman.manager.api.beans.plans.PlanVersionBean)7 ApiGatewayBean (io.apiman.manager.api.beans.apis.ApiGatewayBean)6 StorageException (io.apiman.manager.api.core.exceptions.StorageException)6 Date (java.util.Date)6 SystemErrorException (io.apiman.manager.api.rest.exceptions.SystemErrorException)5 GatewayAuthenticationException (io.apiman.manager.api.gateway.GatewayAuthenticationException)4 ApiAlreadyExistsException (io.apiman.manager.api.rest.exceptions.ApiAlreadyExistsException)4 ApiDefinitionNotFoundException (io.apiman.manager.api.rest.exceptions.ApiDefinitionNotFoundException)4 ApiNotFoundException (io.apiman.manager.api.rest.exceptions.ApiNotFoundException)4 ApiVersionAlreadyExistsException (io.apiman.manager.api.rest.exceptions.ApiVersionAlreadyExistsException)4 ApiVersionNotFoundException (io.apiman.manager.api.rest.exceptions.ApiVersionNotFoundException)4 EntityStillActiveException (io.apiman.manager.api.rest.exceptions.EntityStillActiveException)4 GatewayNotFoundException (io.apiman.manager.api.rest.exceptions.GatewayNotFoundException)4 InvalidApiStatusException (io.apiman.manager.api.rest.exceptions.InvalidApiStatusException)4 InvalidNameException (io.apiman.manager.api.rest.exceptions.InvalidNameException)4 InvalidParameterException (io.apiman.manager.api.rest.exceptions.InvalidParameterException)4