@Test public void testGetDocumentRef() throws AnnotationException { assertNotNull(uri); resolver = new DefaultNuxeoUriResolver(); DocumentRef ref = resolver.getDocumentRef(uri); assertNotNull(ref); }
public DocumentRef getDocumentRef(URI uri) throws AnnotationException { DocumentView view = null; if (translator.isNuxeoUrn(uri)) { view = translator.getDocumentViewFromUri(uri); } else { view = viewCodecManager.getDocumentViewFromUrl(uri.toString(), true, getBaseUrl(uri)); if (view == null) { return null; } } DocumentLocation location = view.getDocumentLocation(); return location.getDocRef(); }
DefaultNuxeoUriResolver implements UriResolver { public DocumentRef getDocumentRef(URI uri) throws AnnotationException { DocumentView view = null; if (translator.isNuxeoUrn(uri)) { view = translator.getDocumentViewFromUri(uri); } else { view = viewCodecManager.getDocumentViewFromUrl(uri.toString(), true, getBaseUrl(uri)); if (view == null) { return null; } } DocumentLocation location = view.getDocumentLocation(); return location.getDocRef(); } }
DefaultNuxeoUriResolver implements UriResolver { public DocumentRef getDocumentRef(URI uri) throws AnnotationException { DocumentView view = null; if (translator.isNuxeoUrn(uri)) { view = translator.getDocumentViewFromUri(uri); } else { view = viewCodecManager.getDocumentViewFromUrl(uri.toString(), true, getBaseUrl(uri)); if (view == null) { return null; } } DocumentLocation location = view.getDocumentLocation(); return location.getDocRef(); } DefaultNuxeoUriResolver(); }
DefaultNuxeoUriResolver implements UriResolver { public DocumentRef getDocumentRef(URI uri) throws AnnotationException { DocumentView view = null; if (translator.isNuxeoUrn(uri)) { view = translator.getDocumentViewFromUri(uri); } else { view = viewCodecManager.getDocumentViewFromUrl(uri.toString(), true, getBaseUrl(uri)); if (view == null) { return null; } } DocumentLocation location = view.getDocumentLocation(); return location.getDocRef(); } DefaultNuxeoUriResolver(); List<URI> getSearchURI(URI uri); URI translateFromGraphURI(URI uri, String baseUrl); URI translateToGraphURI(URI uri); String getBaseUrl(URI uri); DocumentRef getDocumentRef(URI uri); DocumentLocation getDocumentLocation(URI uri); URI getUri(DocumentView view, String baseUrl); }
DefaultNuxeoUriResolver implements UriResolver { public DocumentRef getDocumentRef(URI uri) throws AnnotationException { DocumentView view = null; if (translator.isNuxeoUrn(uri)) { view = translator.getDocumentViewFromUri(uri); } else { view = viewCodecManager.getDocumentViewFromUrl(uri.toString(), true, getBaseUrl(uri)); if (view == null) { return null; } } DocumentLocation location = view.getDocumentLocation(); return location.getDocRef(); } DefaultNuxeoUriResolver(); List<URI> getSearchURI(URI uri); URI translateFromGraphURI(URI uri, String baseUrl); URI translateToGraphURI(URI uri); String getBaseUrl(URI uri); DocumentRef getDocumentRef(URI uri); DocumentLocation getDocumentLocation(URI uri); URI getUri(DocumentView view, String baseUrl);  }