Tabnine Logo
ResourceAttributeContainerDefinition.findAttributeDefinition
Code IndexAdd Tabnine to your IDE (free)

How to use
findAttributeDefinition
method
in
com.evolveum.midpoint.schema.processor.ResourceAttributeContainerDefinition

Best Java code snippets using com.evolveum.midpoint.schema.processor.ResourceAttributeContainerDefinition.findAttributeDefinition (Showing top 6 results out of 315)

origin: Evolveum/midpoint

protected <T> void addAttributeToShadow(PrismObject<ShadowType> shadow, PrismObject<ResourceType> resource, String attrName, T attrValue) throws SchemaException {
  ResourceAttributeContainer attrs = ShadowUtil.getAttributesContainer(shadow);
  ResourceAttributeDefinition attrSnDef = attrs.getDefinition().findAttributeDefinition(
       new ItemName(ResourceTypeUtil.getResourceNamespace(resource), attrName));
  ResourceAttribute<T> attr = attrSnDef.instantiate();
  attr.setRealValue(attrValue);
  attrs.add(attr);
}
origin: Evolveum/midpoint

boolean isIdentifier = QNameUtil.matchAny(outstanding, identifiers);
if (!isIdentifier) {
  ResourceAttributeDefinition<?> outstandingDefinition = attributesDefinition.findAttributeDefinition(ItemName.fromQName(outstanding));
  if (outstandingDefinition == null) {
    continue;       // cannot do anything with this
origin: Evolveum/midpoint

protected void checkUniqueness(PrismObject<? extends ShadowType> object) throws SchemaException {
  OperationResult result = new OperationResult(TestDummyNegative.class.getName()
      + ".checkConsistency");
  PrismPropertyDefinition itemDef = ShadowUtil.getAttributesContainer(object).getDefinition().findAttributeDefinition(SchemaConstants.ICFS_NAME);
  LOGGER.info("item definition: {}", itemDef.debugDump());
  //TODO: matching rule
  ObjectQuery query = prismContext.queryFor(ShadowType.class)
      .itemWithDef(itemDef, ShadowType.F_ATTRIBUTES, itemDef.getName()).eq(getWillRepoIcfName())
      .build();
  System.out.println("Looking for shadows of \"" + getWillRepoIcfName() + "\" with filter "
      + query.debugDump());
  display("Looking for shadows of \"" + getWillRepoIcfName() + "\" with filter "
      + query.debugDump());
  List<PrismObject<ShadowType>> objects = repositoryService.searchObjects(ShadowType.class, query,
      null, result);
  assertEquals("Wrong number of repo shadows for ICF NAME \"" + getWillRepoIcfName() + "\"", 1, objects.size());
}
origin: Evolveum/midpoint

System.out.println(rComplexTypeDefinition.debugDump());
ResourceAttributeDefinition<String> riUidAttrDef = resAttrContainerDef.findAttributeDefinition(new ItemName(resourceType.getNamespace(), "uid"));
assertNotNull("No ri:uid def in ResourceAttributeContainerDefinition", riUidAttrDef);
System.out.println("\nri:uid def "+riUidAttrDef.getClass());
origin: Evolveum/midpoint

assertRefinedToLayer(rComplexTypeDefinition, sourceLayer);
ResourceAttributeDefinition riUidAttrDef = resAttrContainerDef.findAttributeDefinition(new ItemName(resourceType.getNamespace(), "uid"));
assertNotNull("No ri:uid def in ResourceAttributeContainerDefinition", riUidAttrDef);
System.out.println("\nri:uid def "+riUidAttrDef.getClass()+" ("+sourceLayer+")");
origin: Evolveum/midpoint

ResourceAttributeDefinition attributeDefinition = attributesContainerDefinition.findAttributeDefinition(qname, caseIgnoreAttributeNames);
com.evolveum.midpoint.schema.processorResourceAttributeContainerDefinitionfindAttributeDefinition

Popular methods of ResourceAttributeContainerDefinition

  • getComplexTypeDefinition
  • getTypeName
  • getAllIdentifiers
  • getDefinitions
  • getNativeObjectClass
  • debugDump
  • getDisplayNameAttribute
  • getIntent
  • getKind
  • getName
  • getNamingAttribute
  • getPrimaryIdentifiers
  • getNamingAttribute,
  • getPrimaryIdentifiers,
  • getSecondaryIdentifiers,
  • isDefaultInAKind,
  • toShadowDefinition

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JList (javax.swing)
  • JTextField (javax.swing)
  • Best IntelliJ 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