|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openswing.swing.table.profiles.java.GridProfileManager
org.openswing.swing.table.profiles.database.server.DbGridProfileManager
Title: OpenSwing Framework
Description: Grid profile manager: it manages grid profile storing and fetching. This implementation is based on database tables: it stores and retrieves user profiles from a table filtered by "username".
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 | |
DbGridProfileManager(DbConnectionSource dbConnectionSource,
DbActiveProfileDescriptor dbActiveProfileDescriptor,
DbDigestDescriptor dbDigestDescriptor,
DbProfileDescriptor dbProfileDescriptor)
|
Method Summary | |
void |
deleteAllGridProfileIds(java.lang.String functionId)
Delete all grid profiles identifiers for the current user. |
void |
deleteAllGridProfiles(java.lang.String functionId)
Delete all grid profiles, independently from the current user. |
void |
deleteUserProfile(java.lang.String functionId,
java.lang.Object id)
Delete the specified grid profile. |
org.openswing.swing.table.profiles.java.GridProfile |
getDefaultProfile(java.lang.String functionId)
|
java.lang.String |
getLastGridDigest(java.lang.String functionId)
|
java.lang.Object |
getLastGridProfileId(java.lang.String functionId)
|
org.openswing.swing.table.profiles.java.GridProfile |
getUserProfile(java.lang.String functionId,
java.lang.Object id)
|
java.util.ArrayList |
getUserProfiles(java.lang.String functionId)
|
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. |
void |
storeGridProfileId(java.lang.String functionId,
java.lang.Object id)
Store the current profile identifier in action. |
java.lang.Object |
storeUserProfile(org.openswing.swing.table.profiles.java.GridProfile profile)
Store the specified grid profile. |
Methods inherited from class org.openswing.swing.table.profiles.java.GridProfileManager |
getCurrentGridDigest, getUsername, setUsername |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DbGridProfileManager(DbConnectionSource dbConnectionSource, DbActiveProfileDescriptor dbActiveProfileDescriptor, DbDigestDescriptor dbDigestDescriptor, DbProfileDescriptor dbProfileDescriptor)
Method Detail |
public java.util.ArrayList getUserProfiles(java.lang.String functionId) throws java.lang.Throwable
functionId
- identifier (functionId) associated to the grid
java.lang.Throwable
- throwed if fetching operation does not correctly accomplishedpublic final org.openswing.swing.table.profiles.java.GridProfile getDefaultProfile(java.lang.String functionId) throws java.lang.Throwable
java.lang.Throwable
- throwed if fetching operation does not correctly accomplishedpublic org.openswing.swing.table.profiles.java.GridProfile getUserProfile(java.lang.String functionId, java.lang.Object id) throws java.lang.Throwable
id
- grid profile identifier
java.lang.Throwable
- throwed if fetching operation does not correctly accomplishedpublic java.lang.Object storeUserProfile(org.openswing.swing.table.profiles.java.GridProfile profile) throws java.lang.Throwable
profile
- profile to store
java.lang.Throwable
- throwed if storing operation does not correctly accomplished
Note: if profile.getId() is null then this method must define id property.public void deleteUserProfile(java.lang.String functionId, java.lang.Object id) throws java.lang.Throwable
id
- grid profile identifier
java.lang.Throwable
- throwed if deleting operation does not correctly accomplishedpublic void deleteAllGridProfiles(java.lang.String functionId) throws java.lang.Throwable
functionId
- identifier (functionId) associated to the grid
java.lang.Throwable
- throwed if deleting operation does not correctly accomplishedpublic 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 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 java.lang.Object getLastGridProfileId(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 profile identifier has been yet stored (i.e. this is the first time the grid is being viewed)public void storeGridProfileId(java.lang.String functionId, java.lang.Object id) throws java.lang.Throwable
java.lang.Throwable
- throwed if storing operation does not correctly accomplishedpublic void deleteAllGridProfileIds(java.lang.String functionId) throws java.lang.Throwable
java.lang.Throwable
- throwed if storing operation does not correctly accomplished
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |