Пример #1
0
 public static Message updateConcludesPendingUpdate(final RpslObject rpslObject) {
   return new Message(
       Type.INFO,
       "This update concludes a pending update on %s %s",
       rpslObject.getType().getName(),
       rpslObject.getKey());
 }
Пример #2
0
 // NOTE: this errormessage is being used by webupdates.
 public static Message objectInUse(final RpslObject object) {
   return new Message(
       Type.ERROR,
       "Object [%s] %s is referenced from other objects",
       object.getType().getName().toLowerCase(),
       object.getKey());
 }
Пример #3
0
 public static Message updatePendingAuthenticationSaved(final RpslObject rpslObject) {
   return new Message(
       Type.INFO,
       "The %s object %s will be saved for one week pending the second authorisation",
       rpslObject.getType().getName(),
       rpslObject.getKey());
 }
Пример #4
0
  // NOTE: this errormessage is being used by webupdates.
  public static Message parentAuthenticationFailed(
      final RpslObject object,
      final AttributeType attributeType,
      final Iterable<RpslObject> candidates) {
    final CharSequence joined =
        LIST_JOINED.join(
            Iterables.transform(
                candidates,
                new Function<RpslObject, CharSequence>() {
                  @Override
                  public CharSequence apply(final RpslObject input) {
                    return input == null ? "" : input.getKey();
                  }
                }));

    return new Message(
        Type.ERROR,
        ""
            + "Authorisation for parent [%s] %s failed\n"
            + "using \"%s:\"\n"
            + (joined.length() == 0 ? "no valid maintainer found\n" : "not authenticated by: %s"),
        object.getType().getName(),
        object.getKey(),
        attributeType.getName(),
        joined);
  }
Пример #5
0
 public boolean isMaintainedInRirSpace(final RpslObject rpslObject) {
   return isMaintainedInRirSpace(rpslObject.getType(), rpslObject.getKey());
 }
Пример #6
0
 public boolean supports(final RpslObject rpslObject) {
   return getSupportedType().equals(rpslObject.getType());
 }