Java Doc for DummySharedCalendarUtilsImpl.java in  » Portal » Open-Portal » com » sun » portal » app » calendarcommon » calendar » 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 » Open Portal » com.sun.portal.app.calendarcommon.calendar 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.portal.app.calendarcommon.calendar.DummySharedCalendarUtilsImpl

DummySharedCalendarUtilsImpl
public class DummySharedCalendarUtilsImpl implements SharedCalendarUtils(Code)
Dummy implementation of SharedCalendarUtils for testing.
author:
   Nigel Jacobs


Field Summary
final public static  StringCTY_CAL_PREFIX
    

Constructor Summary
public  DummySharedCalendarUtilsImpl()
    

Method Summary
public  booleancreateEventsInMembersCalendar(FacesContext context)
     Should events be created in the member's community calendar, or solely in the proxy community calendar (defined in SSO adapter config param).
Parameters:
  The - faces context.
public  booleancreateEventsInMembersCalendar(PortletRequest portletRequest)
     Should events be created in the member's community calendar, or solely in the proxy community calendar (defined in SSO adapter config param).
Parameters:
  The - portlet request.
public  voiddeleteItemFromSearchDatabase(FacesContext context, int appType, String itemID)
     Delete a resource description for the calendar item from the search database.
public  voiddeleteProxyCalendarStore(String communityID, Properties configProps)
    
public  voiddestroy()
     Perform any clean up operations: close connections and release resources.
public  StringgetCommunityCalendarID(PortletRequest portletRequest)
    
public  StringgetCommunityCalendarID(String communityID, String domainIfHosted)
     Compute the community proxy users calendar id for this community. e.g.
public  StringgetCommunityCalendarID(FacesContext context)
     Compute the community proxy users calendar id for this community. e.g.
public  PropertiesgetConfigProperties(PortletPreferences preferences, HttpServletRequest servletRequest)
     Get the Shared Calendar configuration properties for this portlet.
public  PropertiesgetConfigProperties(Map preferences, HttpServletRequest servletRequest)
     Get the Shared Calendar configuration properties for this portlet.
public  DelegatedAdministratorHandlergetDAHandler(String communityID, Properties configProps)
     Find of create a DelegatedAdministratorHandler for the community.
Parameters:
  communityID - The community ID.
Parameters:
  configProps - The SSO adapter configuration properties for the community.
public  StringgetMemberCalendarID(PortletRequest portletRequest, String memberID)
    
public  StringgetMemberCalendarID(FacesContext context, String memberID)
     Compute the community member's universal calendar id (common across communities).
public synchronized  CalendarStoregetMemberCalendarStore(PortletRequest portletRequest, String memberID)
     Get the user id, and configuration via the request.
public  CalendarStoregetMemberCalendarStore(String communityID, String memberID)
     Get the user id, and configuration via the request.
public  CalendarStoregetMemberCalendarStore(HttpServletRequest servletRequest, Map preferences, String communityID, String memberID)
     Get the user id, and configuration via the request.
public  CalendarStoregetMemberCalendarStore(FacesContext context, String memberID)
     Get the user id, and configuration via the request.
public synchronized  CalendarStoregetProxyCalendarStore(PortletRequest portletRequest)
     Get the community id, and the configuration via the request.
public  CalendarStoregetProxyCalendarStore(String communityID)
     Generate the calendar id from the community id.
public  CalendarStoregetProxyCalendarStore(PortletProvisionPreferences preferences, HttpServletRequest servletRequest, String communityID)
     Get the community id, and the configuration via the request.
public  CalendarStoregetProxyCalendarStore(FacesContext context)
     Get the community id, and the configuration via the request.
public  StringgetProxyUser(String communityID)
    
public  SearchDatabasegetSearchDatabase(FacesContext context)
     Connect to a search database for the community.
public  StringgetSearchDatabase(PortletRequest request)
     Get the community search database.
public  StringgetSearchServerURL(PortletRequest request)
     Get the URL of the community search server.
public  StringgetSearchServerURL(javax.faces.context.FacesContext context)
     Get the URL of the community search server.
public  voidinsertItemIntoSearchDatabase(FacesContext context, int appType, String memberID, String itemID, String title, String description, String displayUrl)
     Insert a resource description for the calendar item into the search database.

Field Detail
CTY_CAL_PREFIX
final public static String CTY_CAL_PREFIX(Code)




Constructor Detail
DummySharedCalendarUtilsImpl
public DummySharedCalendarUtilsImpl()(Code)




