congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ExtensionType.asPrismContainerValue
Code IndexAdd Tabnine to your IDE (free)

How to use
asPrismContainerValue
method
in
com.evolveum.midpoint.xml.ns._public.common.common_3.ExtensionType

Best Java code snippets using com.evolveum.midpoint.xml.ns._public.common.common_3.ExtensionType.asPrismContainerValue (Showing top 20 results out of 315)

origin: Evolveum/midpoint

@Override
public boolean equals(Object object) {
  if (!(object instanceof ExtensionType)) {
    return false;
  }
  ExtensionType other = ((ExtensionType) object);
  return asPrismContainerValue().equivalent(other.asPrismContainerValue());
}
origin: Evolveum/midpoint

public static void fromJaxb(ExtensionType jaxb, RAssignmentExtension repo, RAssignmentExtensionType type,
    RepositoryContext repositoryContext) throws DtoTranslationException {
  Validate.notNull(repo, "Repo object must not be null.");
  Validate.notNull(jaxb, "JAXB object must not be null.");
  fromJaxb(jaxb.asPrismContainerValue(), repo, type, repositoryContext);
}
origin: Evolveum/midpoint

@Override
public String toString() {
  return asPrismContainerValue().toString();
}
origin: Evolveum/midpoint

@Override
public int hashCode() {
  return asPrismContainerValue().hashCode();
}
origin: Evolveum/midpoint

@XmlAttribute(name = "id")
public Long getId() {
  return asPrismContainerValue().getId();
}
origin: Evolveum/midpoint

@XmlAnyElement(lax = true)
public List<Object> getAny() {
  return PrismForJAXBUtil.getAny(asPrismContainerValue(), Object.class);
}
origin: Evolveum/midpoint

public void setId(Long value) {
  asPrismContainerValue().setId(value);
}
origin: Evolveum/midpoint

@SuppressWarnings("unchecked")
public static <T> T getExtensionItemRealValue(@Nullable ExtensionType extension, @NotNull QName itemName) {
  if (extension == null) {
    return null;
  }
  Item item = extension.asPrismContainerValue().findItem(ItemName.fromQName(itemName));
  return item != null ? (T) item.getRealValue() : null;
}
origin: Evolveum/midpoint

public void setExtension(ExtensionType value) {
  PrismContainerValue fieldContainerValue = ((value!= null)?value.asPrismContainerValue():null);
  PrismForJAXBUtil.setFieldContainerValue(asPrismContainerValue(), F_EXTENSION, fieldContainerValue);
}
origin: Evolveum/midpoint

public void setExtension(ExtensionType value) {
  PrismContainerValue fieldContainerValue = ((value!= null)?value.asPrismContainerValue():null);
  PrismForJAXBUtil.setFieldContainerValue(asPrismContainerValue(), F_EXTENSION, fieldContainerValue);
}
origin: Evolveum/midpoint

public void setExtension(ExtensionType value) {
  PrismContainerValue fieldContainerValue = ((value!= null)?value.asPrismContainerValue():null);
  PrismForJAXBUtil.setFieldContainerValue(asPrismContainerValue(), F_EXTENSION, fieldContainerValue);
}
origin: Evolveum/midpoint

public void setExtension(ExtensionType value) {
  PrismContainerValue fieldContainerValue = ((value!= null)?value.asPrismContainerValue():null);
  PrismForJAXBUtil.setFieldContainerValue(asPrismContainerValue(), F_EXTENSION, fieldContainerValue);
}
origin: Evolveum/midpoint

public void setExtension(ExtensionType value) {
  PrismContainerValue fieldContainerValue = ((value!= null)?value.asPrismContainerValue():null);
  PrismForJAXBUtil.setFieldContainerValue(asPrismContainerValue(), F_EXTENSION, fieldContainerValue);
}
origin: Evolveum/midpoint

public void setExtension(ExtensionType value) {
  PrismContainerValue fieldContainerValue = ((value!= null)?value.asPrismContainerValue():null);
  PrismForJAXBUtil.setFieldContainerValue(asPrismContainerValue(), F_EXTENSION, fieldContainerValue);
}
origin: Evolveum/midpoint

public ExtensionType clone() {
  ExtensionType object = new ExtensionType();
  PrismContainerValue value = asPrismContainerValue().clone();
  object.setupContainerValue(value);
  return object;
}
origin: Evolveum/midpoint

public<X >X end() {
  return ((X)((PrismContainerValue)((PrismContainer) asPrismContainerValue().getParent()).getParent()).asContainerable());
}
origin: Evolveum/midpoint

