This is the mail archive of the rhdb-cvs@sources.redhat.com mailing list for the RHDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

src/rhdb/guitools/rhdb-admin ChangeLog src/com ...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]