Method Detail
createEventsInMembersCalendar
public boolean createEventsInMembersCalendar(FacesContext context) throws SharedServicesException(Code)
Should events be created in the member's community calendar, or solely in the proxy community calendar (defined in SSO adapter config param).
Parameters:
  The - faces context. Whether to create events in members community calendar



createEventsInMembersCalendar
public boolean createEventsInMembersCalendar(PortletRequest portletRequest) throws SharedServicesException(Code)
Should events be created in the member's community calendar, or solely in the proxy community calendar (defined in SSO adapter config param).
Parameters:
  The - portlet request. Whether to create events in members community calendar



deleteItemFromSearchDatabase
public void deleteItemFromSearchDatabase(FacesContext context, int appType, String itemID) throws SharedServicesException(Code)
Delete a resource description for the calendar item from the search database.
Parameters:
  appType - APP_TYPE_SHAREDEVENTS or APP_TYPE_SHAREDTASKS
Parameters:
  itemID - The ID of the event or task



deleteProxyCalendarStore
public void deleteProxyCalendarStore(String communityID, Properties configProps) throws SharedServicesException(Code)
Delete the proxy calendar store



destroy
public void destroy()(Code)
Perform any clean up operations: close connections and release resources.



getCommunityCalendarID
public String getCommunityCalendarID(PortletRequest portletRequest) throws SharedServicesException(Code)



getCommunityCalendarID
public String getCommunityCalendarID(String communityID, String domainIfHosted)(Code)
Compute the community proxy users calendar id for this community. e.g. "Friends" => "CTY_CAL_Friends"
Parameters:
  communityID -
Parameters:
  domainIfHosted - the domain if we are in hosted mode, else null Community proxys calendar id



getCommunityCalendarID
public String getCommunityCalendarID(FacesContext context) throws SharedServicesException(Code)
Compute the community proxy users calendar id for this community. e.g. "Friends" => "CTY_CAL_Friends"
Parameters:
  portletRequest - Used to retrieve the community id. Community proxys calendar id



getConfigProperties
public Properties getConfigProperties(PortletPreferences preferences, HttpServletRequest servletRequest) throws SharedServicesException(Code)
Get the Shared Calendar configuration properties for this portlet. Use the config name stored in the portlet prefs to look up the sso adapter config, and return contained properties.
Parameters:
  preferences -
Parameters:
  servletRequest -



getConfigProperties
public Properties getConfigProperties(Map preferences, HttpServletRequest servletRequest) throws SharedServicesException(Code)
Get the Shared Calendar configuration properties for this portlet. Use the config name stored in the portlet prefs to look up the sso adapter config, and return contained properties.
Parameters:
  preferences -
Parameters:
  servletRequest -



getDAHandler
public DelegatedAdministratorHandler getDAHandler(String communityID, Properties configProps)(Code)
Find of create a DelegatedAdministratorHandler for the community.
Parameters:
  communityID - The community ID.
Parameters:
  configProps - The SSO adapter configuration properties for the community. The DelegatedAdministratorHandler for the community.



getMemberCalendarID
public String getMemberCalendarID(PortletRequest portletRequest, String memberID) throws SharedServicesException(Code)



getMemberCalendarID
public String getMemberCalendarID(FacesContext context, String memberID) throws SharedServicesException(Code)
Compute the community member's universal calendar id (common across communities). Uses the cached organization param, retrieve from the portlet request. e.g. "joe" in organization "sun.com" => CTY_CAL_joe@sun.com
Parameters:
  portletRequest -
Parameters:
  memberID -



getMemberCalendarStore
public synchronized CalendarStore getMemberCalendarStore(PortletRequest portletRequest, String memberID) throws SharedServicesException(Code)
Get the user id, and configuration via the request. Generate the calendar id from the user id. If the calendar store is cached (indexed by calendar id), return it. Otherwise connect to calendar server, get the users calendar store, and create the calendar with id, setting default permissions, but allowing the proxy user update access. Cache and return the store.
Parameters:
  portletRequest -
Parameters:
  memberID -



getMemberCalendarStore
public CalendarStore getMemberCalendarStore(String communityID, String memberID) throws SharedServicesException(Code)
Get the user id, and configuration via the request. Generate the calendar id from the user id. If the calendar store is cached (indexed by calendar id), return it. Otherwise connect to calendar server, get the users calendar store, and create the calendar with id, setting default permissions, but allowing the proxy user update access. Cache and return the store.
Parameters:
  portletRequest -
