Java Doc for SharedCalendarUtils.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) 


com.sun.portal.app.calendarcommon.calendar.SharedCalendarUtils

All known Subclasses:   com.sun.portal.app.calendarcommon.calendar.SharedCalendarUtilsImpl,  com.sun.portal.app.calendarcommon.calendar.DummySharedCalendarUtilsImpl,
SharedCalendarUtils
public interface SharedCalendarUtils (Code)
Utility methods relevant to the Shared Calendar services.
author:
   Nigel Jacobs


Field Summary
final public static  intAPP_TYPE_SHAREDEVENTS
    
final public static  intAPP_TYPE_SHAREDTASKS
    
final public static  StringCAL_STORE_CACHE_CONTEXT_ATTR
    
final public static  StringCAL_STORE_CACHE_SESSION_ATTR
    
final public static  StringCONFIG_CACHE_CONTEXT_ATTR
    
final public static  StringCONFIG_PROP_autoDeleteProxyUserCal
    
final public static  StringCONFIG_PROP_calHost
    
final public static  StringCONFIG_PROP_calPort
    
final public static  StringCONFIG_PROP_calProxyPassword
    
final public static  StringCONFIG_PROP_calProxyUid
    
final public static  StringCONFIG_PROP_configDesc
    
final public static  StringCONFIG_PROP_createEventsInMembersCal
    
final public static  StringCONFIG_PROP_daDomain
    
final public static  StringCONFIG_PROP_daHost
    
final public static  StringCONFIG_PROP_daPort
    
final public static  StringCONFIG_PROP_daProxyPassword
    
final public static  StringCONFIG_PROP_daProxyUid
    
final public static  StringCONFIG_PROP_isHostedDomain
    
final public static  StringCONFIG_PROP_ssoClassName
    
final public static  StringCTY_CAL_PREFIX
    
final public static  StringMBR_CAL_DOMAIN_CACHE_CONTEXT_ATTR
    
final public static  StringSEARCH_DB_PREF
     The portlet preference that inidicates the name of the search database.
final public static  StringSEARCH_SERVER_URL_PREF
     The portlet preference that inidicates the URL of the search server.
final public static  StringSHARED_CAL_CONFIG_ATTR
     The name of the attribute used to store the shared calendar config name in the PortletPreferences and ServletContext.
final public static  StringSHARED_CAL_CONFIG_DEFAULT
     The default shared calendar config name.
final public static  StringSHARED_CAL_UTILS_CONTEXT_ATTR
     The name of the ServletContext attribute used to store the SharedCalendarUtils singleton.


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 configurationProperties)
    
public  voiddestroy()
     Perform any clean up operations: close connections and release resources.
public  StringgetCommunityCalendarID(PortletRequest portletRequest)
     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(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)
     Compute the community member's universal calendar id (common across communities).
public  StringgetMemberCalendarID(FacesContext context, String memberID)
     Compute the community member's universal calendar id (common across communities).
public  CalendarStoregetMemberCalendarStore(PortletRequest portletRequest, 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  CalendarStoregetMemberCalendarStore(HttpServletRequest servletRequest, Map preferences, String communityID, String memberID)
     Get the user id, and configuration via the request.
public  CalendarStoregetProxyCalendarStore(PortletRequest portletRequest)
     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  CalendarStoregetProxyCalendarStore(PortletProvisionPreferences preferences, HttpServletRequest servletRequest, String communityID)
     Get the community id, and the configuration via the request.
public  StringgetProxyUser(String communityID)
     Compute the proxy user uid from the communityID e.g.
public  SearchDatabasegetSearchDatabase(FacesContext context)
     Connect to a search database for the community.
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
APP_TYPE_SHAREDEVENTS
final public static int APP_TYPE_SHAREDEVENTS(Code)



APP_TYPE_SHAREDTASKS
final public static int APP_TYPE_SHAREDTASKS(Code)



CAL_STORE_CACHE_CONTEXT_ATTR
final public static String CAL_STORE_CACHE_CONTEXT_ATTR(Code)



CAL_STORE_CACHE_SESSION_ATTR
final public static String CAL_STORE_CACHE_SESSION_ATTR(Code)



CONFIG_CACHE_CONTEXT_ATTR
final public static String CONFIG_CACHE_CONTEXT_ATTR(Code)



CONFIG_PROP_autoDeleteProxyUserCal
final public static String CONFIG_PROP_autoDeleteProxyUserCal(Code)



CONFIG_PROP_calHost
final public static String CONFIG_PROP_calHost(Code)



CONFIG_PROP_calPort
final public static String CONFIG_PROP_calPort(Code)



CONFIG_PROP_calProxyPassword
final public static String CONFIG_PROP_calProxyPassword(Code)



CONFIG_PROP_calProxyUid
final public static String CONFIG_PROP_calProxyUid(Code)



CONFIG_PROP_configDesc
final public static String CONFIG_PROP_configDesc(Code)



CONFIG_PROP_createEventsInMembersCal
final public static String CONFIG_PROP_createEventsInMembersCal(Code)



CONFIG_PROP_daDomain
final public static String CONFIG_PROP_daDomain(Code)



CONFIG_PROP_daHost
final public static String CONFIG_PROP_daHost(Code)



CONFIG_PROP_daPort
final public static String CONFIG_PROP_daPort(Code)



CONFIG_PROP_daProxyPassword
final public static String CONFIG_PROP_daProxyPassword(Code)



CONFIG_PROP_daProxyUid
final public static String CONFIG_PROP_daProxyUid(Code)



CONFIG_PROP_isHostedDomain
final public static String CONFIG_PROP_isHostedDomain(Code)



CONFIG_PROP_ssoClassName
final public static String CONFIG_PROP_ssoClassName(Code)



CTY_CAL_PREFIX
final public static String CTY_CAL_PREFIX(Code)



MBR_CAL_DOMAIN_CACHE_CONTEXT_ATTR
final public static String MBR_CAL_DOMAIN_CACHE_CONTEXT_ATTR(Code)



SEARCH_DB_PREF
final public static String SEARCH_DB_PREF(Code)
The portlet preference that inidicates the name of the search database.



SEARCH_SERVER_URL_PREF
final public static String SEARCH_SERVER_URL_PREF(Code)
The portlet preference that inidicates the URL of the search server.



SHARED_CAL_CONFIG_ATTR
final public static String SHARED_CAL_CONFIG_ATTR(Code)
The name of the attribute used to store the shared calendar config name in the PortletPreferences and ServletContext.



SHARED_CAL_CONFIG_DEFAULT
final public static String SHARED_CAL_CONFIG_DEFAULT(Code)
The default shared calendar config name.



SHARED_CAL_UTILS_CONTEXT_ATTR
final public static String SHARED_CAL_UTILS_CONTEXT_ATTR(Code)
The name of the ServletContext attribute used to store the SharedCalendarUtils singleton.





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 configurationProperties) throws SharedServicesException(Code)
Delete the proxy calendar store, if auto-delete is set in config props



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



getCommunityCalendarID
public String getCommunityCalendarID(PortletRequest portletRequest) 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



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(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 - A read-only map of portlet prefs (PortletPreferences or PortletProvisionPreferences)
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)
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 -



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 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(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 -



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



getProxyCalendarStore
public 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(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 -



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 -



getProxyUser
public String getProxyUser(String communityID)(Code)
Compute the proxy user uid from the communityID e.g. "Friends" => "CTY_CAL_PRX_JTO__Friends"



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



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.



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