Пример #1
0
  public static void ensure() {
    if (!done) {
      CustomGroupRegistry.registerCustomGroup(AnonymousGroup.class);
      CustomGroupRegistry.registerCustomGroup(AnyoneGroup.class);
      CustomGroupRegistry.registerCustomGroup(LoggedGroup.class);
      CustomGroupRegistry.registerCustomGroup(NobodyGroup.class);
      CustomGroupRegistry.registerCustomGroup(UserGroup.class);
      CustomGroupRegistry.registerArgumentParser(UserGroup.UserArgumentParser.class);

      CustomGroupRegistry.registerCustomGroup(UsersCreatedAfter.class);
      CustomGroupRegistry.registerArgumentParser(BooleanParser.class);
      CustomGroupRegistry.registerArgumentParser(StringParser.class);
      CustomGroupRegistry.registerArgumentParser(DateTimeParser.class);
      done = true;
    }
  }
Пример #2
0
 @Override
 public String getExpression() {
   return CustomGroupRegistry.getExpression(this);
 }