Java Doc for UserLayoutStoreMock.java in  » Portal » uPortal_rel-2-6-1-GA » org » jasig » portal » layout » 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 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jasig.portal.layout.UserLayoutStoreMock

All known Subclasses:   org.jasig.portal.layout.SingleDocumentUserLayoutStoreMock,
UserLayoutStoreMock
public class UserLayoutStoreMock implements IUserLayoutStore(Code)
A base class for UserLayoutStore mock objects that does nothing.
author:
   Peter Kharchenko pkharchenko@interactivebusiness.com"
version:
   1.0



Constructor Summary
public  UserLayoutStoreMock()
     UserLayoutStoreMock constructor comment.

Method Summary
public  IntegeraddStructureStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI)
    
public  UserProfileaddSystemProfile(UserProfile profile)
     add a new system profile to the database.
public  IntegeraddThemeStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI)
    
public  UserProfileaddUserProfile(org.jasig.portal.security.IPerson person, UserProfile profile)
     Creates a new user profile in the database.
public  voiddeleteSystemProfile(int profileId)
    
public  voiddeleteUserProfile(org.jasig.portal.security.IPerson person, int profileId)
    
public  StringgenerateNewChannelSubscribeId(org.jasig.portal.security.IPerson person)
    
public  StringgenerateNewFolderId(org.jasig.portal.security.IPerson person)
    
public  java.util.HashtablegetMimeTypeList()
    
public  StructureStylesheetDescriptiongetStructureStylesheetDescription(int stylesheetId)
    
public  java.util.HashtablegetStructureStylesheetList()
    
public  java.util.HashtablegetStructureStylesheetList(String mimeType)
    
public  StructureStylesheetUserPreferencesgetStructureStylesheetUserPreferences(org.jasig.portal.security.IPerson person, int profileId, int stylesheetId)
     Obtain structure stylesheet user preferences
Parameters:
  person - User
Parameters:
  profileId - profile id
Parameters:
  stylesheetId - structure stylesheet id structure stylesheet user preferences.
public  UserProfilegetSystemProfile(String userAgent)
    
public  UserProfilegetSystemProfileById(int profileId)
    
public  java.util.HashtablegetSystemProfileList()
    
public  ThemeStylesheetDescriptiongetThemeStylesheetDescription(int stylesheetId)
    
public  java.util.HashtablegetThemeStylesheetList()
    
public  java.util.HashtablegetThemeStylesheetList(int structureStylesheetId)
     Obtains a list of theme stylesheets available for a particular structure stylesheet.
public  ThemeStylesheetUserPreferencesgetThemeStylesheetUserPreferences(org.jasig.portal.security.IPerson person, int profileId, int stylesheetId)
     Obtain theme stylesheet user preferences
Parameters:
  person - User
Parameters:
  profileId - profile id
Parameters:
  stylesheetId - theme stylesheet id theme stylesheet user preferences.
public  org.w3c.dom.DocumentgetUserLayout(org.jasig.portal.security.IPerson person, UserProfile profile)
     Retreive a user layout document.
public  UserPreferencesgetUserPreferences(org.jasig.portal.security.IPerson person, UserProfile profile)
    
public  UserProfilegetUserProfile(org.jasig.portal.security.IPerson person, String userAgent)
    
public  UserProfilegetUserProfileById(org.jasig.portal.security.IPerson person, int profileId)
     Obtains a user profile by profile id.
public  java.util.HashtablegetUserProfileList(org.jasig.portal.security.IPerson person)
    
public  voidputUserPreferences(org.jasig.portal.security.IPerson person, UserPreferences up)
    
public  voidremoveStructureStylesheetDescription(int stylesheetId)
    
public  voidremoveThemeStylesheetDescription(int stylesheetId)
    
public  voidsetStructureStylesheetUserPreferences(org.jasig.portal.security.IPerson person, int profileId, StructureStylesheetUserPreferences fsup)
    
