gpt4 book ai didi

org.apache.abdera.model.Workspace.addCollection()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 08:05:05 24 4
gpt4 key购买 nike

本文整理了Java中org.apache.abdera.model.Workspace.addCollection()方法的一些代码示例,展示了Workspace.addCollection()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Workspace.addCollection()方法的具体详情如下:
包路径:org.apache.abdera.model.Workspace
类名称:Workspace
方法名:addCollection

Workspace.addCollection介绍

[英]Adds an individual collection to this workspace
[中]将单个集合添加到此工作区

代码示例

代码示例来源:origin: org.apache.abdera/abdera-server

public Workspace asWorkspaceElement(RequestContext request) {
    Workspace workspace = request.getAbdera().getFactory().newWorkspace();
    workspace.setTitle(title);
    for (CollectionInfo collection : this.collections)
      workspace.addCollection(collection.asCollectionElement(request));
    return workspace;
  }
}

代码示例来源:origin: org.fuzzydb.atom/org.fuzzydb.abdera.util

private Document<Service> init_service_doc(Abdera abdera) {
  Factory factory = abdera.getFactory();
  Service service = factory.newService();
  Workspace workspace = service.addWorkspace("Simple");
  try {
    Collection collection = workspace.addCollection("Simple", "atom/feed");
    collection.setAccept("entry");
    collection.addCategories().setFixed(false);
  } catch (Exception e) {
    e.printStackTrace();
  } // FIXME: Document this exception
  return service.getDocument();
}

代码示例来源:origin: org.xcmis/xcmis-restatom

String collectionType = cmisCollectionInfo.getCollectionType();
if (AtomCMIS.COLLECTION_TYPE_ROOT.equals(collectionType))
 ws.addCollection(((CmisCollectionInfo)collectionInfo).asCollectionElement(request, repoPath, info
   .getRootFolderId()));
else
 ws.addCollection(((CmisCollectionInfo)collectionInfo).asCollectionElement(request, repoPath));

代码示例来源:origin: org.apache.tuscany.sca/tuscany-binding-atom-runtime

Collection collection = workspace.addCollection("collection", href );
Feed feed = getFeed( request );
if ( feed != null ) {
  collection.addCategories().setFixed(false);
workspace.addCollection(collection);
service.addWorkspace(workspace);

代码示例来源:origin: org.apache.abdera/abdera-server

public Workspace asWorkspaceElement(RequestContext request) {
    Workspace workspace = request.getAbdera().getFactory().newWorkspace();
    workspace.setTitle(getTitle(null));
    for (CollectionInfo collection : getCollections(request))
      workspace.addCollection(collection.asCollectionElement(request));
    return workspace;
  }
}

代码示例来源:origin: org.xcmis/xcmis-restatom

String collectionType = cmisCollectionInfo.getCollectionType();
if (AtomCMIS.COLLECTION_TYPE_ROOT.equals(collectionType))
 ws.addCollection(((CmisCollectionInfo)collectionInfo).asCollectionElement(request, repoPath, repoInfo
   .getRootFolderId()));
else
 ws.addCollection(((CmisCollectionInfo)collectionInfo).asCollectionElement(request, repoPath));

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com