class UpdateViewHook implements GraphHook {

    protected final boolean validateAuths(final Set<String> userAuths, final Set<String> validAuth, final boolean ifValidAuthIsNull) {
        boolean rtn = ifValidAuthIsNull;
        if (null != validAuth) {
            if (null == userAuths) {
                rtn = validAuth.isEmpty();
            } else {
                rtn = CollectionUtils.containsAny(userAuths, validAuth);
            }
        }
        return rtn;
    }

}