use of org.apache.syncope.common.lib.to.ResourceTO in project syncope by apache.
the class VirSchemaDetails method populateAnyTypes.
private void populateAnyTypes(final String resourceKey) {
anyTypes.clear();
if (resourceKey != null) {
ResourceTO resource = resourceRestClient.read(resourceKey);
String adminRealm = getAdminRealm(resource.getConnector());
if (SyncopeConsoleSession.get().owns(StandardEntitlement.RESOURCE_READ, adminRealm)) {
selectedResource = resource;
selectedResource.getProvisions().forEach(provisionTO -> {
anyTypes.put(provisionTO.getAnyType(), provisionTO.getObjectClass());
});
}
}
}
Aggregations