protected CacheControl initCacheControl(Cache methodCached) { CacheControl cacheControl = new CacheControl(); if (methodCached.isPrivate()) { cacheControl.setPrivate(true); } if (methodCached.maxAge() > -1) { cacheControl.setMaxAge(methodCached.maxAge()); } if (methodCached.sMaxAge() > -1) { cacheControl.setSMaxAge(methodCached.sMaxAge()); } cacheControl.setMustRevalidate((methodCached.mustRevalidate())); cacheControl.setNoStore((methodCached.noStore())); cacheControl.setNoTransform((methodCached.noTransform())); cacheControl.setProxyRevalidate(methodCached.proxyRevalidate()); cacheControl.setNoCache(methodCached.noCache()); return cacheControl; }
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 @NoCache @Produces(MediaType.APPLICATION_JSON) List<ResourceRepresentation> resources(); }
/** * 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; } }
/** * Does not expand hierarchy. Subgroups will not be set. * * @return */ @GET @NoCache @Produces(MediaType.APPLICATION_JSON) public GroupRepresentation 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 PolicyRepresentation toRepresentation();
@GET @Produces(MediaType.APPLICATION_JSON) @NoCache List<PolicyRepresentation> policies();
@GET @Produces(MediaType.APPLICATION_JSON) @NoCache TimePolicyRepresentation 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();
/** * Get key info * * @return */ @GET @NoCache @Produces(MediaType.APPLICATION_JSON) public CertificateRepresentation getKeyInfo();
@GET @Produces(MediaType.APPLICATION_JSON) @NoCache ScopePermissionRepresentation toRepresentation();
@GET @Produces(MediaType.APPLICATION_JSON) @NoCache ResourcePermissionRepresentation toRepresentation();
@GET @Produces(MediaType.APPLICATION_JSON) @NoCache JSPolicyRepresentation toRepresentation();
@GET @Produces(MediaType.APPLICATION_JSON) @NoCache RulePolicyRepresentation toRepresentation();
@GET @Produces(MediaType.APPLICATION_JSON) @NoCache UserPolicyRepresentation toRepresentation();
@GET @Produces(MediaType.APPLICATION_JSON) @NoCache AggregatePolicyRepresentation toRepresentation();