public  voidsetSystemBrowserMapping(String userAgent, int systemProfileId)
    
public  voidsetThemeStylesheetUserPreferences(org.jasig.portal.security.IPerson person, int profileId, ThemeStylesheetUserPreferences ssup)
    
public  voidsetUserBrowserMapping(org.jasig.portal.security.IPerson person, String userAgent, int profileId)
    
public  voidsetUserLayout(org.jasig.portal.security.IPerson person, UserProfile profile, org.w3c.dom.Document layoutXML, boolean channelsAdded)
     Persist user layout document.
public  booleanupdateStructureStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI, int stylesheetId)
     Updates an existing structure stylesheet description.
public  voidupdateSystemProfile(UserProfile profile)
    
public  booleanupdateThemeStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI, int stylesheetId)
     Updates an existing theme stylesheet description.
public  voidupdateUserProfile(org.jasig.portal.security.IPerson person, UserProfile profile)
    


Constructor Detail
UserLayoutStoreMock
public UserLayoutStoreMock()(Code)
UserLayoutStoreMock constructor comment.




Method Detail
addStructureStylesheetDescription
public Integer addStructureStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI) throws Exception(Code)
Registers new structure stylesheet with the portal database
Parameters:
  stylesheetDescriptionURI - Location of the stylesheet description XML file
Parameters:
  stylesheetURI - Location of the actual stylesshet XML file id assigned to the stylesheet or null if the operation failed



addSystemProfile
public UserProfile addSystemProfile(UserProfile profile) throws Exception(Code)
add a new system profile to the database. During this process, a new profile id will be assigned to the profile.
Parameters:
  profile - profile object (profile id within will be overwritten) profile with an newly assigned id



addThemeStylesheetDescription
public Integer addThemeStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI) throws Exception(Code)
Registers a new theme stylesheet with the portal databases
Parameters:
  stylesheetDescriptionURI - Location of the stylesheet descriptionXML file
Parameters:
  stylesheetURI - Location of the actual stylesheet XML file id assigned to the stylesheet or null if the operation failed



addUserProfile
public UserProfile addUserProfile(org.jasig.portal.security.IPerson person, UserProfile profile) throws Exception(Code)
Creates a new user profile in the database. In the process, new profileId is assigned to the profile
Parameters:
  person - User
Parameters:
  profile - profile object (profile id in this object will beoverwritten) profile object with the profile id set to the newly generatedid



deleteSystemProfile
public void deleteSystemProfile(int profileId) throws Exception(Code)
remove system profile from the database
Parameters:
  profileId - profile id



deleteUserProfile
public void deleteUserProfile(org.jasig.portal.security.IPerson person, int profileId) throws Exception(Code)
remove user profile from the database
Parameters:
  person - User
Parameters:
  profileId - profile id



generateNewChannelSubscribeId
public String generateNewChannelSubscribeId(org.jasig.portal.security.IPerson person) throws Exception(Code)



generateNewFolderId
public String generateNewFolderId(org.jasig.portal.security.IPerson person) throws Exception(Code)
Generate a folder id for a folder being added to the user layout
Parameters:
  person - an IPerson value a String value
exception:
  Exception - if an error occurs



getMimeTypeList
public java.util.Hashtable getMimeTypeList() throws Exception(Code)
Obtains a list of mime types available on the installation Returns a hasbtale mapping mime type strings to their worddescriptions (simple String)



getStructureStylesheetDescription
public StructureStylesheetDescription getStructureStylesheetDescription(int stylesheetId) throws Exception(Code)
Obtains a complete description of the structure stylesheet
Parameters:
  stylesheetId - id of the structure stylesheet a description of the structure stylesheet



getStructureStylesheetList
public java.util.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 -



getStructureStylesheetList
public java.util.Hashtable getStructureStylesheetList(String mimeType) throws Exception(Code)
CoreStylesheetDescription



