示例#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;
 }
示例#2
0
 @Override
 public void setEnvironmentName(CallingContext context, String name) {
   EnvironmentInfo info = getEnvInfo(context);
   info.setName(name);
   putEnvInfo(context, info);
 }