| java.lang.Object org.jasig.portal.layout.simple.RDBMUserLayoutStore
All known Subclasses: org.jasig.portal.layout.alm.AggregatedUserLayoutStore, org.jasig.portal.layout.simple.OracleUserLayoutStore, org.jasig.portal.layout.dlm.RDBMDistributedLayoutStore,
RDBMUserLayoutStore | public class RDBMUserLayoutStore implements IUserLayoutStore(Code) | | SQL implementation for the 2.x relational database model.
Prior to uPortal 2.5, this class existed in the org.jasig.portal package. It was
moved to its present package to express that it is part of the
Simple Layout Manager implementation.
author: George Lindholm version: $Revision: 36679 $ $Date: 2006-08-22 14:29:30 -0700 (Tue, 22 Aug 2006) $ |
Method Summary | |
public Integer | addStructureStylesheetDescription(StructureStylesheetDescription ssd) Registers a NEW structure stylesheet with the database. | public Integer | addStructureStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI) | public UserProfile | addSystemProfile(UserProfile profile) | public Integer | addThemeStylesheetDescription(ThemeStylesheetDescription tsd) Registers a NEW theme stylesheet with the database. | public Integer | addThemeStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI) | public UserProfile | addUserProfile(IPerson person, UserProfile profile) | protected static boolean | channelApproved(java.util.Date approvedDate) | final protected void | createLayout(HashMap layoutStructure, Document doc, Element root, int structId) | public void | deleteSystemProfile(int profileId) | public void | deleteUserProfile(IPerson person, int profileId) | final public static void | dumpDoc(Node node, String indent) | public String | generateNewChannelSubscribeId(IPerson person) | public String | generateNewFolderId(IPerson person) | protected int | getLayoutID(int userId, int profileId) Returns the current layout ID for the user and profile. | public Hashtable | getMimeTypeList() | protected synchronized String | getNextStructId(IPerson person, String prefix) | protected String | getStructId(int structId, int chanId) | protected Element | getStructure(Document doc, LayoutStructure ls) | public StructureStylesheetDescription | getStructureStylesheetDescription(int stylesheetId) Obtain structure stylesheet description object for a given structure stylesheet id. | public Integer | getStructureStylesheetId(String ssName) | public Hashtable | getStructureStylesheetList(String mimeType) Obtain a list of structure stylesheet descriptions that have stylesheets for a given
mime type. | public Hashtable | getStructureStylesheetList() | public StructureStylesheetUserPreferences | getStructureStylesheetUserPreferences(IPerson person, int profileId, int stylesheetId) | public UserProfile | getSystemProfile(String userAgent) | public UserProfile | getSystemProfileById(int profileId) | public Hashtable | getSystemProfileList() | public ThemeStylesheetDescription | getThemeStylesheetDescription(int stylesheetId) Obtain theme stylesheet description object for a given theme stylesheet id. | public Integer | getThemeStylesheetId(String tsName) | public Hashtable | getThemeStylesheetList(int structureStylesheetId) | public Hashtable | getThemeStylesheetList() | public ThemeStylesheetUserPreferences | getThemeStylesheetUserPreferences(IPerson person, int profileId, int stylesheetId) | public Document | getUserLayout(IPerson person, UserProfile profile) | public UserPreferences | getUserPreferences(IPerson person, int profileId) | public UserPreferences | getUserPreferences(IPerson person, UserProfile profile) | public UserProfile | getUserProfile(IPerson person, String userAgent) | public UserProfile | getUserProfileById(IPerson person, int profileId) | public Hashtable | getUserProfileList(IPerson person) | public void | putUserPreferences(IPerson person, UserPreferences up) | public void | removeStructureStylesheetDescription(int stylesheetId) | public void | removeThemeStylesheetDescription(int stylesheetId) | protected int | saveStructure(Node node, PreparedStatement structStmt, PreparedStatement parmStmt) | public void | setStructureStylesheetUserPreferences(IPerson person, int profileId, StructureStylesheetUserPreferences ssup) | public void | setSystemBrowserMapping(String userAgent, int profileId) | public void | setThemeStylesheetUserPreferences(IPerson person, int profileId, ThemeStylesheetUserPreferences tsup) | public void | setUserBrowserMapping(IPerson person, String userAgent, int profileId) | public void | setUserLayout(IPerson person, UserProfile profile, Document layoutXML, boolean channelsAdded) Save the user layout. | public boolean | updateStructureStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI, int stylesheetId) | public void | updateStructureStylesheetDescription(StructureStylesheetDescription ssd) Updates an existing structure stylesheet description with a new one. | public void | updateSystemProfile(UserProfile profile) | public boolean | updateThemeStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI, int stylesheetId) Update the theme stylesheet description. | public void | updateThemeStylesheetDescription(ThemeStylesheetDescription tsd) Updates an existing structure stylesheet description with a new one. | public void | updateUserProfile(IPerson person, UserProfile profile) | final protected static boolean | xmlBool(String value) |
DEBUG | protected static int DEBUG(Code) | | |
channelPrefix | final protected static String channelPrefix(Code) | | |
folderPrefix | final protected static String folderPrefix(Code) | | |
localeAware | final protected static boolean localeAware(Code) | | |
log | final protected Log log(Code) | | |
addStructureStylesheetDescription | public Integer addStructureStylesheetDescription(StructureStylesheetDescription ssd) throws Exception(Code) | | Registers a NEW structure stylesheet with the database.
Parameters: ssd - the Stylesheet description object an Integer id for the registered Stylesheet description object |
addStructureStylesheetDescription | public Integer addStructureStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI)(Code) | | Add a structure stylesheet description
Parameters: stylesheetDescriptionURI - Parameters: stylesheetURI - an Integer id of the registered Structure Stylesheet description object if successful;null otherwise. |
addThemeStylesheetDescription | public Integer addThemeStylesheetDescription(ThemeStylesheetDescription tsd) throws Exception(Code) | | Registers a NEW theme stylesheet with the database.
Parameters: tsd - Stylesheet description object an Integer id of the registered Theme Stylesheet if successful;null otherwise. |
addThemeStylesheetDescription | public Integer addThemeStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI)(Code) | | Add theme stylesheet description
Parameters: stylesheetDescriptionURI - Parameters: stylesheetURI - an Integer id of the registered Theme Stylesheet if successful;null otherwise. |
channelApproved | protected static boolean channelApproved(java.util.Date approvedDate)(Code) | | Checks if a channel has been approved
Parameters: approvedDate - boolean Channel is approved |
deleteSystemProfile | public void deleteSystemProfile(int profileId) throws Exception(Code) | | |
dumpDoc | final public static void dumpDoc(Node node, String indent)(Code) | | Dump a document tree structure on stdout
Parameters: node - Parameters: indent - |
generateNewChannelSubscribeId | public String generateNewChannelSubscribeId(IPerson person) throws Exception(Code) | | Return the next available channel structure id for a user
Parameters: person - the next available channel structure id |
generateNewFolderId | public String generateNewFolderId(IPerson person) throws Exception(Code) | | Return the next available folder structure id for a user
Parameters: person - a String that is the next free structure ID exception: Exception - |
getLayoutID | protected int getLayoutID(int userId, int profileId) throws SQLException(Code) | | Returns the current layout ID for the user and profile. If the profile doesn't exist or the
layout_id field is null 0 is returned.
Parameters: userId - The userId for the profile Parameters: profileId - The profileId for the profile The layout_id field or 0 if it does not exist or is null throws: SQLException - |
getNextStructId | protected synchronized String getNextStructId(IPerson person, String prefix) throws Exception(Code) | | Return the next available structure id for a user
Parameters: person - Parameters: prefix - next free structure ID exception: Exception - |
getStructId | protected String getStructId(int structId, int chanId)(Code) | | Return the Structure ID tag
Parameters: structId - Parameters: chanId - ID tag |
getStructureStylesheetDescription | public StructureStylesheetDescription getStructureStylesheetDescription(int stylesheetId) throws Exception(Code) | | Obtain structure stylesheet description object for a given structure stylesheet id.
Parameters: stylesheetId - the id of the structure stylesheet structure stylesheet description |
getStructureStylesheetId | public Integer getStructureStylesheetId(String ssName) throws Exception(Code) | | Obtain ID for known structure stylesheet name
Parameters: ssName - name of the structure stylesheet id or null if no stylesheet matches the name given. |
getStructureStylesheetList | public Hashtable getStructureStylesheetList(String mimeType) throws Exception(Code) | | Obtain a list of structure stylesheet descriptions that have stylesheets for a given
mime type.
Parameters: mimeType - a mapping from stylesheet names to structure stylesheet description objects |
getThemeStylesheetDescription | public ThemeStylesheetDescription getThemeStylesheetDescription(int stylesheetId) throws Exception(Code) | | Obtain theme stylesheet description object for a given theme stylesheet id.
Parameters: stylesheetId - the id of the theme stylesheet theme stylesheet description |
getThemeStylesheetId | public Integer getThemeStylesheetId(String tsName) throws Exception(Code) | | Obtain ID for known theme stylesheet name
Parameters: tsName - name of the theme stylesheet id or null if no theme matches the name given. |
getThemeStylesheetList | public Hashtable getThemeStylesheetList(int structureStylesheetId) throws Exception(Code) | | Obtain a list of theme stylesheet descriptions for a given structure stylesheet
Parameters: structureStylesheetId - a map of stylesheet names to theme stylesheet description objects exception: Exception - |
removeStructureStylesheetDescription | public void removeStructureStylesheetDescription(int stylesheetId) throws Exception(Code) | | |
removeThemeStylesheetDescription | public void removeThemeStylesheetDescription(int stylesheetId) throws Exception(Code) | | |
setSystemBrowserMapping | public void setSystemBrowserMapping(String userAgent, int profileId) throws Exception(Code) | | |
setUserLayout | public void setUserLayout(IPerson person, UserProfile profile, Document layoutXML, boolean channelsAdded) throws Exception(Code) | | Save the user layout.
Parameters: person - Parameters: profile - Parameters: layoutXML - throws: Exception - |
updateStructureStylesheetDescription | public boolean updateStructureStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI, int stylesheetId)(Code) | | Update the structure stylesheet description
Parameters: stylesheetDescriptionURI - Parameters: stylesheetURI - Parameters: stylesheetId - true if update succeeded, otherwise false |
updateStructureStylesheetDescription | public void updateStructureStylesheetDescription(StructureStylesheetDescription ssd) throws Exception(Code) | | Updates an existing structure stylesheet description with a new one. Old stylesheet
description is found based on the Id provided in the parameter structure.
Parameters: ssd - new stylesheet description |
updateThemeStylesheetDescription | public boolean updateThemeStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI, int stylesheetId)(Code) | | Update the theme stylesheet description.
Parameters: stylesheetDescriptionURI - Parameters: stylesheetURI - Parameters: stylesheetId - true if update succeeded, otherwise false |
updateThemeStylesheetDescription | public void updateThemeStylesheetDescription(ThemeStylesheetDescription tsd) throws Exception(Code) | | Updates an existing structure stylesheet description with a new one. Old stylesheet
description is found based on the Id provided in the parameter structure.
Parameters: tsd - new theme stylesheet description |
xmlBool | final protected static boolean xmlBool(String value)(Code) | | convert true/false into Y/N for database
Parameters: value - to check |
|
|