Search in sources :

Example 1 with PlanBean

use of io.apiman.manager.api.beans.plans.PlanBean in project apiman by apiman.

the class JpaStorage method findPlans.

/**
 * @see io.apiman.manager.api.core.IStorageQuery#findPlans(java.lang.String, io.apiman.manager.api.beans.search.SearchCriteriaBean)
 */
@Override
public SearchResultsBean<PlanSummaryBean> findPlans(String organizationId, SearchCriteriaBean criteria) throws StorageException {
    criteria.addFilter("organization.id", organizationId, SearchCriteriaFilterOperator.eq);
    SearchResultsBean<PlanBean> result = find(criteria, PlanBean.class);
    SearchResultsBean<PlanSummaryBean> rval = new SearchResultsBean<>();
    rval.setTotalSize(result.getTotalSize());
    List<PlanBean> plans = result.getBeans();
    rval.setBeans(new ArrayList<>(plans.size()));
    for (PlanBean plan : plans) {
        PlanSummaryBean summary = new PlanSummaryBean();
        OrganizationBean organization = plan.getOrganization();
        summary.setId(plan.getId());
        summary.setName(plan.getName());
        summary.setDescription(plan.getDescription());
        summary.setOrganizationId(plan.getOrganization().getId());
        summary.setOrganizationName(organization.getName());
        rval.getBeans().add(summary);
    }
    return rval;
}
Also used : SearchResultsBean(io.apiman.manager.api.beans.search.SearchResultsBean) PlanBean(io.apiman.manager.api.beans.plans.PlanBean) OrganizationBean(io.apiman.manager.api.beans.orgs.OrganizationBean)

Example 2 with PlanBean

use of io.apiman.manager.api.beans.plans.PlanBean in project apiman by apiman.

the class EsStorage method getPlan.

/**
 * @see io.apiman.manager.api.core.IStorage#getPlan(java.lang.String, java.lang.String)
 */
@Override
public PlanBean getPlan(String organizationId, String id) throws StorageException {
    Map<String, Object> source = getEntity(INDEX_MANAGER_POSTFIX_PLAN, id(organizationId, id));
    if (source == null) {
        return null;
    }
    PlanBean bean = EsMarshalling.unmarshallPlan(source);
    bean.setOrganization(getOrganization(organizationId));
    return bean;
}
Also used : PlanBean(io.apiman.manager.api.beans.plans.PlanBean) ApiPlanBean(io.apiman.manager.api.beans.apis.ApiPlanBean)

Example 3 with PlanBean

use of io.apiman.manager.api.beans.plans.PlanBean in project apiman by apiman.

the class EsMarshallingTest method testMarshallPlanBean.

/**
 * Test method for {@link io.apiman.manager.api.es.EsMarshalling#marshall(io.apiman.manager.api.beans.plans.PlanBean)}.
 */
@Test
public void testMarshallPlanBean() throws Exception {
    PlanBean bean = createBean(PlanBean.class);
    XContentBuilder builder = EsMarshalling.marshall(bean);
    Assert.assertEquals("{\"organizationId\":\"ID\",\"organizationName\":\"NAME\",\"id\":\"ID\",\"name\":\"NAME\",\"description\":\"DESCRIPTION\",\"createdBy\":\"CREATEDBY\",\"createdOn\":1}", Strings.toString(builder));
}
Also used : PlanBean(io.apiman.manager.api.beans.plans.PlanBean) XContentBuilder(org.elasticsearch.common.xcontent.XContentBuilder) Test(org.junit.Test)

Example 4 with PlanBean

use of io.apiman.manager.api.beans.plans.PlanBean in project apiman by apiman.

the class OrganizationResourceImpl method deletePlan.

