Java Doc for RDBMUserLayoutStore.java in  » Portal » uPortal_rel-2-6-1-GA » org » jasig » portal » layout » simple » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » uPortal_rel 2 6 1 GA » org.jasig.portal.layout.simple 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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) $


Field Summary
protected static  intDEBUG
    
final protected static  StringchannelPrefix
    
protected  IChannelRegistryStorecrs
    
protected  ICounterStorecsdb
    
final protected static  StringfolderPrefix
    
final protected static  booleanlocaleAware
    
final protected  Loglog
    

Constructor Summary
public  RDBMUserLayoutStore()
    

Method Summary
public  IntegeraddStructureStylesheetDescription(StructureStylesheetDescription ssd)
     Registers a NEW structure stylesheet with the database.
public  IntegeraddStructureStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI)
    
public  UserProfileaddSystemProfile(UserProfile profile)
    
public  IntegeraddThemeStylesheetDescription(ThemeStylesheetDescription tsd)
     Registers a NEW theme stylesheet with the database.
public  IntegeraddThemeStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI)
    
public  UserProfileaddUserProfile(IPerson person, UserProfile profile)
    
protected static  booleanchannelApproved(java.util.Date approvedDate)
    
final protected  voidcreateLayout(HashMap layoutStructure, Document doc, Element root, int structId)
    
public  voiddeleteSystemProfile(int profileId)
    
public  voiddeleteUserProfile(IPerson person, int profileId)
    
final public static  voiddumpDoc(Node node, String indent)
    
public  StringgenerateNewChannelSubscribeId(IPerson person)
    
public  StringgenerateNewFolderId(IPerson person)
    
protected  intgetLayoutID(int userId, int profileId)
     Returns the current layout ID for the user and profile.
public  HashtablegetMimeTypeList()
    
protected synchronized  StringgetNextStructId(IPerson person, String prefix)
    
protected  StringgetStructId(int structId, int chanId)
    
protected  ElementgetStructure(Document doc, LayoutStructure ls)
    
public  StructureStylesheetDescriptiongetStructureStylesheetDescription(int stylesheetId)
     Obtain structure stylesheet description object for a given structure stylesheet id.
public  IntegergetStructureStylesheetId(String ssName)
    
public  HashtablegetStructureStylesheetList(String mimeType)
     Obtain a list of structure stylesheet descriptions that have stylesheets for a given mime type.
public  HashtablegetStructureStylesheetList()
    
public  StructureStylesheetUserPreferencesgetStructureStylesheetUserPreferences(IPerson person, int profileId, int stylesheetId)
    
public  UserProfilegetSystemProfile(String userAgent)
    
public  UserProfilegetSystemProfileById(int profileId)
    
public  HashtablegetSystemProfileList()
    
public  ThemeStylesheetDescriptiongetThemeStylesheetDescription(int stylesheetId)
     Obtain theme stylesheet description object for a given theme stylesheet id.
public  IntegergetThemeStylesheetId(String tsName)
    
public  HashtablegetThemeStylesheetList(int structureStylesheetId)
    
public  HashtablegetThemeStylesheetList()
    
public  ThemeStylesheetUserPreferencesgetThemeStylesheetUserPreferences(IPerson person, int profileId, int stylesheetId)
    
public  DocumentgetUserLayout(IPerson person, UserProfile profile)
    
public  UserPreferencesgetUserPreferences(IPerson person, int profileId)
    
public  UserPreferencesgetUserPreferences(IPerson person, UserProfile profile)
    
public  UserProfilegetUserProfile(IPerson person, String userAgent)
    
public  UserProfilegetUserProfileById(IPerson person, int profileId)
    
public  HashtablegetUserProfileList(IPerson person)
    
public  voidputUserPreferences(IPerson person, UserPreferences up)
    
public  voidremoveStructureStylesheetDescription(int stylesheetId)
    
public  voidremoveThemeStylesheetDescription(int stylesheetId)
    
protected  intsaveStructure(Node node, PreparedStatement structStmt, PreparedStatement parmStmt)
    
public  voidsetStructureStylesheetUserPreferences(IPerson person, int profileId, StructureStylesheetUserPreferences ssup)
    
public  voidsetSystemBrowserMapping(String userAgent, int profileId)
    
public  voidsetThemeStylesheetUserPreferences(IPerson person, int profileId, ThemeStylesheetUserPreferences tsup)
    
public  voidsetUserBrowserMapping(IPerson person, String userAgent, int profileId)
    
public  voidsetUserLayout(IPerson person, UserProfile profile, Document layoutXML, boolean channelsAdded)
     Save the user layout.
public  booleanupdateStructureStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI, int stylesheetId)
    
public  voidupdateStructureStylesheetDescription(StructureStylesheetDescription ssd)
     Updates an existing structure stylesheet description with a new one.
public  voidupdateSystemProfile(UserProfile profile)
    
public  booleanupdateThemeStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI, int stylesheetId)
     Update the theme stylesheet description.
public  voidupdateThemeStylesheetDescription(ThemeStylesheetDescription tsd)
     Updates an existing structure stylesheet description with a new one.
