congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ObjectDeltaObject.getAnyObject
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: Evolveum/midpoint

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

origin: Evolveum/midpoint

public void update(ItemDelta<?, ?> itemDelta) throws SchemaException {
  if (delta == null) {
    delta = getAnyObject().getPrismContext().deltaFactory().object()
        .createModifyDelta(getAnyObject().getOid(), itemDelta, getAnyObject().getCompileTimeClass()
        );
  } else {
    delta.swallow(itemDelta);
    itemDelta.applyTo(newObject);
  }
}
origin: Evolveum/midpoint

@Override
public PrismObjectDefinition<O> getDefinition() {
  PrismObject<O> anyObject = getAnyObject();
  if (anyObject != null) {
    return anyObject.getDefinition();
  }
  if (delta != null) {
    return delta.getPrismContext().getSchemaRegistry().findObjectDefinitionByCompileTimeClass(delta.getObjectTypeClass());
  }
  return null;
}
origin: Evolveum/midpoint

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

public <V extends PrismValue, D extends ItemDefinition, AH extends AssignmentHolderType> Source<V,D> constructDefaultSource(ObjectDeltaObject<AH> focusOdo) throws SchemaException {
  if (objectTemplateMappingType != null) {
    return null;
  }
  PrismObject<AH> focus = focusOdo.getAnyObject();
  assignmentDef = focus.getDefinition().findContainerDefinition(FocusType.F_ASSIGNMENT);
  PrismContainer<AssignmentType> assignment = assignmentDef.instantiate();
  assignmentType = assignment.createNewValue().asContainerable();
  QName relation = null;
  AssignmentPropertiesSpecificationType assignmentProperties = autoassignMappingType.getAssignmentProperties();
  if (assignmentProperties != null) {
    relation = assignmentProperties.getRelation();
    assignmentType.getSubtype().addAll(assignmentProperties.getSubtype());
  }
  assignmentType.targetRef(role.getOid(), role.asPrismObject().getDefinition().getTypeName(), relation);
  Source<PrismContainerValue<AssignmentType>, PrismContainerDefinition<AssignmentType>> source =
      new Source<>(assignment, null, assignment, FocusType.F_ASSIGNMENT);
  return (Source<V, D>) source;
}

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

String contextDesc = "object template "+objectTemplateDesc+ " for focus "+focusOdo.getAnyObject();
Collection<ItemDelta<?,?>> itemDeltas = computeItemDeltas(outputTripleMap, itemDefinitionsMap, focusOdo.getObjectDelta(), focusOdo.getNewObject(),
    focusDefinition, contextDesc);
com.evolveum.midpoint.prism.utilObjectDeltaObjectgetAnyObject

Popular methods of ObjectDeltaObject

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Menu (java.awt)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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