@Override
public void deletePlan(@PathParam("organizationId") String organizationId, @PathParam("planId") String planId) throws ApiNotFoundException, NotAuthorizedException, InvalidPlanStatusException {
    securityContext.checkPermissions(PermissionType.planAdmin, organizationId);
    List<PlanVersionSummaryBean> lockedPlans = listPlanVersions(organizationId, planId).stream().filter(summary -> summary.getStatus() == PlanStatus.Locked).collect(toList());
    if (!lockedPlans.isEmpty())
        throw ExceptionFactory.invalidPlanStatusException(lockedPlans);
    try {
        storage.beginTx();
        PlanBean plan = storage.getPlan(organizationId, planId);
        storage.deletePlan(plan);
        storage.commitTx();
    } catch (AbstractRestException e) {
        storage.rollbackTx();
        throw e;
    } catch (Exception e) {
        storage.rollbackTx();
        throw new SystemErrorException(e);
    }
}
Also used : DateTimeZone(org.joda.time.DateTimeZone) PolicyChainBean(io.apiman.manager.api.beans.policies.PolicyChainBean) MemberBean(io.apiman.manager.api.beans.members.MemberBean) ApiPlanSummaryBean(io.apiman.manager.api.beans.summary.ApiPlanSummaryBean) ClientAlreadyExistsException(io.apiman.manager.api.rest.exceptions.ClientAlreadyExistsException) ApiVersionBean(io.apiman.manager.api.beans.apis.ApiVersionBean) UpdateApiBean(io.apiman.manager.api.beans.apis.UpdateApiBean) ISecurityContext(io.apiman.manager.api.security.ISecurityContext) ApiVersionAlreadyExistsException(io.apiman.manager.api.rest.exceptions.ApiVersionAlreadyExistsException) GatewayNotFoundException(io.apiman.manager.api.rest.exceptions.GatewayNotFoundException) InvalidVersionException(io.apiman.manager.api.rest.exceptions.InvalidVersionException) IDataEncrypter(io.apiman.common.util.crypt.IDataEncrypter) OrganizationAlreadyExistsException(io.apiman.manager.api.rest.exceptions.OrganizationAlreadyExistsException) StringUtils(org.apache.commons.lang3.StringUtils) UserBean(io.apiman.manager.api.beans.idm.UserBean) ApiBean(io.apiman.manager.api.beans.apis.ApiBean) ApiVersionEndpointSummaryBean(io.apiman.manager.api.beans.summary.ApiVersionEndpointSummaryBean) MediaType(javax.ws.rs.core.MediaType) DownloadType(io.apiman.manager.api.beans.download.DownloadType) PagingBean(io.apiman.manager.api.beans.search.PagingBean) Map(java.util.Map) ApiManagerConfig(io.apiman.manager.api.core.config.ApiManagerConfig) OrganizationBean(io.apiman.manager.api.beans.orgs.OrganizationBean) EntityStillActiveException(io.apiman.manager.api.rest.exceptions.EntityStillActiveException) NewApiDefinitionBean(io.apiman.manager.api.beans.apis.NewApiDefinitionBean) ApiEntryBean(io.apiman.manager.api.beans.summary.ApiEntryBean) PolicyNotFoundException(io.apiman.manager.api.rest.exceptions.PolicyNotFoundException) IApiValidator(io.apiman.manager.api.core.IApiValidator) IGatewayLink(io.apiman.manager.api.gateway.IGatewayLink) ApiVersionStatusBean(io.apiman.manager.api.beans.apis.ApiVersionStatusBean) PlanAlreadyExistsException(io.apiman.manager.api.rest.exceptions.PlanAlreadyExistsException) Set(java.util.Set) StandardCharsets(java.nio.charset.StandardCharsets) ApiAlreadyExistsException(io.apiman.manager.api.rest.exceptions.ApiAlreadyExistsException) NotAuthorizedException(io.apiman.manager.api.rest.exceptions.NotAuthorizedException) UserNotFoundException(io.apiman.manager.api.rest.exceptions.UserNotFoundException) IOUtils(org.apache.commons.io.IOUtils) AuditEntryBean(io.apiman.manager.api.beans.audit.AuditEntryBean) RoleMembershipBean(io.apiman.manager.api.beans.idm.RoleMembershipBean) UsageHistogramBean(io.apiman.manager.api.beans.metrics.UsageHistogramBean) PlanVersionSummaryBean(io.apiman.manager.api.beans.summary.PlanVersionSummaryBean) GatewayAuthenticationException(io.apiman.manager.api.gateway.GatewayAuthenticationException) IMetricsAccessor(io.apiman.manager.api.core.IMetricsAccessor) UpdateClientBean(io.apiman.manager.api.beans.clients.UpdateClientBean) AbstractRestException(io.apiman.manager.api.rest.exceptions.AbstractRestException) PlanBean(io.apiman.manager.api.beans.plans.PlanBean) PlanSummaryBean(io.apiman.manager.api.beans.summary.PlanSummaryBean) ApiStatus(io.apiman.manager.api.beans.apis.ApiStatus) ResponseStatsHistogramBean(io.apiman.manager.api.beans.metrics.ResponseStatsHistogramBean) ArrayList(java.util.ArrayList) HttpServletRequest(javax.servlet.http.HttpServletRequest) DataEncryptionContext(io.apiman.common.util.crypt.DataEncryptionContext) PlanVersionNotFoundException(io.apiman.manager.api.rest.exceptions.PlanVersionNotFoundException) IOrganizationResource(io.apiman.manager.api.rest.IOrganizationResource) RoleNotFoundException(io.apiman.manager.api.rest.exceptions.RoleNotFoundException) UsagePerClientBean(io.apiman.manager.api.beans.metrics.UsagePerClientBean) IStorageQuery(io.apiman.manager.api.core.IStorageQuery) StreamSupport(java.util.stream.StreamSupport) PolicyTemplateUtil(io.apiman.manager.api.core.util.PolicyTemplateUtil) InvalidNameException(io.apiman.manager.api.rest.exceptions.InvalidNameException) ResponseBuilder(javax.ws.rs.core.Response.ResponseBuilder) UsagePerPlanBean(io.apiman.manager.api.beans.metrics.UsagePerPlanBean) NewPlanVersionBean(io.apiman.manager.api.beans.plans.NewPlanVersionBean) EntityUpdatedData(io.apiman.manager.api.beans.audit.data.EntityUpdatedData) GrantRolesBean(io.apiman.manager.api.beans.idm.GrantRolesBean) ClientVersionNotFoundException(io.apiman.manager.api.rest.exceptions.ClientVersionNotFoundException) IOException(java.io.IOException) BeanUtils(io.apiman.manager.api.beans.BeanUtils) NewOrganizationBean(io.apiman.manager.api.beans.orgs.NewOrganizationBean) ApiRegistryBean(io.apiman.manager.api.beans.summary.ApiRegistryBean) InvalidApiStatusException(io.apiman.manager.api.rest.exceptions.InvalidApiStatusException) DownloadBean(io.apiman.manager.api.beans.download.DownloadBean) TreeMap(java.util.TreeMap) UpdateApiVersionBean(io.apiman.manager.api.beans.apis.UpdateApiVersionBean) PolicyType(io.apiman.manager.api.beans.policies.PolicyType) Messages(io.apiman.manager.api.rest.exceptions.i18n.Messages) ApiNotFoundException(io.apiman.manager.api.rest.exceptions.ApiNotFoundException) ExceptionFactory(io.apiman.manager.api.rest.exceptions.util.ExceptionFactory) ContractAlreadyExistsException(io.apiman.manager.api.rest.exceptions.ContractAlreadyExistsException) MemberRoleBean(io.apiman.manager.api.beans.members.MemberRoleBean) NewPlanBean(io.apiman.manager.api.beans.plans.NewPlanBean) InvalidClientStatusException(io.apiman.manager.api.rest.exceptions.InvalidClientStatusException) NewApiBean(io.apiman.manager.api.beans.apis.NewApiBean) ApiGatewayBean(io.apiman.manager.api.beans.apis.ApiGatewayBean) URL(java.net.URL) Date(java.util.Date) ApiVersionNotFoundException(io.apiman.manager.api.rest.exceptions.ApiVersionNotFoundException) HistogramIntervalType(io.apiman.manager.api.beans.metrics.HistogramIntervalType) StorageException(io.apiman.manager.api.core.exceptions.StorageException) NewContractBean(io.apiman.manager.api.beans.contracts.NewContractBean) IGatewayLinkFactory(io.apiman.manager.api.gateway.IGatewayLinkFactory) UpdateOrganizationBean(io.apiman.manager.api.beans.orgs.UpdateOrganizationBean) SearchCriteriaFilterOperator(io.apiman.manager.api.beans.search.SearchCriteriaFilterOperator) ApiDefinitionType(io.apiman.manager.api.beans.apis.ApiDefinitionType) IDownloadManager(io.apiman.manager.api.core.IDownloadManager) ByteArrayInputStream(java.io.ByteArrayInputStream) ResponseStatsPerClientBean(io.apiman.manager.api.beans.metrics.ResponseStatsPerClientBean) IClientValidator(io.apiman.manager.api.core.IClientValidator) ClientVersionAlreadyExistsException(io.apiman.manager.api.rest.exceptions.ClientVersionAlreadyExistsException) InvalidPlanStatusException(io.apiman.manager.api.rest.exceptions.InvalidPlanStatusException) ApimanLoggerFactory(io.apiman.common.logging.ApimanLoggerFactory) SystemErrorException(io.apiman.manager.api.rest.exceptions.SystemErrorException) ContractNotFoundException(io.apiman.manager.api.rest.exceptions.ContractNotFoundException) ISODateTimeFormat(org.joda.time.format.ISODateTimeFormat) Context(javax.ws.rs.core.Context) ClientUsagePerApiBean(io.apiman.manager.api.beans.metrics.ClientUsagePerApiBean) GatewaySummaryBean(io.apiman.manager.api.beans.summary.GatewaySummaryBean) ApiVersionSummaryBean(io.apiman.manager.api.beans.summary.ApiVersionSummaryBean) InvalidParameterException(io.apiman.manager.api.rest.exceptions.InvalidParameterException) NewClientVersionBean(io.apiman.manager.api.beans.clients.NewClientVersionBean) ApiSummaryBean(io.apiman.manager.api.beans.summary.ApiSummaryBean) ClientSummaryBean(io.apiman.manager.api.beans.summary.ClientSummaryBean) IRoleResource(io.apiman.manager.api.rest.IRoleResource) List(java.util.List) IApimanLogger(io.apiman.common.logging.IApimanLogger) ApiPlanBean(io.apiman.manager.api.beans.apis.ApiPlanBean) PolicySummaryBean(io.apiman.manager.api.beans.summary.PolicySummaryBean) Response(javax.ws.rs.core.Response) Entry(java.util.Map.Entry) SearchCriteriaBean(io.apiman.manager.api.beans.search.SearchCriteriaBean) IUserResource(io.apiman.manager.api.rest.IUserResource) ClientNotFoundException(io.apiman.manager.api.rest.exceptions.ClientNotFoundException) PermissionType(io.apiman.manager.api.beans.idm.PermissionType) PathParam(javax.ws.rs.PathParam) ApiEndpoint(io.apiman.gateway.engine.beans.ApiEndpoint) HashMap(java.util.HashMap) PolicyBean(io.apiman.manager.api.beans.policies.PolicyBean) PlanNotFoundException(io.apiman.manager.api.rest.exceptions.PlanNotFoundException) AuditUtils(io.apiman.manager.api.rest.impl.audit.AuditUtils) ContractBean(io.apiman.manager.api.beans.contracts.ContractBean) HashSet(java.util.HashSet) Inject(javax.inject.Inject) ClientBean(io.apiman.manager.api.beans.clients.ClientBean) ResponseStatsSummaryBean(io.apiman.manager.api.beans.metrics.ResponseStatsSummaryBean) FieldValidator(io.apiman.manager.api.rest.impl.util.FieldValidator) RoleBean(io.apiman.manager.api.beans.idm.RoleBean) IApiKeyGenerator(io.apiman.manager.api.core.IApiKeyGenerator) InvalidMetricCriteriaException(io.apiman.manager.api.rest.exceptions.InvalidMetricCriteriaException) SwaggerWsdlHelper(io.apiman.manager.api.rest.impl.util.SwaggerWsdlHelper) PlanVersionBean(io.apiman.manager.api.beans.plans.PlanVersionBean) ClientVersionSummaryBean(io.apiman.manager.api.beans.summary.ClientVersionSummaryBean) MembershipData(io.apiman.manager.api.beans.audit.data.MembershipData) Iterator(java.util.Iterator) EntityType(io.apiman.common.util.crypt.DataEncryptionContext.EntityType) GatewayBean(io.apiman.manager.api.beans.gateways.GatewayBean) MalformedURLException(java.net.MalformedURLException) ClientStatus(io.apiman.manager.api.beans.clients.ClientStatus) SearchResultsBean(io.apiman.manager.api.beans.search.SearchResultsBean) ContractSummaryBean(io.apiman.manager.api.beans.summary.ContractSummaryBean) PlanVersionAlreadyExistsException(io.apiman.manager.api.rest.exceptions.PlanVersionAlreadyExistsException) DateTime(org.joda.time.DateTime) PolicyDefinitionBean(io.apiman.manager.api.beans.policies.PolicyDefinitionBean) IStorage(io.apiman.manager.api.core.IStorage) ClientVersionBean(io.apiman.manager.api.beans.clients.ClientVersionBean) NewApiVersionBean(io.apiman.manager.api.beans.apis.NewApiVersionBean) NewPolicyBean(io.apiman.manager.api.beans.policies.NewPolicyBean) PolicyDefinitionNotFoundException(io.apiman.manager.api.rest.exceptions.PolicyDefinitionNotFoundException) Collectors.toList(java.util.stream.Collectors.toList) OrganizationNotFoundException(io.apiman.manager.api.rest.exceptions.OrganizationNotFoundException) UpdatePolicyBean(io.apiman.manager.api.beans.policies.UpdatePolicyBean) UpdatePlanBean(io.apiman.manager.api.beans.plans.UpdatePlanBean) RequestScoped(javax.enterprise.context.RequestScoped) NewClientBean(io.apiman.manager.api.beans.clients.NewClientBean) ResponseStatsPerPlanBean(io.apiman.manager.api.beans.metrics.ResponseStatsPerPlanBean) PlanStatus(io.apiman.manager.api.beans.plans.PlanStatus) ApiDefinitionNotFoundException(io.apiman.manager.api.rest.exceptions.ApiDefinitionNotFoundException) ApiKeyBean(io.apiman.manager.api.beans.clients.ApiKeyBean) RestHelper(io.apiman.manager.api.rest.impl.util.RestHelper) InputStream(java.io.InputStream) SystemErrorException(io.apiman.manager.api.rest.exceptions.SystemErrorException) PlanBean(io.apiman.manager.api.beans.plans.PlanBean) UsagePerPlanBean(io.apiman.manager.api.beans.metrics.UsagePerPlanBean) NewPlanBean(io.apiman.manager.api.beans.plans.NewPlanBean) ApiPlanBean(io.apiman.manager.api.beans.apis.ApiPlanBean) UpdatePlanBean(io.apiman.manager.api.beans.plans.UpdatePlanBean) ResponseStatsPerPlanBean(io.apiman.manager.api.beans.metrics.ResponseStatsPerPlanBean) AbstractRestException(io.apiman.manager.api.rest.exceptions.AbstractRestException) PlanVersionSummaryBean(io.apiman.manager.api.beans.summary.PlanVersionSummaryBean) 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)

Example 5 with PlanBean

use of io.apiman.manager.api.beans.plans.PlanBean in project apiman by apiman.

the class OrganizationResourceImpl method createPlan.

/**
 * @see IOrganizationResource#createPlan(java.lang.String,
 *      io.apiman.manager.api.beans.plans.NewPlanBean)
 */
@Override
public PlanBean createPlan(String organizationId, NewPlanBean bean) throws OrganizationNotFoundException, PlanAlreadyExistsException, NotAuthorizedException, InvalidNameException {
    securityContext.checkPermissions(PermissionType.planEdit, organizationId);
    FieldValidator.validateName(bean.getName());
    PlanBean newPlan = new PlanBean();
    newPlan.setName(bean.getName());
    newPlan.setDescription(bean.getDescription());
    newPlan.setId(BeanUtils.idFromName(bean.getName()));
    newPlan.setCreatedOn(new Date());
    newPlan.setCreatedBy(securityContext.getCurrentUser());
    try {
        // Store/persist the new plan
        storage.beginTx();
        OrganizationBean orgBean = getOrganizationFromStorage(organizationId);
        if (storage.getPlan(orgBean.getId(), newPlan.getId()) != null) {
            throw ExceptionFactory.planAlreadyExistsException(newPlan.getName());
        }
        newPlan.setOrganization(orgBean);
        storage.createPlan(newPlan);
        storage.createAuditEntry(AuditUtils.planCreated(newPlan, securityContext));
        if (bean.getInitialVersion() != null) {
            NewPlanVersionBean newPlanVersion = new NewPlanVersionBean();
            newPlanVersion.setVersion(bean.getInitialVersion());
            createPlanVersionInternal(newPlanVersion, newPlan);
        }
        storage.commitTx();
        // $NON-NLS-1$
        log.debug(String.format("Created plan: %s", newPlan));
        return newPlan;
    } 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) NewPlanVersionBean(io.apiman.manager.api.beans.plans.NewPlanVersionBean) PlanBean(io.apiman.manager.api.beans.plans.PlanBean) UsagePerPlanBean(io.apiman.manager.api.beans.metrics.UsagePerPlanBean) NewPlanBean(io.apiman.manager.api.beans.plans.NewPlanBean) ApiPlanBean(io.apiman.manager.api.beans.apis.ApiPlanBean) UpdatePlanBean(io.apiman.manager.api.beans.plans.UpdatePlanBean) ResponseStatsPerPlanBean(io.apiman.manager.api.beans.metrics.ResponseStatsPerPlanBean) OrganizationBean(io.apiman.manager.api.beans.orgs.OrganizationBean) NewOrganizationBean(io.apiman.manager.api.beans.orgs.NewOrganizationBean) UpdateOrganizationBean(io.apiman.manager.api.beans.orgs.UpdateOrganizationBean) AbstractRestException(io.apiman.manager.api.rest.exceptions.AbstractRestException) 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)

