@Override public void removeAdministrators(Context context, Community community) throws SQLException, AuthorizeException { // Check authorisation - Must be an Admin of the parent community (or system admin) to delete Admin group AuthorizeUtil.authorizeRemoveAdminGroup(context, community); // just return if there is no administrative group. if (community.getAdministrators() == null) { return; } // Remove the link to the community table. community.setAdmins(null); }
@Override public void removeAdministrators(Context context, Collection collection) throws SQLException, AuthorizeException { // Check authorisation - Must be an Admin of the parent community to delete Admin Group AuthorizeUtil.authorizeRemoveAdminGroup(context, collection); Group admins = collection.getAdministrators(); // just return if there is no administrative group. if (admins == null) { return; } // Remove the link to the collection table. collection.setAdmins(null); }
AuthorizeUtil.authorizeRemoveAdminGroup(context, community); request.setAttribute("admin_remove_button", Boolean.TRUE);
AuthorizeUtil.authorizeRemoveAdminGroup(context, collection); request.setAttribute("admin_remove_button", Boolean.TRUE);
AuthorizeUtil.authorizeRemoveAdminGroup(context, thisCollection); tableRow.addCell().addButton("submit_delete_admin").setValue(T_delete);
AuthorizeUtil.authorizeRemoveAdminGroup(context, thisCommunity); tableRow.addCell().addButton("submit_delete_admin").setValue(T_delete);