/** * Get the index content from the specified repository. at the specified path (path is appended to the end of the uri). * * @param repositoryId The repository to retrieve the index content for. */ @Override @GET @ResourceMethodSignature( pathParams = { @PathParam( RepositoryIndexContentPlexusResource.REPOSITORY_ID_KEY ) }, output = IndexBrowserTreeViewResponseDTO.class ) public Object get( Context context, Request request, Response response, Variant variant ) throws ResourceException { return super.get( context, request, response, variant ); } }
throws ResourceException String path = parsePathFromUri(request.getResourceRef().toString()); if (!path.endsWith("/")) { response.redirectPermanent(path + "/"); String repositoryId = getRepositoryId(request); Repository repository = getUnprotectedRepositoryRegistry().getRepository(repositoryId); new IndexBrowserTreeNodeFactory(repository, createRedirectBaseRef(request).toString()); getLogger().warn("Repository access denied, id=" + repositoryId); throw new ResourceException(Status.CLIENT_ERROR_FORBIDDEN, "Access Denied to Repository"); getLogger().error("Repository Not Found, id=" + repositoryId, e); throw new PlexusResourceException(Status.CLIENT_ERROR_NOT_FOUND, "Repository Not Found", e); getLogger().error("Got IO exception while executing treeView, id=" + repositoryId, e); throw new PlexusResourceException(Status.SERVER_ERROR_INTERNAL, e.getMessage(), e);
throws ResourceException String path = parsePathFromUri( request.getResourceRef().toString() ); if ( !path.endsWith( "/" ) ) String repositoryId = getRepositoryId( request ); Repository repository = getUnprotectedRepositoryRegistry().getRepository( repositoryId ); new IndexBrowserTreeNodeFactory( indexerManager.getRepositoryBestIndexContext( repository.getId() ), repository, createRedirectBaseRef( request ).toString() ); getLogger().warn( "Repository access denied, id=" + repositoryId ); throw new ResourceException( Status.CLIENT_ERROR_FORBIDDEN, "Access Denied to Repository" ); getLogger().error( "Repository Not Found, id=" + repositoryId, e ); throw new PlexusResourceException( Status.CLIENT_ERROR_NOT_FOUND, "Repository Not Found", e );
/** * Get the index content from the specified repository. at the specified path (path is appended to the end of the * uri). * * @param repositoryId The repository to retrieve the index content for. */ @Override @GET @ResourceMethodSignature(pathParams = {@PathParam(RepositoryIndexContentPlexusResource.REPOSITORY_ID_KEY)}, output = IndexBrowserTreeViewResponseDTO.class) public Object get(Context context, Request request, Response response, Variant variant) throws ResourceException { return super.get(context, request, response, variant); } }
/** * Get the index content from the specified group at the specified path. * Note that appended to the end of the url should be the path that you want to retrieve index content for. * i.e. /content/org/blah will retrieve the content of the index at that node. * * @param groupId The group id to retrieve index content from. */ @Override @GET @ResourceMethodSignature(pathParams = {@PathParam(GroupIndexContentPlexusResource.GROUP_ID_KEY)}, output = IndexBrowserTreeViewResponseDTO.class) public Object get(Context context, Request request, Response response, Variant variant) throws ResourceException { return super.get(context, request, response, variant); } }
/** * Get the index content from the specified group at the specified path. * Note that appended to the end of the url should be the path that you want to retrieve index content for. * i.e. /content/org/blah will retrieve the content of the index at that node. * * @param groupId The group id to retrieve index content from. */ @Override @GET @ResourceMethodSignature( pathParams = { @PathParam( GroupIndexContentPlexusResource.GROUP_ID_KEY ) }, output = IndexBrowserTreeViewResponseDTO.class ) public Object get( Context context, Request request, Response response, Variant variant ) throws ResourceException { return super.get( context, request, response, variant ); } }