public static URI buildDefaultDocumentQueryUri(URI hostUri, String selfLink, boolean doExpand, boolean includeDeleted, ServiceOption cap) { URI indexUri = UriUtils.buildUri(hostUri, ServiceUriPaths.CORE_DOCUMENT_INDEX); return buildIndexQueryUri(indexUri, selfLink, doExpand, includeDeleted, cap); }
public static URI buildOperationTracingQueryUri(ServiceHost host, String selfLink, boolean doExpand, boolean includeDeleted, ServiceOption cap) { URI hostURI = UriUtils.extendUri(host.getUri(), ServiceUriPaths.CORE_OPERATION_INDEX); return buildIndexQueryUri(hostURI, selfLink, doExpand, includeDeleted, cap); }
public static URI buildIndexQueryUri(URI indexURI, String selfLink, Long version, boolean doExpand, boolean includeDeleted, ServiceOption cap) { if (cap == null) { cap = ServiceOption.NONE; } List<String> queryArgs = new ArrayList<>(); queryArgs.add(ServiceDocument.FIELD_NAME_SELF_LINK); queryArgs.add(selfLink); if (version != null) { queryArgs.add(ServiceDocument.FIELD_NAME_VERSION); queryArgs.add(version.toString()); } queryArgs.add(URI_PARAM_CAPABILITY); queryArgs.add(cap.toString()); if (includeDeleted) { queryArgs.add(URI_PARAM_INCLUDE_DELETED); queryArgs.add(Boolean.TRUE.toString()); } if (doExpand) { queryArgs.add(URI_PARAM_ODATA_EXPAND); queryArgs.add(ServiceDocumentQueryResult.FIELD_NAME_DOCUMENT_LINKS); } return extendUriWithQuery(indexURI, queryArgs.toArray(new String[queryArgs.size()])); }
public static URI buildDocumentQueryUri(ServiceHost host, String indexServicePath, String selfLink, boolean doExpand, boolean includeDeleted, ServiceOption cap) { URI indexServiceUri = buildUri(host, indexServicePath); return buildIndexQueryUri(indexServiceUri, selfLink, doExpand, includeDeleted, cap); }
getStateUri = UriUtils.buildIndexQueryUri( indexService.getUri(), serviceStartPost.getUri().getPath(),
indexUri = UriUtils.buildIndexQueryUri(indexUri, e.getKey(), true, false, ServiceOption.PERSISTENCE);
indexUri = UriUtils.buildIndexQueryUri(indexUri, e.getKey(), true, false, ServiceOption.PERSISTENCE);
URI queryUri = UriUtils.buildIndexQueryUri(indexUri, documentSelfLink, true, false, null);
URI queryUri = UriUtils.buildIndexQueryUri(indexUri, documentSelfLink, true, false, null);