Parameters:
  memberID -



getMemberCalendarStore
public CalendarStore getMemberCalendarStore(HttpServletRequest servletRequest, Map preferences, String communityID, String memberID) throws SharedServicesException(Code)
Get the user id, and configuration via the request. Generate the calendar id from the user id. If the calendar store is cached (indexed by calendar id), return it. Otherwise connect to calendar server, get the users calendar store, and create the calendar with id, setting default permissions, but allowing the proxy user update access. Cache and return the store
Parameters:
  servletRequest -
Parameters:
  preferences - The PortletPreferences / PortletProvisionPreferences map.
Parameters:
  communityID -
Parameters:
  memberID - calendar store



getMemberCalendarStore
public CalendarStore getMemberCalendarStore(FacesContext context, String memberID) throws SharedServicesException(Code)
Get the user id, and configuration via the request. Generate the calendar id from the user id. If the calendar store is cached (indexed by calendar id), return it. Otherwise connect to calendar server, get the users calendar store, and create the calendar with id, setting default permissions, but allowing the proxy user update access. Cache and return the store
Parameters:
  portletRequest -
Parameters:
  memberID -



getProxyCalendarStore
public synchronized CalendarStore getProxyCalendarStore(PortletRequest portletRequest) throws SharedServicesException(Code)
Get the community id, and the configuration via the request. Generate the calendar id from the community id. If the calendar store is cached (indexed by calendar id), return it. Otherwise connect to calendar server, get the proxys calendar store, and create the calendar with id Cache and return the store.
Parameters:
  portletRequest -



getProxyCalendarStore
public CalendarStore getProxyCalendarStore(String communityID) throws SharedServicesException(Code)
Generate the calendar id from the community id. If the calendar store is cached (indexed by calendar id), return it. Otherwise connect to calendar server, get the proxys calendar store, and create the calendar with id Cache and return the store.
Parameters:
  communityID -



getProxyCalendarStore
public CalendarStore getProxyCalendarStore(PortletProvisionPreferences preferences, HttpServletRequest servletRequest, String communityID) throws SharedServicesException(Code)
Get the community id, and the configuration via the request. Generate the calendar id from the community id. If the calendar store is cached (indexed by calendar id), return it. Otherwise connect to calendar server, get the proxys calendar store, and create the calendar with id Cache and return the store.
Parameters:
  portletRequest -



getProxyCalendarStore
public CalendarStore getProxyCalendarStore(FacesContext context) throws SharedServicesException(Code)
Get the community id, and the configuration via the request. Generate the calendar id from the community id. If the calendar store is cached (indexed by calendar id), return it. Otherwise connect to calendar server, get the proxys calendar store, and create the calendar with id Cache and return the store.
Parameters:
  portletRequest -



getProxyUser
public String getProxyUser(String communityID)(Code)



getSearchDatabase
public SearchDatabase getSearchDatabase(FacesContext context) throws SharedServicesException(Code)
Connect to a search database for the community.
Parameters:
  The - faces context.



getSearchDatabase
public String getSearchDatabase(PortletRequest request) throws SharedServicesException(Code)
Get the community search database.
Parameters:
  request - database name
throws:
  com.sun.portal.app.SharedServices.common.SharedServicesException -



getSearchServerURL
public String getSearchServerURL(PortletRequest request) throws SharedServicesException(Code)
Get the URL of the community search server.
Parameters:
  request - url String
throws:
  com.sun.portal.app.SharedServices.common.SharedServicesException -



getSearchServerURL
public String getSearchServerURL(javax.faces.context.FacesContext context) throws SharedServicesException(Code)
Get the URL of the community search server.
Parameters:
  context - url String
throws:
  com.sun.portal.app.SharedServices.common.SharedServicesException -



insertItemIntoSearchDatabase
public void insertItemIntoSearchDatabase(FacesContext context, int appType, String memberID, String itemID, String title, String description, String displayUrl) throws SharedServicesException(Code)
Insert a resource description for the calendar item into the search database.
Parameters:
  FacesContext - The faces context.
Parameters:
  appType - APP_TYPE_SHAREDEVENTS or APP_TYPE_SHAREDTASKS
Parameters:
  memberID - The id of the community member
Parameters:
  itemID - The ID of the event or task
Parameters:
  title - The title of the event (summary)
Parameters:
  description - The one line description of the item
Parameters:
  displayUrl - The url that when selected will display the item.



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.