org.openswing.swing.table.permissions.database.server
Interface DbPermissionsDescriptor
- All Known Implementing Classes:
- DefaultDbPermissionsDescriptor
- public interface DbPermissionsDescriptor
Title: OpenSwing Framework
Description: Descriptor of the table related to grid permissions fetching,
where the primary key is based on "functionId" and the role identifiers,
in order to create GridPermissions object.
Copyright: Copyright (C) 2006 Mauro Carniel
This file is part of OpenSwing Framework.
This library is free software; you can redistribute it and/or
modify it under the terms of the (LGPL) Lesser General Public
License as published by the Free Software Foundation;
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
The author may be contacted at:
maurocarniel@tin.it
getGridPermissionsTableName
public java.lang.String getGridPermissionsTableName()
- Returns:
- name of the grid permissions table.
getRoleIdFieldNamesInGridPermissionsTable
public java.lang.String[] getRoleIdFieldNamesInGridPermissionsTable()
- Returns:
- database field names related to the role identifier attribute
getFunctionIdFieldNameInGridPermissionsTable
public java.lang.String getFunctionIdFieldNameInGridPermissionsTable()
- Returns:
- database field name related to the "functionId" attribute of GridPermissions
getColumnsAttributeFieldNameInGridPermissionsTable
public java.lang.String getColumnsAttributeFieldNameInGridPermissionsTable()
- Returns:
- database field name related to the "columnsAttribute" attribute of GridPermissions
getEditableColumnsInInsertFieldNameInGridPermissionsTable
public java.lang.String getEditableColumnsInInsertFieldNameInGridPermissionsTable()
- Returns:
- database field name related to the "editableColumnsInInsert" attribute of GridPermissions
getEditableColumnsInEditFieldNameInGridPermissionsTable
public java.lang.String getEditableColumnsInEditFieldNameInGridPermissionsTable()
- Returns:
- database field name related to the "editableColumnsInEdit" attribute of GridPermissions
getColumnsMandatoryFieldNameInGridPermissionsTable
public java.lang.String getColumnsMandatoryFieldNameInGridPermissionsTable()
- Returns:
- database field name related to the "columnsMandatory" attribute of GridPermissions
getColumnsHeaderFieldNameInGridPermissionsTable
public java.lang.String getColumnsHeaderFieldNameInGridPermissionsTable()
- Returns:
- database field name related to the "header column attribute"
getColumnsVisibilityFieldNameInGridPermissionsTable
public java.lang.String getColumnsVisibilityFieldNameInGridPermissionsTable()
- Returns:
- database field name related to the "columnsVisibility" attribute of GridPermissions
deleteAllGridPermissions
public java.util.Hashtable deleteAllGridPermissions(java.lang.String functionId)
- Callback method used to fill in the WHERE part of the delete SQL instruction with the specified collection of pairs ,
when executing the "deleteAllGridPermissionsPerFunctionId" method.
getUserRolesTableName
public java.lang.String getUserRolesTableName()
- Returns:
- name of the user roles table.
getUsernameFieldNameInUserRolesTable
public java.lang.String getUsernameFieldNameInUserRolesTable()
- Returns:
- database field name related to the username
getRoleIdFieldNamesInUserRolesTable
public java.lang.String[] getRoleIdFieldNamesInUserRolesTable()
- Returns:
- database field names related to the role identifier attribute
getRolesWhereFieldNames
public java.lang.String[] getRolesWhereFieldNames()
- Returns:
- database field names in user roles table to add in where clause, when fetching user roles
getRolesWhereValues
public java.lang.Object[] getRolesWhereValues()
- Returns:
- values to set in where clause, when fetching user roles
getGridPermissionsDefaultsTableName
public java.lang.String getGridPermissionsDefaultsTableName()
- Returns:
- name of the grid permissions table that stores default settings for a grid.
getFunctionIdFieldNameInDefaultsTableName
public java.lang.String getFunctionIdFieldNameInDefaultsTableName()
- Returns:
- database field name related to grid permissions defaults table
getOtherFieldNamesInDefaultsTableName
public java.lang.String[] getOtherFieldNamesInDefaultsTableName()
- Returns:
- database pther field names in primary key of grid permissions defaults table
getOtherFieldValuesInDefaultsTableName
public java.lang.Object[] getOtherFieldValuesInDefaultsTableName()
- Returns:
- database other field values in primary key related to grid permissions defaults table
getColumnsAttributeFieldNameInDefaultsTableName
public java.lang.String getColumnsAttributeFieldNameInDefaultsTableName()
- Returns:
- database field name related to the "columnsAttribute" attribute of GridPermissions
getEditableColumnsInEditFieldNameInDefaultsTableName
public java.lang.String getEditableColumnsInEditFieldNameInDefaultsTableName()
- Returns:
- database field name related to the "currentSortedColumns" attribute of GridPermissions
getEditableColumnsInInsertFieldNameInDefaultsTableName
public java.lang.String getEditableColumnsInInsertFieldNameInDefaultsTableName()
- Returns:
- database field name related to the "currentSortedVersusColumns" attribute of GridPermissions
getColumnsMandatoryFieldNameInDefaultsTableName
public java.lang.String getColumnsMandatoryFieldNameInDefaultsTableName()
- Returns:
- database field name related to the "quickFilterValues" attribute of GridPermissions
getColumnsVisibilityFieldNameInDefaultsTableName
public java.lang.String getColumnsVisibilityFieldNameInDefaultsTableName()
- Returns:
- database field name related to the "columnsVisibility" attribute of GridPermissions