org.wso2.carbon.registry.core.Collection.setChildren()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(152)

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

Collection.setChildren介绍

暂无

代码示例

代码示例来源:origin: org.wso2.carbon.registry/org.wso2.carbon.registry.ws.client

  1. public static Collection transformWSCollectiontoCollection(WSRegistryServiceClient client, WSCollection wsCollection, Object content) throws RegistryException, IOException, ClassNotFoundException {
  2. Collection collection = (Collection) transformWSResourcetoResource(client, wsCollection, content);
  3. String[] children = wsCollection.getChildren();
  4. if(children==null){
  5. return collection;
  6. }
  7. //some time NULL values contains in children therefore have to filter
  8. //And also fixed the RXT deploy issue on mounting.(ws & atom)
  9. if (children.length > 0) {
  10. List<String> childList = new ArrayList<String>();
  11. for (String child : children) {
  12. if (child != null) {
  13. childList.add(child);
  14. }
  15. }
  16. if (childList.size() > 0) {
  17. children = childList.toArray(new String[childList.size()]);
  18. collection.setChildren(children);
  19. }
  20. }
  21. return collection;
  22. }

代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.user.mgt

  1. parent = (Collection) tenentRegistry.newCollection();
  2. parent.setProperty(UserMgtConstants.DISPLAY_NAME, "All Permissions");
  3. parent.setChildren(new String[]{regRoot.getPath(), appRoot.getPath()});

代码示例来源:origin: wso2/carbon-identity-framework

  1. parent = (Collection) tenentRegistry.newCollection();
  2. parent.setProperty(UserMgtConstants.DISPLAY_NAME, "All Permissions");
  3. parent.setChildren(new String[]{regRoot.getPath(), appRoot.getPath()});

代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.user.mgt

  1. parent = (Collection) tenentRegistry.newCollection();
  2. parent.setProperty(UserMgtConstants.DISPLAY_NAME, "All Permissions");
  3. parent.setChildren(new String[]{regRoot.getPath(), appRoot.getPath()});

代码示例来源:origin: wso2/carbon-identity-framework

  1. parent = (Collection) tenentRegistry.newCollection();
  2. parent.setProperty(UserMgtConstants.DISPLAY_NAME, "All Permissions");
  3. parent.setChildren(new String[]{regRoot.getPath(), appRoot.getPath()});

相关文章