/** * Returns the property values (including information about their descriptors and overwritten values) for * the given resource type in the specified context. * * @param resourceTypeId * @param contextId * @return */ public List<ResourceEditProperty> getPropertiesForResourceType(Integer resourceTypeId, Integer contextId) { ResourceTypeEntity resourceType = entityManager.find(ResourceTypeEntity.class, resourceTypeId); ContextEntity context = entityManager.find(ContextEntity.class, contextId); if (permissionBoundary.hasPermission(Permission.RESOURCETYPE_PROPERTY_DECRYPT, context, Action.ALL, null, resourceType)) { return propertyValueService.decryptProperties(propertyEditingService .loadPropertiesForEditResourceType(resourceType, context)); } return propertyEditingService.loadPropertiesForEditResourceType(resourceType, context); }