result.setPermissionDefinitionData(permissionDefinitionList);
Map<String, PermissionMapping> permissionMapping = new LinkedHashMap<String, PermissionMapping>();
for (CmisPermissionMapping permMapping : aclCapabilities.getMapping()) {
if (permMapping.getKey() != null) {
PermissionMappingDataImpl permMappingData = new PermissionMappingDataImpl();
String key = permMapping.getKey().value();
permMappingData.setKey(key);
permMappingData.setPermissions(permMapping.getPermission());
convertExtension(permMapping, permMappingData);
permissionMapping.put(key, permMappingData);
}
}
result.setPermissionMappingData(permissionMapping);