@GET @NoCache @Produces(MediaType.APPLICATION_JSON) List<ResourceRepresentation> resources(); }
protected CacheControl initCacheControl(NoCache value) { CacheControl cacheControl = new CacheControl(); cacheControl.setNoCache(true); cacheControl.setNoTransform(false); for (String field : value.fields()) cacheControl.getNoCacheFields().add(field); return cacheControl; } }
/** * Get all groups. * @return A list containing all groups. */ @GET @NoCache @Produces(MediaType.APPLICATION_JSON) List<GroupRepresentation> groups();
protected CacheControl initCacheControl(NoCache value) { CacheControl cacheControl = new CacheControl(); cacheControl.setNoCache(true); cacheControl.setNoTransform(false); for (String field : value.fields()) cacheControl.getNoCacheFields().add(field); return cacheControl; } }
@GET @Produces(MediaType.APPLICATION_JSON) @NoCache PolicyRepresentation toRepresentation();
protected CacheControl initCacheControl(NoCache value) { CacheControl cacheControl = new CacheControl(); cacheControl.setNoCache(true); cacheControl.setNoTransform(false); for (String field : value.fields()) cacheControl.getNoCacheFields().add(field); return cacheControl; } }
@GET @Produces(MediaType.APPLICATION_JSON) @NoCache List<PolicyRepresentation> policies();
@GET @Produces(MediaType.APPLICATION_JSON) @NoCache TimePolicyRepresentation toRepresentation();
/** * Does not expand hierarchy. Subgroups will not be set. * * @return */ @GET @NoCache @Produces(MediaType.APPLICATION_JSON) public GroupRepresentation toRepresentation();
@GET @Produces(MediaType.APPLICATION_JSON) @NoCache ScopeRepresentation toRepresentation();
@GET @NoCache @Produces(MediaType.APPLICATION_JSON) List<ScopeRepresentation> scopes();
@GET @Produces(MediaType.APPLICATION_JSON) @NoCache ResourceRepresentation toRepresentation();
@Path("/dependentPolicies") @GET @Produces(MediaType.APPLICATION_JSON) @NoCache List<PolicyRepresentation> dependentPolicies();
@Path("/associatedPolicies") @GET @Produces(MediaType.APPLICATION_JSON) @NoCache List<PolicyRepresentation> associatedPolicies();
@Path("/associatedPolicies") @GET @Produces(MediaType.APPLICATION_JSON) @NoCache List<PolicyRepresentation> associatedPolicies();
@Path("/resources") @GET @Produces("application/json") @NoCache List<ResourceRepresentation> resources();
@Path("providers") @GET @Produces(MediaType.APPLICATION_JSON) @NoCache List<PolicyProviderRepresentation> policyProviders();
@Path("/resources") @GET @Produces("application/json") @NoCache List<ResourceRepresentation> resources();
@Path("/associatedPolicies") @GET @Produces(MediaType.APPLICATION_JSON) @NoCache List<PolicyRepresentation> associatedPolicies();
@Path("/resources") @GET @Produces("application/json") @NoCache List<ResourceRepresentation> resources();