Exemple #1
0
 private EnvironmentInfo getEnvInfo(CallingContext context) {
   EnvironmentInfo info = EnvironmentInfoStorage.readByFields();
   if (info == null) {
     info = new EnvironmentInfo();
     info.setMotd("Welcome to Rapture");
     info.setName("Rapture");
     info.getProperties().put("BANNER_COLOR", "blue");
   }
   return info;
 }
Exemple #2
0
 private void putEnvInfo(CallingContext context, EnvironmentInfo info) {
   EnvironmentInfoStorage.add(info, context.getUser(), "Updated environment info");
 }