155156157158159160161162163164165
{ throw new ArchivaRestServiceException( "no cache for key: " + cacheKey, Response.Status.BAD_REQUEST.getStatusCode(), null ); } cache.clear(); return Boolean.TRUE; } @Override public Boolean clearAllCaches()
93949596979899100101102103
public String flush() { if( !StringUtils.isEmpty( cacheKey ) ) { Cache cache = caches.get( cacheKey ); cache.clear(); } return SUCCESS; }
150151152153154155156157158159160
{ throw new ArchivaRestServiceException( "no cache for key: " + cacheKey, Response.Status.BAD_REQUEST.getStatusCode(), null ); } cache.clear(); return Boolean.TRUE; } public Boolean clearAllCaches() throws ArchivaRestServiceException
145146147148149150151152153154155