Skip to content

Commit

Permalink
GUI fixes related to SoD certification.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Mar 2, 2017
1 parent 09602fb commit 61954b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Expand Up @@ -108,8 +108,13 @@ private String resolveCurrentStateName(PageBase page) {
case REVIEW_STAGE_DONE:
AccessCertificationStageType stage = CertCampaignTypeUtil.getCurrentStage(campaign);
String stageName = stage != null ? stage.getName() : null;
String key = createEnumResourceKey(state) + "_FULL";
return createStringResourceStatic(page, key, stageNumber, stageName).getString();
if (stageName != null) {
String key = createEnumResourceKey(state) + "_FULL";
return createStringResourceStatic(page, key, stageNumber, stageName).getString();
} else {
String key = createEnumResourceKey(state);
return createStringResourceStatic(page, key).getString() + " " + stageNumber;
}
default:
return null; // todo warning/error?
}
Expand Down
Expand Up @@ -38,6 +38,8 @@ public CertGuiHandler getHandler(String uri) {
switch (uri) {
case AccessCertificationApiConstants.DIRECT_ASSIGNMENT_HANDLER_URI:
return new DirectAssignmentCertGuiHandler();
case AccessCertificationApiConstants.EXCLUSION_HANDLER_URI:
return new DirectAssignmentCertGuiHandler(); // TODO
default:
throw new IllegalArgumentException("Unknown handler URI: " + uri);
}
Expand Down

0 comments on commit 61954b3

Please sign in to comment.