// ------------------------------------------------------------------------- @Path(PATH_CLIENTS + "/{viewClientId}") public DataViewClientResource getViewClient( @Context UriInfo uriInfo, @PathParam("viewClientId") String viewClientIdString) { UniqueIdentifier viewClientId = UniqueIdentifier.parse(viewClientIdString); DataViewClientResource viewClientResource = _createdViewClients.get(viewClientId); if (viewClientResource != null) { return viewClientResource; } ViewClient viewClient = _viewProcessor.getViewClient(viewClientId); URI viewProcessorUri = getViewProcessorUri(uriInfo); return createViewClientResource(viewClient, viewProcessorUri); }
// ------------------------------------------------------------------------- @Path(PATH_PROCESSES + "/{viewProcessId}") public DataViewProcessResource getViewProcess(@PathParam("viewProcessId") String viewProcessId) { ViewProcess view = _viewProcessor.getViewProcess(UniqueIdentifier.parse(viewProcessId)); return new DataViewProcessResource(view); }