class PurgeApiAuthorizationFilter extends SpaceNameBasedAuthorizationFilter {

    @Override
    protected CloudTarget extractTarget(HttpServletRequest request) {
        String organizationName = request.getParameter(ConfigurationEntriesResource.REQUEST_PARAM_ORGANIZATION);
        String spaceName = request.getParameter(ConfigurationEntriesResource.REQUEST_PARAM_SPACE);
        if (StringUtils.isAnyEmpty(organizationName, spaceName)) {
            throw new SLException(Messages.ORG_AND_SPACE_MUST_BE_SPECIFIED);
        }
        return new CloudTarget(organizationName, spaceName);
    }

    @Inject public  PurgeApiAuthorizationFilter(AuthorizationChecker authorizationChecker);

}