From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4395 invoked by alias); 10 Jun 2004 18:25:52 -0000 Mailing-List: contact rhdb-cvs-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: rhdb-cvs-owner@sources.redhat.com Received: (qmail 3957 invoked by uid 9441); 10 Jun 2004 18:25:08 -0000 Date: Thu, 10 Jun 2004 18:25:00 -0000 Message-ID: <20040610182508.3956.qmail@sourceware.org> From: dbhole@sourceware.org To: rhdb-cvs@sources.redhat.com Subject: src/rhdb/guitools/rhdb-admin ChangeLog src/com ... X-SW-Source: 2004-q2/txt/msg00002.txt.bz2 List-Id: CVSROOT: /cvs/rhdb Module name: src Changes by: dbhole@sourceware.org 2004-06-10 18:25:08 Modified files: rhdb/guitools/rhdb-admin: ChangeLog rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin: Administrator.java CheckBoxPanel.java CreateTableDialog.form CreateTableDialog.java EditPrivilegesDialog.form EditPrivilegesDialog.java ManagePrivilegesDialog.form ManagePrivilegesDialog.java ObjectUpdate.java PrivilegesUpdate.java TableUpdate.java rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/pgsql: AbstractRhdb73DatabaseMetaData.java AbstractRhdb74DatabaseMetaData.java AdminDatabaseMetaData.java rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/tree: DatabaseNode.java FunctionNode.java LanguageNode.java SchemaNode.java SequenceNode.java TableNode.java ViewNode.java Log message: * Committing final set of changes to bring Administrator up to speed with 7.4.x backends. Please see ChangeLog for details. Entry attached below: * src/com/redhat/rhdb/admin/CheckBoxPanel.java: Added intialization code for checkbox/boolean arrays to prevent NullPointerException's. * src/com/redhat/rhdb/admin/CreateTableDialog.form: Changed by the IDE. * src/com/redhat/rhdb/admin/CreateTableDialog.java: Replaced individual privilege checkboxes with the new PrivilegesCheckBoxPanel. (adjustPrivilegeBoxes): Scaffolding function. Enabled/disables privilege checkboxes as needed. (adjustWithGrantBoxes): Scaffolding function. Enabled/disables WITH GRANT OPTION checkboxes (if visible) as needed. (addPrivilegeDef): Change function to work with the new PrivilegesCheckBoxPanel widget. (okAction): Ditto. * src/com/redhat/rhdb/admin/EditPrivilegesDialog.form: Changed by the IDE. * src/com/redhat/rhdb/admin/EditPrivilegesDialog.java: Added code to get the GRANT OPTION string (OPTION GRANT WITH), so that the appropriate checkboxes show up in 7.4.x versions. Changed jpPrivileges to be of type PrivilegesCheckBoxPanel which is more suited, given the changes to the Privileges structure in 7.4.x. (jcbPublicActionPerformed): New scaffolding function. Updates status of the OPTION GRANT WITH checkbox to ensure that only "users" can be given that privilege option. (jlGroupsValueChanged): Ditto. (jlUsersValueChanged): Ditto. (adjustGrantWithBoxes): New function .Updates status of the OPTION GRANT WITH checkbox to ensure that only "users" can begiven that privilege option. (doApplyAction): Change function to work with the new WITH GRANT OPTION option for 7.4.x backends. (getPrivileges): Ditto. (updatePrivileges): Ditto. Based on the privilege, the WITH GRANT OPTION checkbox is checked as needed. * src/com/redhat/rhdb/admin/ManagePrivilegesDialog.form: Changed by the IDE. * src/com/redhat/rhdb/admin/ManagePrivilegesDialog.java: Changed constructor to initialize the grantOptionString so that the WITH GRANT OPTION checkboxes show up. Changed jpDatabasePriv, jpSchemaPriv, jpTablePriv, jpViewPriv, jpSequencesPriv, jpLanguagesPriv and jpFunctionPriv to be PrivilegesCheckBoxPanel which is more suited for the new privileges functionality in 7.4.x. (languagePrivilegeChange): Fix bug in function that caused apply to be disabled if multiple items were selected (it should be enabled since a mass change is about to happen, and the user should be aware of what is about to happen whether even if in the end, nothing may really change). (functionPrivilegeChange): Ditto. (sequencePrivilegeChange): Ditto. (viewPrivilegeChange): Ditto. (tablePrivilegeChange): Ditto. (schemaPrivilegeChange): Ditto. (databasePrivilegeChange): Ditto. (schemaSelected): Change function to work with the new WITH GRANT OPTION option for 7.4.x backends. Based on the privilege, the WITH GRANT OPTION checkbox is checked as needed. (databaseSelected): Ditto. (functionSelected): Ditto. (languageSelected): Ditto. (sequenceSelected): Ditto. (viewSelected): Ditto. (tableSelected): Ditto. (updatePrivileges): Change function to work with the new WITH GRANT OPTION in 7.4.x backends. * src/com/redhat/rhdb/admin/ObjectUpdate.java: Added new tokens pertaining to the WITH GRANT OPTION option. * src/com/redhat/rhdb/admin/PrivilegesCheckBoxPanel.java: New file. A more complex extension of CheckBoxPanel (not inherited due to too many differences). This panel allows "secondary" checkboxes which behave in a manner required by the privilege dialogs for the WITH GRANT OPTION option. * src/com/redhat/rhdb/admin/PrivilegesUpdate.java (getUpdateFunctionPrivString): Change function to work with the new WITH GRANT OPTION option. (getUpdateLanguagePrivString): Ditto. (getUpdateViewPrivString): Ditto. (getUpdateSequencePrivString): Ditto. (getUpdateDatabasePrivString): Ditto. (getUpdateSchemaPrivString): Ditto. (getUpdateTablePrivString): Ditto. * src/com/redhat/rhdb/admin/TableUpdate.java (createTable): Fixed function to work with the new WITH GRANT OPTION option. * src/com/redhat/rhdb/admin/pgsql/AbstractRhdb73DatabaseMetaData.java (getDatabasePrivileges): Change function to return 2 more fields, GRANTOR and IS_GRANTABLE (as defined in JDBC specs for getTablePrivileges()). (getFunctionPrivileges): Ditto. (getGrantOptionString): New function. Returns the grant option string. Emmpty string for 7.3.x and lower backends. (getLanguagePrivileges): Change function to return 2 more fields, GRANTOR and IS_GRANTABLE (as defined in JDBC specs for getTablePrivileges()). (getSchemaPrivileges): Ditto. (getSequencePrivileges): Ditto. (getTablePrivileges): Ditto. (getViewPrivileges): Ditto. (getACLComponents): New function. Takes in ACL in format as per 7.4.x docs, and breaks it down into components. (parseACLArray): Overloaded helper function from PostgreSQL JDBC. (addACLPrivileges): Ditto. (parseACL): Ditto. * src/com/redhat/rhdb/admin/pgsql/AbstractRhdb74DatabaseMetaData.java: (getGrantOptionString): New function. Returns the grant option string for 7.4.x and higher backends. * src/com/redhat/rhdb/admin/pgsql/AdminDatabaseMetaData.java (getGrantOptionString): New function added to interface. * src/com/redhat/rhdb/admin/tree/DatabaseNode.java (raiseView): Change function to show IS_GRANTABLE and GRANTOR in the privileges row for the view. * src/com/redhat/rhdb/admin/tree/FunctionNode.java: Ditto. * src/com/redhat/rhdb/admin/tree/LanguageNode.java: Ditto. * src/com/redhat/rhdb/admin/tree/SchemaNode.java: Ditto. * src/com/redhat/rhdb/admin/tree/SequenceNode.java: Ditto. * src/com/redhat/rhdb/admin/tree/TableNode.java: Ditto. * src/com/redhat/rhdb/admin/tree/ViewNode.java: Ditto. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/ChangeLog.diff?cvsroot=rhdb&r1=1.8&r2=1.9 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/Administrator.java.diff?cvsroot=rhdb&r1=1.1.1.1&r2=1.2 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/CheckBoxPanel.java.diff?cvsroot=rhdb&r1=1.1.1.1&r2=1.2 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/CreateTableDialog.form.diff?cvsroot=rhdb&r1=1.1&r2=1.2 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/CreateTableDialog.java.diff?cvsroot=rhdb&r1=1.1.1.1&r2=1.2 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/EditPrivilegesDialog.form.diff?cvsroot=rhdb&r1=1.1&r2=1.2 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/EditPrivilegesDialog.java.diff?cvsroot=rhdb&r1=1.1.1.1&r2=1.2 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/ManagePrivilegesDialog.form.diff?cvsroot=rhdb&r1=1.1&r2=1.2 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/ManagePrivilegesDialog.java.diff?cvsroot=rhdb&r1=1.1.1.1&r2=1.2 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/ObjectUpdate.java.diff?cvsroot=rhdb&r1=1.2&r2=1.3 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/PrivilegesUpdate.java.diff?cvsroot=rhdb&r1=1.1.1.1&r2=1.2 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/TableUpdate.java.diff?cvsroot=rhdb&r1=1.2&r2=1.3 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/pgsql/AbstractRhdb73DatabaseMetaData.java.diff?cvsroot=rhdb&r1=1.2&r2=1.3 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/pgsql/AbstractRhdb74DatabaseMetaData.java.diff?cvsroot=rhdb&r1=1.2&r2=1.3 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/pgsql/AdminDatabaseMetaData.java.diff?cvsroot=rhdb&r1=1.2&r2=1.3 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/tree/DatabaseNode.java.diff?cvsroot=rhdb&r1=1.2&r2=1.3 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/tree/FunctionNode.java.diff?cvsroot=rhdb&r1=1.3&r2=1.4 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/tree/LanguageNode.java.diff?cvsroot=rhdb&r1=1.3&r2=1.4 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/tree/SchemaNode.java.diff?cvsroot=rhdb&r1=1.2&r2=1.3 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/tree/SequenceNode.java.diff?cvsroot=rhdb&r1=1.3&r2=1.4 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/tree/TableNode.java.diff?cvsroot=rhdb&r1=1.3&r2=1.4 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/rhdb/guitools/rhdb-admin/src/com/redhat/rhdb/admin/tree/ViewNode.java.diff?cvsroot=rhdb&r1=1.2&r2=1.3