public void setProduces(Set<MediaType> produces) {
this.produces = produces;
}
public static List<ServiceDocumentCollectionData> buildServiceDocumentCollectionList(UriInfo uriInfo) {
ResourceRegistry resourceRegistry =
RuntimeContextTLS.getRuntimeContext().getAttribute(ResourceRegistry.class);
List<ServiceDocumentCollectionData> collections =
new ArrayList<ServiceDocumentCollectionData>();
for (ResourceRecord record : resourceRegistry.getRecords()) {
ClassMetadata metadata = record.getMetadata();
// Check if the resource is a collection resource
if (metadata.getWorkspaceName() != null) {