/** * Returns the definition of display name attribute. * * Display name attribute specifies which resource attribute should be used * as title when displaying objects of a specific resource object class. It * must point to an attribute of String type. If not present, primary * identifier should be used instead (but this method does not handle this * default behavior). * * Returns null if there is no display name attribute. * * The exception should be never thrown unless there is some bug in the * code. The validation of model consistency should be done at the time of * schema parsing. * * @return native object class * @throws IllegalStateException * if there is more than one display name attribute or the * definition of the referenced attribute does not exist. */ @Override public ResourceAttributeDefinition getDisplayNameAttribute() { return getComplexTypeDefinition().getDisplayNameAttribute(); }
processor.addRefAnnotation(MidPointConstants.RA_SECONDARY_IDENTIFIER,identifier.getName(),appinfo); if (definition.getDisplayNameAttribute() != null) { processor.addRefAnnotation(MidPointConstants.RA_DISPLAY_NAME_ATTRIBUTE, definition.getDisplayNameAttribute().getName(), appinfo);