getStructureStylesheetUserPreferences
public StructureStylesheetUserPreferences getStructureStylesheetUserPreferences(org.jasig.portal.security.IPerson person, int profileId, int stylesheetId) throws Exception(Code)
Obtain structure stylesheet user preferences
Parameters:
  person - User
Parameters:
  profileId - profile id
Parameters:
  stylesheetId - structure stylesheet id structure stylesheet user preferences. null is returned only if userId, profileId or stylesheet with an appropriate name do not exist. If all of the parameters are valid, but the user does not have any user preference settings associated with this stylesheet, return contains stylesheet preference object filled in with the defaults defined in stylesheet description.



getSystemProfile
public UserProfile getSystemProfile(String userAgent) throws Exception(Code)
retreive a system profile associated with a given browser
Parameters:
  userAgent - User-Agent header string profile object



getSystemProfileById
public UserProfile getSystemProfileById(int profileId) throws Exception(Code)
Obtain a system profile
Parameters:
  profileId - system profile id



getSystemProfileList
public java.util.Hashtable getSystemProfileList() throws Exception(Code)
obtain a list of system profiles a Hashtable mapping system profile ids (Integer objects) to the UserProfile objects



getThemeStylesheetDescription
public ThemeStylesheetDescription getThemeStylesheetDescription(int stylesheetId) throws Exception(Code)
Obtains a complete description of a theme stylesheet
Parameters:
  stylesheetId - id of a theme stylesheet a description of a theme stylesheet



getThemeStylesheetList
public java.util.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 -



getThemeStylesheetList
public java.util.Hashtable getThemeStylesheetList(int structureStylesheetId) throws Exception(Code)
Obtains a list of theme stylesheets available for a particular structure stylesheet.
Parameters:
  structureStylesheetId - id of the structure stylehsset a Hashtable mapping stylesheet id (Integer objects) to ThemeStylesheetDescription objects



getThemeStylesheetUserPreferences
public ThemeStylesheetUserPreferences getThemeStylesheetUserPreferences(org.jasig.portal.security.IPerson person, int profileId, int stylesheetId) throws Exception(Code)
Obtain theme stylesheet user preferences
Parameters:
  person - User
Parameters:
  profileId - profile id
Parameters:
  stylesheetId - theme stylesheet id theme stylesheet user preferences. null is returned only if userId, profileId or stylesheet with an appropriate name do not exist. If all of the parameters are valid, but the user does not have any user preference settings associated with this stylesheet, return contains stylesheet preference object filled in with the defaults defined in stylesheet description.



getUserLayout
public org.w3c.dom.Document getUserLayout(org.jasig.portal.security.IPerson person, UserProfile profile) throws Exception(Code)
Retreive a user layout document.
Parameters:
  person - an IPerson object specifying the user
Parameters:
  profile - a user profile a Document containing user layout (conforms to userLayout.dtd)
exception:
  Exception - if an error occurs



getUserPreferences
public UserPreferences getUserPreferences(org.jasig.portal.security.IPerson person, UserProfile profile) throws Exception(Code)
Retreive the entire UserPreferences object
Parameters:
  person - User
Parameters:
  profile - profile user preferences



getUserProfile
public UserProfile getUserProfile(org.jasig.portal.security.IPerson person, String userAgent) throws Exception(Code)
Obtain user profile associated with a particular browser
Parameters:
  person - User
Parameters:
  userAgent - User-Agent header string user profile or null if no user profiles are associated with the given user agent.



getUserProfileById
public UserProfile getUserProfileById(org.jasig.portal.security.IPerson person, int profileId) throws Exception(Code)
Obtains a user profile by profile id.
Parameters:
  person - an IPerson object representing the user
Parameters:
  profileId - profile id



