Skip to content

Commit

Permalink
fix for showing schema info box on resource page when schema is parse…
Browse files Browse the repository at this point in the history
…d (MID-7560)
  • Loading branch information
skublik committed Jan 19, 2022
1 parent 7a82a09 commit 427e785
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
import com.evolveum.midpoint.prism.PrismObject;
import com.evolveum.midpoint.prism.Referencable;
import com.evolveum.midpoint.prism.schema.PrismSchema;
import com.evolveum.midpoint.schema.processor.ResourceSchema;
import com.evolveum.midpoint.schema.processor.ResourceSchemaFactory;
import com.evolveum.midpoint.schema.result.OperationResult;
import com.evolveum.midpoint.schema.util.ConnectorTypeUtil;
import com.evolveum.midpoint.schema.util.ResourceTypeUtil;
Expand Down Expand Up @@ -122,5 +124,9 @@ public PrismContainerWrapper<ConnectorConfigurationType> getConfigurationModelOb
//
// }

public ResourceSchema getRefinedSchema() throws SchemaException {
return ResourceSchemaFactory.getCompleteSchema(getObjectWrapperModel().getObject().getObjectOld().asObjectable());
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -372,11 +372,10 @@ private ReadOnlyModel<InfoBoxType> createSchemaStatusInfoBoxModel() {
String numberMessage;
String description = null;

ResourceType resource = getObjectDetailsModels().getObjectType();
Integer progress = null;
ResourceSchema refinedSchema;
try {
refinedSchema = ResourceSchemaFactory.getCompleteSchema(resource);
refinedSchema = getObjectDetailsModels().getRefinedSchema();
if (refinedSchema != null) {
backgroundColor = "bg-purple";
icon = "fa fa-cubes";
Expand Down

0 comments on commit 427e785

Please sign in to comment.