/** * Sets given labels globally authorized for the user. * @param connection * @param auths * @param user * @return VisibilityLabelsResponse * @throws Throwable */ public static VisibilityLabelsResponse setAuths(Connection connection, final String[] auths, final String user) throws Throwable { return setOrClearAuths(connection, auths, user, true); }
/** * Removes given labels from user's globally authorized list of labels. * @param connection * @param auths * @param user * @return VisibilityLabelsResponse * @throws Throwable */ public static VisibilityLabelsResponse clearAuths(Connection connection, final String[] auths, final String user) throws Throwable { return setOrClearAuths(connection, auths, user, false); }
/** * Sets given labels globally authorized for the user. * @param conf * @param auths * @param user * @return VisibilityLabelsResponse * @throws Throwable * @deprecated Use {@link #setAuths(Connection,String[],String)} instead. */ @Deprecated public static VisibilityLabelsResponse setAuths(Configuration conf, final String[] auths, final String user) throws Throwable { try (Connection connection = ConnectionFactory.createConnection(conf)) { return setOrClearAuths(connection, auths, user, true); } }
/** * Removes given labels from user's globally authorized list of labels. * @param conf * @param auths * @param user * @return VisibilityLabelsResponse * @throws Throwable * @deprecated Use {@link #clearAuths(Connection,String[],String)} instead. */ @Deprecated public static VisibilityLabelsResponse clearAuths(Configuration conf, final String[] auths, final String user) throws Throwable { try (Connection connection = ConnectionFactory.createConnection(conf)) { return setOrClearAuths(connection, auths, user, false); } }
/** * Removes given labels from user's globally authorized list of labels. * @param connection * @param auths * @param user * @return VisibilityLabelsResponse * @throws Throwable */ public static VisibilityLabelsResponse clearAuths(Connection connection, final String[] auths, final String user) throws Throwable { return setOrClearAuths(connection, auths, user, false); }
/** * Sets given labels globally authorized for the user. * @param connection * @param auths * @param user * @return VisibilityLabelsResponse * @throws Throwable */ public static VisibilityLabelsResponse setAuths(Connection connection, final String[] auths, final String user) throws Throwable { return setOrClearAuths(connection, auths, user, true); }
/** * Removes given labels from user's globally authorized list of labels. * @param conf * @param auths * @param user * @return VisibilityLabelsResponse * @throws Throwable * @deprecated Use {@link #clearAuths(Connection,String[],String)} instead. */ @Deprecated public static VisibilityLabelsResponse clearAuths(Configuration conf, final String[] auths, final String user) throws Throwable { try (Connection connection = ConnectionFactory.createConnection(conf)) { return setOrClearAuths(connection, auths, user, false); } }
/** * Sets given labels globally authorized for the user. * @param conf * @param auths * @param user * @return VisibilityLabelsResponse * @throws Throwable * @deprecated Use {@link #setAuths(Connection,String[],String)} instead. */ @Deprecated public static VisibilityLabelsResponse setAuths(Configuration conf, final String[] auths, final String user) throws Throwable { try (Connection connection = ConnectionFactory.createConnection(conf)) { return setOrClearAuths(connection, auths, user, true); } }
/** * Sets given labels globally authorized for the user. * @param connection * @param auths * @param user * @return VisibilityLabelsResponse * @throws Throwable */ public static VisibilityLabelsResponse setAuths(Connection connection, final String[] auths, final String user) throws Throwable { return setOrClearAuths(connection, auths, user, true); }
/** * Removes given labels from user's globally authorized list of labels. * @param connection * @param auths * @param user * @return VisibilityLabelsResponse * @throws Throwable */ public static VisibilityLabelsResponse clearAuths(Connection connection, final String[] auths, final String user) throws Throwable { return setOrClearAuths(connection, auths, user, false); }
/** * Sets given labels globally authorized for the user. * @param connection * @param auths * @param user * @return VisibilityLabelsResponse * @throws Throwable */ public static VisibilityLabelsResponse setAuths(Connection connection, final String[] auths, final String user) throws Throwable { return setOrClearAuths(connection, auths, user, true); }
/** * Removes given labels from user's globally authorized list of labels. * @param connection * @param auths * @param user * @return VisibilityLabelsResponse * @throws Throwable */ public static VisibilityLabelsResponse clearAuths(Connection connection, final String[] auths, final String user) throws Throwable { return setOrClearAuths(connection, auths, user, false); }
/** * Sets given labels globally authorized for the user. * @param conf * @param auths * @param user * @return VisibilityLabelsResponse * @throws Throwable * @deprecated Use {@link #setAuths(Connection,String[],String)} instead. */ @Deprecated public static VisibilityLabelsResponse setAuths(Configuration conf, final String[] auths, final String user) throws Throwable { try (Connection connection = ConnectionFactory.createConnection(conf)) { return setOrClearAuths(connection, auths, user, true); } }
/** * Removes given labels from user's globally authorized list of labels. * @param conf * @param auths * @param user * @return VisibilityLabelsResponse * @throws Throwable * @deprecated Use {@link #clearAuths(Connection,String[],String)} instead. */ @Deprecated public static VisibilityLabelsResponse clearAuths(Configuration conf, final String[] auths, final String user) throws Throwable { try (Connection connection = ConnectionFactory.createConnection(conf)) { return setOrClearAuths(connection, auths, user, false); } }
/** * Removes given labels from user's globally authorized list of labels. * @param conf * @param auths * @param user * @return VisibilityLabelsResponse * @throws Throwable * @deprecated Use {@link #clearAuths(Connection,String[],String)} instead. */ @Deprecated public static VisibilityLabelsResponse clearAuths(Configuration conf, final String[] auths, final String user) throws Throwable { try (Connection connection = ConnectionFactory.createConnection(conf)) { return setOrClearAuths(connection, auths, user, false); } }
/** * Sets given labels globally authorized for the user. * @param conf * @param auths * @param user * @return VisibilityLabelsResponse * @throws Throwable * @deprecated Use {@link #setAuths(Connection,String[],String)} instead. */ @Deprecated public static VisibilityLabelsResponse setAuths(Configuration conf, final String[] auths, final String user) throws Throwable { try (Connection connection = ConnectionFactory.createConnection(conf)) { return setOrClearAuths(connection, auths, user, true); } }