public static String retrieveUsualNamespacePrefix(ConnectorType connectorType) {
  if (connectorType.getExtension() != null) {
    PrismContainerValue<ExtensionType> ext = connectorType.getExtension().asPrismContainerValue();
    PrismProperty<String> prefixProp = ext.findProperty(SchemaConstants.ICF_CONNECTOR_USUAL_NAMESPACE_PREFIX);
    if (prefixProp != null) {
      return prefixProp.getRealValue();
    }
  }
  return null;
}
origin: Evolveum/midpoint

public static ExtensionType collectExtensions(AssignmentPath path, int startAt, PrismContext prismContext) throws SchemaException {
  ExtensionType rv = new ExtensionType(prismContext);
  PrismContainerValue<?> pcv = rv.asPrismContainerValue();
  for (int i = startAt; i < path.getSegments().size(); i++) {
    AssignmentPathSegment segment = path.getSegments().get(i);
    AssignmentType assignment = segment.getAssignmentAny();
    if (assignment != null && assignment.getExtension() != null) {
      ObjectTypeUtil.mergeExtension(pcv, assignment.getExtension().asPrismContainerValue());
    }
    if (segment.getTarget() != null && segment.getTarget().getExtension() != null) {
      ObjectTypeUtil.mergeExtension(pcv, segment.getTarget().getExtension().asPrismContainerValue());
    }
  }
  return rv;
}
origin: Evolveum/midpoint

public static void removeTriggersForWorkItem(Task wfTask, String workItemId, OperationResult result) {
  List<PrismContainerValue<TriggerType>> toDelete = new ArrayList<>();
  for (TriggerType triggerType : wfTask.getTaskPrismObject().asObjectable().getTrigger()) {
    if (WfTimedActionTriggerHandler.HANDLER_URI.equals(triggerType.getHandlerUri())) {
      PrismProperty workItemIdProperty = triggerType.getExtension().asPrismContainerValue()
          .findProperty(SchemaConstants.MODEL_EXTENSION_WORK_ITEM_ID);
      if (workItemIdProperty != null && workItemId.equals(workItemIdProperty.getRealValue())) {
        toDelete.add(triggerType.clone().asPrismContainerValue());
      }
    }
  }
  removeSelectedTriggers(wfTask, toDelete, result);
}
origin: Evolveum/midpoint

private void checkExtension(ExtensionType extension, String sourceDescription) throws SchemaException {
  PrismContainerValue<ExtensionType> extensionValueFromJaxb = extension.asPrismContainerValue();
  assertNotNull("No extension container in "+sourceDescription+" (jaxb)", extensionValueFromJaxb);
  assertNotNull("No extension definition in "+sourceDescription+" (jaxb)", extensionValueFromJaxb.getParent().getDefinition());
  assertTrue("Not runtime in definition in "+sourceDescription+" (jaxb)", extensionValueFromJaxb.getParent().getDefinition().isRuntimeSchema());
  PrismProperty<Integer> intProperty = extensionValueFromJaxb.findOrCreateProperty(EXTENSION_INT_TYPE_ELEMENT);
  PrismAsserts.assertDefinition(intProperty.getDefinition(), EXTENSION_INT_TYPE_ELEMENT, DOMUtil.XSD_INT, 0, -1);
  intProperty.setRealValue(15);
  PrismProperty<String> stringProperty = extensionValueFromJaxb.findOrCreateItem(EXTENSION_STRING_TYPE_ELEMENT, PrismProperty.class);
  PrismAsserts.assertDefinition(stringProperty.getDefinition(), EXTENSION_STRING_TYPE_ELEMENT, DOMUtil.XSD_STRING, 0, -1);
  stringProperty.setRealValue("fifteen men on a dead man chest");
}
com.evolveum.midpoint.xml.ns._public.common.common_3ExtensionTypeasPrismContainerValue

Popular methods of ExtensionType

    Popular in Java

    • Making http post requests using okhttp
    • getSupportFragmentManager (FragmentActivity)
    • compareTo (BigDecimal)
    • scheduleAtFixedRate (Timer)
    • Rectangle (java.awt)
      A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
    • FileNotFoundException (java.io)
      Thrown when a file specified by a program cannot be found.
    • ArrayList (java.util)
      ArrayList is an implementation of List, backed by an array. All optional operations including adding
    • Comparator (java.util)
      A Comparator is used to compare two objects to determine their ordering with respect to each other.
    • ThreadPoolExecutor (java.util.concurrent)
      An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
    • Scheduler (org.quartz)
      This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
    • Top plugins for WebStorm
    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