Tabnine Logo
ObjectDeltaObject.getNewObject
Code IndexAdd Tabnine to your IDE (free)

How to use
getNewObject
method
in
com.evolveum.midpoint.prism.util.ObjectDeltaObject

Best Java code snippets using com.evolveum.midpoint.prism.util.ObjectDeltaObject.getNewObject (Showing top 15 results out of 315)

origin: Evolveum/midpoint

public PrismObject<O> getNewObject() {
  if (odo == null) {
    return null;
  }
  return odo.getNewObject();
}

origin: Evolveum/midpoint

/**
 * Adds map of extra variables to the expression.
 * If there are variables with deltas (ObjectDeltaObject) it takes the "new" version
 * of the object.
 */
public void addVariableDefinitionsNew(Map<QName, Object> extraVariables) {
  for (Entry<QName, Object> entry : extraVariables.entrySet()) {
    Object value = entry.getValue();
    if (value instanceof ObjectDeltaObject<?>) {
      ObjectDeltaObject<?> odo = (ObjectDeltaObject<?>)value;
      value = odo.getNewObject();
    } else if (value instanceof ItemDeltaItem<?,?>) {
      ItemDeltaItem<?,?> idi = (ItemDeltaItem<?,?>)value;
      value = idi.getItemNew();
    }
    variables.put(entry.getKey(), value);
  }
}
origin: Evolveum/midpoint

public <O extends ObjectType> PrismObject<O> getObjectNew(QName name) throws SchemaException {
  Object object = get(name);
  if (object == null) {
    return null;
  }
  if (object instanceof PrismObject) {
    return (PrismObject<O>) object;
  }
  if (object instanceof ObjectDeltaObject<?>) {
    ObjectDeltaObject<O> odo = (ObjectDeltaObject<O>)object;
    return odo.getNewObject();
  }
  throw new SchemaException("Expected object in variable "+name+", but found type "+object.getClass());
}
origin: Evolveum/midpoint

@Override
public void shortDump(StringBuilder sb) {
  sb.append("odo=");
  if (odo == null) {
    sb.append("null");
  } else {
    sb.append("(");
    sb.append(odo.getOldObject()).append(",");
    sb.append(odo.getObjectDelta()).append(",");
    sb.append(odo.getNewObject());
    sb.append(")");
  }
  sb.append(",");
  shortDumpElement(sb, "target", target);
  shortDumpElement(sb, "relation", relation);
  if (orderConstraints != null) {
    sb.append("orderConstraints=");
    SchemaDebugUtil.shortDumpOrderConstraintsList(sb, orderConstraints);
    sb.append(", ");
  }
  if (sb.length() > 1) {
    sb.setLength(sb.length() - 2);
  }
}
origin: Evolveum/midpoint

public <V extends PrismValue, D extends ItemDefinition , AH extends AssignmentHolderType> MappingImpl<V, D> createFocusMapping(final MappingFactory mappingFactory,
    final LensContext<AH> context, final MappingType mappingType, ObjectType originObject,
    ObjectDeltaObject<AH> focusOdo, AssignmentPathVariables assignmentPathVariables, PrismObject<SystemConfigurationType> configuration,
    XMLGregorianCalendar now, String contextDesc, Task task, OperationResult result) throws SchemaException, ExpressionEvaluationException, ObjectNotFoundException, CommunicationException, ConfigurationException, SecurityViolationException {
  Integer iteration = null;
  String iterationToken = null;
  if (focusOdo.getNewObject() != null) {
    AH focusNewType = focusOdo.getNewObject().asObjectable();
    iteration = focusNewType.getIteration();
    iterationToken = focusNewType.getIterationToken();
  } else if (focusOdo.getOldObject() != null) {
    AH focusOldType = focusOdo.getOldObject().asObjectable();
    iteration = focusOldType.getIteration();
    iterationToken = focusOldType.getIterationToken();
  }
  return createFocusMapping(mappingFactory, context, mappingType, originObject, focusOdo, null, focusOdo.getAnyObject(), assignmentPathVariables,
      iteration, iterationToken, configuration, now, contextDesc, task, result);
}
origin: Evolveum/midpoint

  return false;
