| java.lang.Object com.sun.portal.app.calendarcommon.calendar.SharedCalendarUtilsImpl
SharedCalendarUtilsImpl | public class SharedCalendarUtilsImpl implements SharedCalendarUtils(Code) | | Implementation of SharedCalendarUtils.
author: Nigel Jacobs |
Method Summary | |
public boolean | createEventsInMembersCalendar(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 boolean | createEventsInMembersCalendar(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 void | deleteItemFromSearchDatabase(FacesContext context, int appType, String itemID) Delete a resource description for the calendar item from the search database. | public synchronized void | deleteProxyCalendarStore(String communityID, Properties configProps) | public void | destroy() Perform any clean up operations: close connections and release resources. | public String | getCommunityCalendarID(PortletRequest portletRequest) Compute the community proxy users calendar id for this community. | public String | getCommunityCalendarID(FacesContext context) Compute the community proxy users calendar id for this community. | public Properties | getConfigProperties(PortletPreferences preferences, HttpServletRequest servletRequest) Get the Shared Calendar configuration properties for this portlet. | public Properties | getConfigProperties(Map preferences, HttpServletRequest servletRequest) Get the Shared Calendar configuration properties for this portlet. | public DelegatedAdministratorHandler | getDAHandler(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 String | getMemberCalendarID(PortletRequest portletRequest, String memberID) Compute the community member's universal calendar id (common across communities). | public String | getMemberCalendarID(FacesContext context, String memberID) Compute the community member's universal calendar id (common across communities). | public synchronized CalendarStore | getMemberCalendarStore(FacesContext context, String memberID) Get the user id, and configuration via the request. | public synchronized CalendarStore | getMemberCalendarStore(PortletRequest portletRequest, String memberID) Get the user id, and configuration via the request. | public CalendarStore | getMemberCalendarStore(HttpServletRequest servletRequest, Map preferences, String communityID, String memberID) Get the user id, and configuration via the request. | public synchronized CalendarStore | getProxyCalendarStore(FacesContext context) Get the community id, and the configuration via the request. | public synchronized CalendarStore | getProxyCalendarStore(PortletRequest portletRequest) Generate the calendar id from the community id. | public synchronized CalendarStore | getProxyCalendarStore(PortletProvisionPreferences preferences, HttpServletRequest servletRequest, String communityID) Generate the calendar id from the community id. | public String | getProxyUser(String communityID) Compute the proxy user uid from the communityID
e.g. | public SearchDatabase | getSearchDatabase(FacesContext context) Connect to a search database for the community. | public void | insertItemIntoSearchDatabase(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. |
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 |
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.
"Friends" => "CTY_CAL_Friends"
Parameters: portletRequest - Community proxys calendar id |
getCommunityCalendarID | public String getCommunityCalendarID(FacesContext context) throws SharedServicesException(Code) | | Compute the community proxy users calendar id for this community.
"Friends" => "CTY_CAL_Friends"
Parameters: portletRequest - 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) | | Compute the community member's universal calendar id (common across communities). Uses
the cached organization param, retrieve from the request.
"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 request.
"joe" in organization "sun.com" => CTY_CAL_joe@sun.com
Parameters: context - Parameters: memberID - |
getMemberCalendarStore | public synchronized 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: context - 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(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 synchronized 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: context - |
getProxyCalendarStore | public synchronized CalendarStore getProxyCalendarStore(PortletRequest portletRequest) 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 synchronized CalendarStore getProxyCalendarStore(PortletProvisionPreferences preferences, HttpServletRequest servletRequest, 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: preferences - A read-only map of portlet prefs (PortletPreferences or PortletProvisionPreferences) Parameters: communityID - |
getProxyUser | public String getProxyUser(String communityID)(Code) | | Compute the proxy user uid from the communityID
e.g. "Friends" => "CTY_CAL_PRX_JTO__Friends"
|
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. |
|
|