"Attribute " + path.getElement(0)+ " in path " + path.toString() + " is undefined"); "Sub-attribute " + path.getElement(1)+ " in path " + path.toString() + " is undefined"); "Attribute " + path.getElement(0)+ " in path " + path.toString() + " is undefined");
/** * Create a new patch operation. * * @param path The path targeted by this patch operation. * @throws ScimException If an value is not valid. */ PatchOperation(final Path path) throws ScimException { if(path != null) { if(path.size() > 2) { throw BadRequestException.invalidPath( "Path can not target sub-attributes more than one level deep"); } if(path.size() == 2) { Filter valueFilter = path.getElement(1).getValueFilter(); // Allow use of the special case "value" path to reference the value itself. // Any other value filter is for a sub-attribute, which is not permitted. if (valueFilter != null && !valueFilter.getAttributePath().getElement(0).getAttribute().equals("value")) { throw BadRequestException.invalidPath( "Path can not include a value filter on sub-attributes"); } } } this.path = path; }
/** * Create a new patch operation. * * @param path The path targeted by this patch operation. * @throws ScimException If an value is not valid. */ PatchOperation(final Path path) throws ScimException { if(path != null) { if(path.size() > 2) { throw BadRequestException.invalidPath( "Path can not target sub-attributes more than one level deep"); } if(path.size() == 2) { Filter valueFilter = path.getElement(1).getValueFilter(); // Allow use of the special case "value" path to reference the value itself. // Any other value filter is for a sub-attribute, which is not permitted. if (valueFilter != null && !valueFilter.getAttributePath().getElement(0).getAttribute().equals("value")) { throw BadRequestException.invalidPath( "Path can not include a value filter on sub-attributes"); } } } this.path = path; }
if (path.getElement(0).getAttribute().equalsIgnoreCase("value")) "Sub-attribute " + path.getElement(0) + " in value filter for path " + parentPath.toString() + " is undefined");
path.getElement(path.size() - 1).getAttribute() + "[" + i + "]"); checkAttributeValue(prefix, value, valuePath, attribute, results, currentObjectNode, isPartialReplace, isPartialAdd);
path.getElement(path.size()-1).getValueFilter() == null)
path.getElement(path.size()-1).getValueFilter() == null)
Path.Element element = path.getElement(index - 1); field = element.getAttribute(); valueFilter = element.getValueFilter(); Path.Element element = path.getElement(index); field = element.getAttribute(); valueFilter = element.getValueFilter();
Filter valueFilter = path.getElement(path.size() - 1).getValueFilter(); if(attribute.equals(SchemaUtils.SCHEMAS_ATTRIBUTE_DEFINITION) && valueFilter != null)
Path.Element element = path.getElement(index - 1); field = element.getAttribute(); valueFilter = element.getValueFilter(); Path.Element element = path.getElement(index); field = element.getAttribute(); valueFilter = element.getValueFilter();
Filter valueFilter = path == null ? null : path.getElement(path.size() - 1).getValueFilter(); AttributeDefinition attribute = path == null ? null : resourceType.getAttributeDefinition(path); "Attribute " + path.getElement(0)+ " in path " + path.toString() + " must not have a value selection filter " + "because it is not multi-valued");