@NotNull public static List<ItemPath> pathListFromStrings(List<String> pathsAsStrings, PrismContext prismContext) { List<ItemPath> rv = new ArrayList<>(); if (pathsAsStrings != null) { for (String pathAsString : pathsAsStrings) { rv.add(prismContext.itemPathParser().asItemPath(pathAsString)); } } return rv; }
public <O extends ObjectType, T> List<O> getObjectsInConflictOnPropertyValue(O objectType, String propertyPathString, T propertyValue, String matchingRuleName, boolean getAllConflicting) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException { Validate.notEmpty(propertyPathString, "Empty property path"); OperationResult result = getCurrentResult(MidpointFunctions.class.getName() + ".getObjectsInConflictOnPropertyValue"); ItemPath propertyPath = prismContext.itemPathParser().asItemPath(propertyPathString); QName matchingRuleQName = new QName(matchingRuleName); // no namespace for now return getObjectsInConflictOnPropertyValue(objectType, propertyPath, propertyValue, matchingRuleQName, getAllConflicting, getCurrentTask(), result); }
public <T> boolean isUniquePropertyValue(ObjectType objectType, String propertyPathString, T propertyValue) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException { Validate.notEmpty(propertyPathString, "Empty property path"); OperationResult result = getCurrentResult(MidpointFunctions.class.getName() + ".isUniquePropertyValue"); ItemPath propertyPath = prismContext.itemPathParser().asItemPath(propertyPathString); return isUniquePropertyValue(objectType, propertyPath, propertyValue, getCurrentTask(), result); }