| 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 |
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 void | deleteProxyCalendarStore(String communityID, Properties configProps) | public void | destroy() Perform any clean up operations: close connections and release resources. | public String | getCommunityCalendarID(PortletRequest portletRequest) | public String | getCommunityCalendarID(String communityID, String domainIfHosted) Compute the community proxy users calendar id for this community.
e.g. | public String | getCommunityCalendarID(FacesContext context) Compute the community proxy users calendar id for this community.
e.g. | 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) | public String | getMemberCalendarID(FacesContext context, String memberID) Compute the community member's universal calendar id (common across communities). | public synchronized CalendarStore | getMemberCalendarStore(PortletRequest portletRequest, String memberID) Get the user id, and configuration via the request. | public CalendarStore | getMemberCalendarStore(String communityID, 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 CalendarStore | getMemberCalendarStore(FacesContext context, String memberID) Get the user id, and configuration via the request. | public synchronized CalendarStore | getProxyCalendarStore(PortletRequest portletRequest) Get the community id, and the configuration via the request. | public CalendarStore | getProxyCalendarStore(String communityID) Generate the calendar id from the community id. | public CalendarStore | getProxyCalendarStore(PortletProvisionPreferences preferences, HttpServletRequest servletRequest, String communityID) Get the community id, and the configuration via the request. | public CalendarStore | getProxyCalendarStore(FacesContext context) Get the community id, and the configuration via the request. | public String | getProxyUser(String communityID) | public SearchDatabase | getSearchDatabase(FacesContext context) Connect to a search database for the community. | public String | getSearchDatabase(PortletRequest request) Get the community search database. | public String | getSearchServerURL(PortletRequest request) Get the URL of the community search server. | public String | getSearchServerURL(javax.faces.context.FacesContext context) Get the URL of the community search server. | 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. |
CTY_CAL_PREFIX | final public static String CTY_CAL_PREFIX(Code) | | |
DummySharedCalendarUtilsImpl | public DummySharedCalendarUtilsImpl()(Code) | | |
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(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(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 - |
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. |
|
|