PrismObject<O> newObject = odo.getNewObject();
if (newObject == null) {
  throw new IllegalStateException("No new object in odo "+odo);
origin: Evolveum/midpoint

    .getDefaultExpressionVariables(getFocusOdo().getNewObject().asObjectable(), null, null, null);
if (assignmentPathVariables == null) {
  assignmentPathVariables = LensUtil.computeAssignmentPathVariables(getAssignmentPath());
origin: Evolveum/midpoint

private <R extends AbstractRoleType> boolean isVirtualAssignment(AssignmentPathSegmentImpl segment, EvaluationContext ctx)
    throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException {
  AH focusNew = focusOdo.getNewObject().asObjectable();
  Collection<R> forcedRoles = new HashSet<>();
  try {
origin: Evolveum/midpoint

XMLGregorianCalendar nextRecomputeTime = collectTripleFromMappings(context, mappings, phase, focusOdo, focusOdo.getNewObject(), 
    outputTripleMap, iteration, iterationToken, now, task, result);
Collection<ItemDelta<?,?>> itemDeltas = computeItemDeltas(outputTripleMap, itemDefinitionsMap, focusOdo.getObjectDelta(), focusOdo.getNewObject(),
    focusDefinition, contextDesc);
origin: Evolveum/midpoint

consolidator.setItemDefinition(itemDefinition);
consolidator.setAprioriItemDelta(getAprioriItemDelta(focusOdo.getObjectDelta(), path));
consolidator.setItemContainer(focusOdo.getNewObject());
consolidator.setValueMatcher(null);
consolidator.setComparator(null);
origin: Evolveum/midpoint

  mappingBuilder.conditionMaskOld(false);
if (focusOdo.getNewObject() == null) {
  mappingBuilder.conditionMaskNew(false);
origin: Evolveum/midpoint

  builder = builder.conditionMaskOld(false);
if (getFocusOdo().getNewObject() == null) {
  builder = builder.conditionMaskNew(false);
origin: Evolveum/midpoint

ObjectDeltaObject<AH> focusOdo = focusContext.getObjectDeltaObject();
Collection<ItemDelta<?,?>> focusDeltas = objectTemplateProcessor.computeItemDeltas(focusOutputTripleMap, null,
    focusOdo.getObjectDelta(), focusOdo.getNewObject(), focusContext.getObjectDefinition(),
    "focus mappings in assignments of "+focusContext.getHumanReadableName());
LOGGER.trace("Computed focus deltas: {}", focusDeltas);
origin: Evolveum/midpoint

protected AssignmentEvaluator<UserType> createAssignmentEvaluator(ObjectDeltaObject<UserType> focusOdo) throws ObjectNotFoundException, SchemaException {
  LensContext<UserType> lensContext = createLensContext(UserType.class);
  LensFocusContext<UserType> focusContext = lensContext.getOrCreateFocusContext();
  focusContext.setObjectOld(focusOdo.getOldObject());
  focusContext.setPrimaryDelta(focusOdo.getObjectDelta());
  focusContext.setObjectCurrent(focusOdo.getOldObject());
  focusContext.setObjectNew(focusOdo.getNewObject());
  return new AssignmentEvaluator.Builder<UserType>()
      .repository(repositoryService)
      .focusOdo(focusOdo)
      .objectResolver(objectResolver)
      .systemObjectCache(systemObjectCache)
      .relationRegistry(relationRegistry)
      .prismContext(prismContext)
      .activationComputer(activationComputer)
      .now(clock.currentTimeXMLGregorianCalendar())
      .mappingFactory(mappingFactory)
      .mappingEvaluator(mappingEvaluator)
      .lensContext(lensContext)
      .build();
}
origin: Evolveum/midpoint

boolean isAssignmentValid = LensUtil.isAssignmentValid(focusOdo.getNewObject().asObjectable(), assignmentType, 
    now, activationComputer, focusStateModel);
if (isAssignmentValid || segment.isValidityOverride()) {
com.evolveum.midpoint.prism.utilObjectDeltaObjectgetNewObject

Popular methods of ObjectDeltaObject

  • <init>
  • getObjectDelta
  • getOldObject
  • getAnyObject
  • clone
  • equals
  • findIdi
  • hashCode
  • recompute
  • create
  • dumpObject
  • getDefinition
  • dumpObject,
  • getDefinition,
  • hasAnyObject,
  • normalizeValuesToDelete,
  • recomputeIfNeeded,
  • update

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now