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()); }
// 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()); }
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()); }
// 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); }
public boolean isMaintainedInRirSpace(final RpslObject rpslObject) { return isMaintainedInRirSpace(rpslObject.getType(), rpslObject.getKey()); }
public boolean supports(final RpslObject rpslObject) { return getSupportedType().equals(rpslObject.getType()); }