tableData[i][0] = perm.toString(); tableData[i][1] = perm.getOwner(); tableData[i][2] = perm.getOwnerGroup(); tableData[i][3] = new CollectionName(childCollections[i]);
tableData.add(new ResourceDescriptor.Collection( childCollections[i], perm.getOwner(), perm.getOwnerGroup(), perm.toString()));
    protected void getResources() throws XMLDBException {        if (current == null)            return;        setProperties();        UserManagementService mgtService = (UserManagementService) current                .getService("UserManagementService", "1.0");        String childCollections[] = current.listChildCollections();        String childResources[] = current.listResources();        resources = new String[childCollections.length + childResources.length];        int i = 0;        Collection child;        Permission perm;        Object tableData[][] = new Object[resources.length][4];        String cols[] = new String[4];        for (; i < childCollections.length; i++) {            child = current.getChildCollection(childCollections[i]);            perm = mgtService.getPermissions(child);            if (properties.getProperty("permissions").equals("true")) {                cols[0] = perm.toString();                cols[1] = perm.getOwner();                cols[2] = perm.getOwnerGroup();                cols[3] = childCollections[i];                resources[i] = 'd' + formatString(cols, colSizes);            } else                resources[i] = childCollections[i];            if (startGUI) {                tableData[i][0] = perm.toString();                tableData[i][1] = perm.getOwner();                tableData[i][2] = perm.getOwnerGroup();                tableData[i][3] = new CollectionName(childCollections[i]);            }            completitions.add(childCollections[i]);        }        Resource res;        for (int j = 0; j < childResources.length; i++, j++) {            res = current.getResource(childResources[j]);            perm = mgtService.getPermissions(res);            if (perm == null)                System.out.println("null");            if (properties.getProperty("permissions").equals("true")) {                resources[i] = '-' + perm.toString() + '\t' + perm.getOwner()                + '\t' + perm.getOwnerGroup() + '\t'                        + childResources[j];            } else                resources[i] = childResources[j];            if (startGUI) {                tableData[i][0] = perm.toString();                tableData[i][1] = perm.getOwner();                tableData[i][2] = perm.getOwnerGroup();                tableData[i][3] = childResources[j];            }            completitions.add(childResources[j]);        }        if (startGUI)            frame.setResources(tableData);    }