catalogFacade.listObjects(new String[]{PART_TYPE_GROUP}, null, null, null, false);
/** * Initializes memory copy of users directory */ protected void fetchUsers() throws CatalogException { List<CatalogObjectMeta> userObjects = catalogFacade.listObjects(new String[]{PART_TYPE_USER}, null, null, null, false); for (CatalogObjectMeta item : userObjects) { if (!item.getStatus().isDeleted()) { CatalogObjectPart<String> part = catalogFacade.getPart(item.getId(), PART_TYPE_USER, null); User user = (User)serializer.toObject(item.getId().getId(), part.getData()); usersByLogin.put(user.getLogin(), user); usersById.put(user.getExtId(), user); } } }
/** * Initializes memory copy of roles directory * @throws CatalogException */ protected void fetchRoles() throws CatalogException { List<CatalogObjectMeta> roleObjects = catalogFacade.listObjects(new String[]{PART_TYPE_ROLE}, null, null, null, false); for (CatalogObjectMeta item : roleObjects) { if (!item.getStatus().isDeleted()) { CatalogObjectPart<String> part = catalogFacade.getPart(item.getId(), PART_TYPE_ROLE, null); Role role = (Role)serializer.toObject(item.getId().getId(), part.getData()); roles.put(role.getExtId(), role); } } }