getUserProfileList
public java.util.Hashtable getUserProfileList(org.jasig.portal.security.IPerson person) throws Exception(Code)
retreive a list of profiles associated with a user
Parameters:
  person - User a Hashtable mapping user profile ids (Integer objects) to the UserProfile objects



putUserPreferences
public void putUserPreferences(org.jasig.portal.security.IPerson person, UserPreferences up) throws Exception(Code)
save user preferences
Parameters:
  person - User
Parameters:
  up - user preferences object



removeStructureStylesheetDescription
public void removeStructureStylesheetDescription(int stylesheetId) throws Exception(Code)
removes stylesheet description
Parameters:
  stylesheetId - id of the stylesheet



removeThemeStylesheetDescription
public void removeThemeStylesheetDescription(int stylesheetId) throws Exception(Code)
Removes theme stylesheet
Parameters:
  stylesheetId - id of the stylesheet



setStructureStylesheetUserPreferences
public void setStructureStylesheetUserPreferences(org.jasig.portal.security.IPerson person, int profileId, StructureStylesheetUserPreferences fsup) throws Exception(Code)
Save structure stylesheet user pferences
Parameters:
  person - User
Parameters:
  profileId - profile id
Parameters:
  fsup - structure stylesheet user preferences



setSystemBrowserMapping
public void setSystemBrowserMapping(String userAgent, int systemProfileId) throws Exception(Code)
establish system profile browser mapping
Parameters:
  userAgent - User-Agent header string
Parameters:
  systemProfileId - profile id of a profile to which givenuser-agent will be mapped



setThemeStylesheetUserPreferences
public void setThemeStylesheetUserPreferences(org.jasig.portal.security.IPerson person, int profileId, ThemeStylesheetUserPreferences ssup) throws Exception(Code)
Save theme stylesheet user preferences
Parameters:
  person - User
Parameters:
  profileId - profile id
Parameters:
  ssup - structure stylesheet user preferneces



setUserBrowserMapping
public void setUserBrowserMapping(org.jasig.portal.security.IPerson person, String userAgent, int profileId) throws Exception(Code)
establish a browser - user profile mapping
Parameters:
  person - User
Parameters:
  userAgent - User-Agent header string
Parameters:
  profileId - profile id to which given user agent will be mapped



setUserLayout
public void setUserLayout(org.jasig.portal.security.IPerson person, UserProfile profile, org.w3c.dom.Document layoutXML, boolean channelsAdded) throws Exception(Code)
Persist user layout document.
Parameters:
  person - an IPerson object specifying the user
Parameters:
  profile - a user profile for which the layout is being stored
Parameters:
  layoutXML - a Document containing user layout (conforming to userLayout.dtd)
Parameters:
  channelsAdded - a boolean flag specifying if new channels have been added to the current user layout (for performance optimization purposes)
exception:
  Exception - if an error occurs



updateStructureStylesheetDescription
public boolean updateStructureStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI, int stylesheetId)(Code)
Updates an existing structure stylesheet description.
Parameters:
  stylesheetDescriptionURI - Location of the stylesheet description XML file
Parameters:
  stylesheetURI - Location of the actual stylesshet XML file
Parameters:
  stylesheetId - the id of the existing stylesheet description true if the update successful



updateSystemProfile
public void updateSystemProfile(UserProfile profile) throws Exception(Code)
update system profile
Parameters:
  profile - profile object



updateThemeStylesheetDescription
public boolean updateThemeStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI, int stylesheetId) throws Exception(Code)
Updates an existing theme stylesheet description.
Parameters:
  stylesheetDescriptionURI - Location of the stylesheet description XML file
Parameters:
  stylesheetURI - Location of the actual stylesshet XML file
Parameters:
  stylesheetId - the id of the existing stylesheet description true if the update successful



updateUserProfile
public void updateUserProfile(org.jasig.portal.security.IPerson person, UserProfile profile) throws Exception(Code)
update user profile
Parameters:
  person - User
Parameters:
  profile - profile update



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.