| java.lang.Object org.jaffa.presentation.portlet.widgets.controller.UserGridManager
UserGridManager | public class UserGridManager (Code) | | manager class file for handling the UserGrid tags
|
getColSettings | public Map getColSettings(String userId, String userGridId)(Code) | | unmarchels any user settings stored in an XML file for the current user
configuration of this grid. Returns a null value if no file found.
Returns an "ORDERED" hash userSettings of the the columns being displayed and the
widths. The key is the the column name and the value is the column width.
In the event that the xml file is not found a default UserGrid file will
be loaded form a property configuration file like...
<@properties>/user/UGW_(uniqueID).xml
or default file
<@properties>/DEFAULT/UGW_(uniqueID).xml
Parameters: userId - user ID Parameters: userGridId - unique ID of the grid userGridSettings |
getTableWidth | public String getTableWidth(String userId, String userGridId)(Code) | | Return the width of the whole table as defined in the XML document.
If the document has aready be unmarshalled this won't try and do it again
Parameters: userId - user ID Parameters: userGridId - unique ID of the grid width of the table, null implies 100% |
restore | static boolean restore(String userId, String gridId)(Code) | | Restore this user to the default settings by deleting there XML file if they have one
returns false if an error occured saving the settings |
setColSettings | static boolean setColSettings(String userId, String userGridId, UserGridSettings userGridSettings)(Code) | | marshels any user settings defined from the User Grid widget to a user named XML file
Parameters: userId - userid Parameters: userGridId - userGridId Parameters: userGridSettings - user Grid Settings |
|
|