Aggregations

PlanBean (io.apiman.manager.api.beans.plans.PlanBean)28 ApiPlanBean (io.apiman.manager.api.beans.apis.ApiPlanBean)18 OrganizationBean (io.apiman.manager.api.beans.orgs.OrganizationBean)13 StorageException (io.apiman.manager.api.core.exceptions.StorageException)12 NewPlanBean (io.apiman.manager.api.beans.plans.NewPlanBean)10 UpdatePlanBean (io.apiman.manager.api.beans.plans.UpdatePlanBean)10 PlanVersionBean (io.apiman.manager.api.beans.plans.PlanVersionBean)8 ApiNotFoundException (io.apiman.manager.api.rest.exceptions.ApiNotFoundException)7 InvalidNameException (io.apiman.manager.api.rest.exceptions.InvalidNameException)7 InvalidPlanStatusException (io.apiman.manager.api.rest.exceptions.InvalidPlanStatusException)7 InvalidVersionException (io.apiman.manager.api.rest.exceptions.InvalidVersionException)7 NotAuthorizedException (io.apiman.manager.api.rest.exceptions.NotAuthorizedException)7 OrganizationNotFoundException (io.apiman.manager.api.rest.exceptions.OrganizationNotFoundException)7 NewPlanVersionBean (io.apiman.manager.api.beans.plans.NewPlanVersionBean)6 PolicyBean (io.apiman.manager.api.beans.policies.PolicyBean)6 ArrayList (java.util.ArrayList)5 ApiBean (io.apiman.manager.api.beans.apis.ApiBean)4 ContractBean (io.apiman.manager.api.beans.contracts.ContractBean)4 SearchResultsBean (io.apiman.manager.api.beans.search.SearchResultsBean)4 PlanSummaryBean (io.apiman.manager.api.beans.summary.PlanSummaryBean)4