public  voidupdateUserProfile(IPerson person, UserProfile profile)
    
final protected static  booleanxmlBool(String value)
    

Field Detail
DEBUG
protected static int DEBUG(Code)



channelPrefix
final protected static String channelPrefix(Code)



crs
protected IChannelRegistryStore crs(Code)



csdb
protected ICounterStore csdb(Code)



folderPrefix
final protected static String folderPrefix(Code)



localeAware
final protected static boolean localeAware(Code)



log
final protected Log log(Code)




Constructor Detail
RDBMUserLayoutStore
public RDBMUserLayoutStore() throws Exception(Code)




Method Detail
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.



addSystemProfile
public UserProfile addSystemProfile(UserProfile profile) throws Exception(Code)



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.



addUserProfile
public UserProfile addUserProfile(IPerson person, UserProfile profile) throws Exception(Code)
Add a user profile
Parameters:
  person -
Parameters:
  profile - userProfile
exception:
  Exception -



channelApproved
protected static boolean channelApproved(java.util.Date approvedDate)(Code)
Checks if a channel has been approved
Parameters:
  approvedDate - boolean Channel is approved



createLayout
final protected void createLayout(HashMap layoutStructure, Document doc, Element root, int structId) throws java.sql.SQLException, Exception(Code)
Create a layout
Parameters:
  layoutStructure -
Parameters:
  doc -
Parameters:
  root -
Parameters:
  structId -
exception:
  java.sql.SQLException -



deleteSystemProfile
public void deleteSystemProfile(int profileId) throws Exception(Code)



deleteUserProfile
public void deleteUserProfile(IPerson person, 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 -



getMimeTypeList
public Hashtable getMimeTypeList() throws Exception(Code)
CoreStyleSheet



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



getStructure
protected Element getStructure(Document doc, LayoutStructure ls) throws Exception(Code)



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



getStructureStylesheetList
public Hashtable getStructureStylesheetList() throws Exception(Code)
Obtain a list of strcture stylesheet descriptions registered on the system a Hashtable mapping stylesheet id (Integer objects) to StructureStylesheetDescription objects
exception:
  Exception -



getStructureStylesheetUserPreferences
public StructureStylesheetUserPreferences getStructureStylesheetUserPreferences(IPerson person, int profileId, int stylesheetId) throws Exception(Code)



getSystemProfile
public UserProfile getSystemProfile(String userAgent) throws Exception(Code)



getSystemProfileById
public UserProfile getSystemProfileById(int profileId) throws Exception(Code)



getSystemProfileList
public Hashtable getSystemProfileList() throws Exception(Code)



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 -



getThemeStylesheetList
public Hashtable getThemeStylesheetList() throws Exception(Code)
Obtain a list of theme stylesheet descriptions registered on the system a Hashtable mapping stylesheet id (Integer objects) to ThemeStylesheetDescription objects
exception:
  Exception -



getThemeStylesheetUserPreferences
public ThemeStylesheetUserPreferences getThemeStylesheetUserPreferences(IPerson person, int profileId, int stylesheetId) throws Exception(Code)



getUserLayout
public Document getUserLayout(IPerson person, UserProfile profile) throws Exception(Code)



getUserPreferences
public UserPreferences getUserPreferences(IPerson person, int profileId) throws Exception(Code)



getUserPreferences
public UserPreferences getUserPreferences(IPerson person, UserProfile profile) throws Exception(Code)



getUserProfile
public UserProfile getUserProfile(IPerson person, String userAgent) throws Exception(Code)



getUserProfileById
public UserProfile getUserProfileById(IPerson person, int profileId) throws Exception(Code)



getUserProfileList
public Hashtable getUserProfileList(IPerson person) throws Exception(Code)



putUserPreferences
public void putUserPreferences(IPerson person, UserPreferences up) throws Exception(Code)



removeStructureStylesheetDescription
public void removeStructureStylesheetDescription(int stylesheetId) throws Exception(Code)



removeThemeStylesheetDescription
public void removeThemeStylesheetDescription(int stylesheetId) throws Exception(Code)



saveStructure
protected int saveStructure(Node node, PreparedStatement structStmt, PreparedStatement parmStmt) throws Exception(Code)



setStructureStylesheetUserPreferences
public void setStructureStylesheetUserPreferences(IPerson person, int profileId, StructureStylesheetUserPreferences ssup) throws Exception(Code)



setSystemBrowserMapping
public void setSystemBrowserMapping(String userAgent, int profileId) throws Exception(Code)



setThemeStylesheetUserPreferences
public void setThemeStylesheetUserPreferences(IPerson person, int profileId, ThemeStylesheetUserPreferences tsup) throws Exception(Code)



setUserBrowserMapping
public void setUserBrowserMapping(IPerson person, 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



updateSystemProfile
public void updateSystemProfile(UserProfile profile) throws Exception(Code)



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



updateUserProfile
public void updateUserProfile(IPerson person, UserProfile profile) throws Exception(Code)



xmlBool
final protected static boolean xmlBool(String value)(Code)
convert true/false into Y/N for database
Parameters:
  value - to check



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.