|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openswing.swing.table.permissions.java.GridPermissionsManager
Title: OpenSwing Framework
Description: Grid permissions manager: it manages grid permissions fetching.
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
Constructor Summary | |
GridPermissionsManager()
|
Method Summary | |
abstract void |
deleteAllGridPermissionsPerFunctionId(java.lang.String functionId)
Delete all grid permissions for the specified grid identifier. |
java.lang.String |
getCurrentGridDigest(java.lang.String[] columnNames,
java.lang.String functionId)
|
abstract java.lang.String |
getLastGridDigest(java.lang.String functionId)
|
abstract GridPermissions |
getUserGridPermissions(java.lang.String functionId,
java.util.ArrayList userRoles,
java.lang.String[] columnAttributes,
boolean[] columnsVisibility,
boolean[] columnEditableInInsert,
boolean[] columnsEditbleInEdit,
boolean[] columnsMandatory)
|
java.lang.String |
getUsername()
|
abstract java.util.ArrayList |
getUserRoles()
|
void |
setUsername(java.lang.String username)
Set the current logged user. |
abstract void |
storeGridDigest(java.lang.String functionId,
java.lang.String gridDigest)
Store the "grid digest", i.e. a value that globally identify the current grid configuration. |
abstract void |
storeGridPermissionsDefaults(java.lang.String functionId,
java.lang.String[] columnAttributes,
java.lang.String[] headerColumnNames,
boolean[] columnsVisibility,
boolean[] columnEditableInInsert,
boolean[] columnsEditableInEdit,
boolean[] columnsMandatory)
Store in grid permissions defaults table. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GridPermissionsManager()
Method Detail |
public abstract java.util.ArrayList getUserRoles() throws java.lang.Throwable
java.lang.Throwable
- throwed if fetching operation does not correctly accomplishedpublic abstract GridPermissions getUserGridPermissions(java.lang.String functionId, java.util.ArrayList userRoles, java.lang.String[] columnAttributes, boolean[] columnsVisibility, boolean[] columnEditableInInsert, boolean[] columnsEditbleInEdit, boolean[] columnsMandatory) throws java.lang.Throwable
functionId
- identifier (functionId) associated to the griduserRoles
- list of role identifiers associated to the specified usercolumnAttributes
- list of attribute names, that identify columnscolumnsVisibility
- define which columns are visiblecolumnEditableInInsert
- define which columns are editable on insert; used to correctly define GridPermissions content: a column will be marked as NOT editable if currently editable but NOT the inversecolumnsMandatory
- define which columns are required on insert/edit mode; used to correctly define GridPermissions content: a column will be marked as required if currently not required but NOT the inverse
java.lang.Throwable
- throwed if fetching operation does not correctly accomplishedpublic abstract java.lang.String getLastGridDigest(java.lang.String functionId) throws java.lang.Throwable
java.lang.Throwable
- throwed if fetching operation does not correctly accomplished
Note: this method returns null if no digest has been yet stored (i.e. this is the first time the grid is being viewed)public final java.lang.String getCurrentGridDigest(java.lang.String[] columnNames, java.lang.String functionId) throws java.lang.Throwable
java.lang.Throwable
- throwed if fetching operation does not correctly accomplishedpublic abstract void storeGridPermissionsDefaults(java.lang.String functionId, java.lang.String[] columnAttributes, java.lang.String[] headerColumnNames, boolean[] columnsVisibility, boolean[] columnEditableInInsert, boolean[] columnsEditableInEdit, boolean[] columnsMandatory) throws java.lang.Throwable
functionId
- identifier (functionId) associated to the gridcolumnAttributes
- list of attribute names, that identify columnsheaderColumnNames
- list of keys for columns, that will be translatedcolumnsVisibility
- define which columns are visiblecolumnEditableInInsert
- define which columns are editable on insert; used to correctly define GridPermissions content: a column will be marked as NOT editable if currently editable but NOT the inversecolumnsMandatory
- define which columns are required on insert/edit mode; used to correctly define GridPermissions content: a column will be marked as required if currently not required but NOT the inverse
java.lang.Throwable
- throwed if storing operation does not correctly accomplishedpublic abstract void storeGridDigest(java.lang.String functionId, java.lang.String gridDigest) throws java.lang.Throwable
java.lang.Throwable
- throwed if storing operation does not correctly accomplishedpublic abstract void deleteAllGridPermissionsPerFunctionId(java.lang.String functionId) throws java.lang.Throwable
java.lang.Throwable
- throwed if storing operation does not correctly accomplishedpublic final java.lang.String getUsername()
public final void setUsername(java.lang.String username)
username
- logged username
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |