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

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

本文整理了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

public static Collection transformWSCollectiontoCollection(WSRegistryServiceClient client, WSCollection wsCollection, Object content) throws RegistryException, IOException, ClassNotFoundException {
  Collection collection = (Collection) transformWSResourcetoResource(client, wsCollection, content);
  String[] children = wsCollection.getChildren();
  if(children==null){
    return collection;
  }
  //some time NULL values contains in children therefore have to filter
  //And also fixed the RXT deploy issue on mounting.(ws & atom)
  if (children.length > 0) {
    List<String> childList = new ArrayList<String>();
    for (String child : children) {
      if (child != null) {
        childList.add(child);
      }
    }
    if (childList.size() > 0) {
      children = childList.toArray(new String[childList.size()]);
      collection.setChildren(children);
    }
  }
  return collection;
}

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

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

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

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

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

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

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

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

相关文章