Search in sources :

Example 6 with ApiPermissionFilter

use of io.gravitee.management.service.jackson.filter.ApiPermissionFilter in project gravitee-management-rest-api by gravitee-io.

the class ApiService_DeleteTest method setUp.

@Before
public void setUp() {
    PropertyFilter apiMembershipTypeFilter = new ApiPermissionFilter();
    objectMapper.setFilterProvider(new SimpleFilterProvider(Collections.singletonMap("apiMembershipTypeFilter", apiMembershipTypeFilter)));
}
Also used : SimpleFilterProvider(com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider) PropertyFilter(com.fasterxml.jackson.databind.ser.PropertyFilter) ApiPermissionFilter(io.gravitee.management.service.jackson.filter.ApiPermissionFilter) Before(org.junit.Before)

Example 7 with ApiPermissionFilter

use of io.gravitee.management.service.jackson.filter.ApiPermissionFilter in project gravitee-management-rest-api by gravitee-io.

the class ApiService_FindByIdTest method setUp.

@Before
public void setUp() {
    PropertyFilter apiMembershipTypeFilter = new ApiPermissionFilter();
    objectMapper.setFilterProvider(new SimpleFilterProvider(Collections.singletonMap("apiMembershipTypeFilter", apiMembershipTypeFilter)));
}
Also used : SimpleFilterProvider(com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider) PropertyFilter(com.fasterxml.jackson.databind.ser.PropertyFilter) ApiPermissionFilter(io.gravitee.management.service.jackson.filter.ApiPermissionFilter) Before(org.junit.Before)

Example 8 with ApiPermissionFilter

use of io.gravitee.management.service.jackson.filter.ApiPermissionFilter in project gravitee-management-rest-api by gravitee-io.

the class ApiService_FindByUserTest method setUp.

@Before
public void setUp() {
    PropertyFilter apiMembershipTypeFilter = new ApiPermissionFilter();
    objectMapper.setFilterProvider(new SimpleFilterProvider(Collections.singletonMap("apiMembershipTypeFilter", apiMembershipTypeFilter)));
}
Also used : SimpleFilterProvider(com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider) PropertyFilter(com.fasterxml.jackson.databind.ser.PropertyFilter) ApiPermissionFilter(io.gravitee.management.service.jackson.filter.ApiPermissionFilter) Before(org.junit.Before)

Example 9 with ApiPermissionFilter

use of io.gravitee.management.service.jackson.filter.ApiPermissionFilter in project gravitee-management-rest-api by gravitee-io.

the class ApiService_StopTest method setUp.

@Before
public void setUp() {
    PropertyFilter apiMembershipTypeFilter = new ApiPermissionFilter();
    objectMapper.setFilterProvider(new SimpleFilterProvider(Collections.singletonMap("apiMembershipTypeFilter", apiMembershipTypeFilter)));
}
Also used : SimpleFilterProvider(com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider) PropertyFilter(com.fasterxml.jackson.databind.ser.PropertyFilter) ApiPermissionFilter(io.gravitee.management.service.jackson.filter.ApiPermissionFilter) Before(org.junit.Before)

Aggregations

PropertyFilter (com.fasterxml.jackson.databind.ser.PropertyFilter)9 SimpleFilterProvider (com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider)9 ApiPermissionFilter (io.gravitee.management.service.jackson.filter.ApiPermissionFilter)9 Before (org.junit.Before)7 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 GraviteeMapper (io.gravitee.definition.jackson.datatype.GraviteeMapper)1 Path (io.gravitee.definition.model.Path)1 Policy (io.gravitee.definition.model.Policy)1 io.gravitee.management.model (io.gravitee.management.model)1 Api (io.gravitee.repository.management.model.Api)1 Membership (io.gravitee.repository.management.model.Membership)1 Bean (org.springframework.context.annotation.Bean)1