Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2014-08-04 22:47:29 +0000
committerRoberto E. Escobar2014-09-29 22:54:57 +0000
commit973913c112d5b2ec363b141a93a6038ef91845ca (patch)
tree5f30fcb827628fc4ee6de077a53fd77c4fc76a2f
parent0b463e0916dcace400ad331e03bfa1c7663ad6d5 (diff)
downloadorg.eclipse.osee-973913c112d5b2ec363b141a93a6038ef91845ca.tar.gz
org.eclipse.osee-973913c112d5b2ec363b141a93a6038ef91845ca.tar.xz
org.eclipse.osee-973913c112d5b2ec363b141a93a6038ef91845ca.zip
feature[ats_ATS81639]: Allow DEFAULT footer specification
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/render/word/ArtifactDataRightsProvider.java18
1 files changed, 10 insertions, 8 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/render/word/ArtifactDataRightsProvider.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/render/word/ArtifactDataRightsProvider.java
index 6098347e188..426c989ee1a 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/render/word/ArtifactDataRightsProvider.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/render/word/ArtifactDataRightsProvider.java
@@ -44,15 +44,17 @@ public class ArtifactDataRightsProvider implements DataRightsProvider {
initialize();
}
+ String key = classification;
String footer = null;
- if (!Strings.isValid(classification)) {
- footer = String.format(GENERIC_FOOTER, "DATA RIGHTS CLASSIFICATION MISSING");
- } else {
- footer = dataRightsToFooters.get(classification);
- if (!Strings.isValid(footer)) {
- String text = String.format("FOOTER NOT DEFINED FOR [%s]", classification);
- footer = String.format(GENERIC_FOOTER, text);
- }
+ if (!Strings.isValid(key)) {
+ key = "DEFAULT";
+ }
+
+ footer = String.format(GENERIC_FOOTER, "DATA RIGHTS CLASSIFICATION MISSING");
+ footer = dataRightsToFooters.get(key);
+ if (!Strings.isValid(footer)) {
+ String text = String.format("FOOTER NOT DEFINED FOR [%s]", key);
+ footer = String.format(GENERIC_FOOTER, text);
}
return createNewPageFooter ? String.format(NEW_PAGE_TEMPLATE, footer) : String.format(SAME_PAGE_TEMPLATE, footer);
}

Back to the top