Skip to main content link. Accesskey S
  • Log In
  • Help
  • IBM Logo
  • IBM Connections wiki
  • All Wikis
  • All Forums
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
Community Articles Product Documentation Learning Center IBM Redbooks This category IBM Connections 3.0.1 Documentation Custom Search Scope...
Search
  • New Article
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

Jun SH Liu
Contribution Summary:
  • Articles authored: 5
  • Articles edited: 8
  • Comments Posted: 0

Recent articles by this author

Integrating IBM Lotus Connections 2.5 with other applications

Liu Jun Software Engineer IBM Software Services for Lotus Team IBM China Development Lab Shanghai, China Liu Si Zhong Software Engineer IBM Software Services for Lotus Team IBM China Development Lab Shanghai, China Fu Dong Lei Software Engineer IBM Software Services for Lotus Team IBM China ...

10.3 Synchronizing Activities to-do's with Notes Calendar

Back to main topic 10. Using the API Activities offer a feature called To-do that can remind you of the tasks that are assigned to you. However, some users take advantage of the Notes calendar to tra

10.4 Using Communities as an ACL engine

Back to main topic 10. Using the API Communities are groups of people with a common interest. A public community with open access is available for all to join, while a private community is restricted

10.2 Retrieving a person's profile: A sample application

Back to main topic 10. Using the API One of the most commonly used services that Lotus Connections API provides is retrieving a person’s profile. This topic describes a sample application that retrieves a person’s profile using the Profiles API. This sample application familiarizes you with ...

10.1 Overview of the Lotus Connections API

Back to main topic 10. Using the API For an overview of the Lotus Connections API, see the following links. Lotus Connections API Overview from the Lotus Connections Information Center. From the lef

Community article10.4 Synchronizing Activities To-Do's with Notes Calendar

Added by Jun SH Liu | Edited by IBM contributor Jun SH Liu on September 12, 2008 | Version 15
expanded Abstract
collapsed Abstract
No abstract provided.
Tags: api, activities

Activies offers a great feature of to-do to help remind the tasks assigned to you. But some uses are already very used to leveraging Notes calendar to track there to-do tasks. It will be very convenient for the user to track their Activities to-dos in their Notes Calendar. This section will show you how to synchronize Activities to-do list with Notes Calendar.

Retrieving Activities to-do list from Activites via Lotus Connections API

Before we start writing code to retrieve the to-do list from Activities, we'd better first make a data model for the Activities to-do in order to hold the data for future use (add those TODOs to Notes Calendar). Here we don't need all of the information retrieved from Activities to-do entry. What we need is the title, startDate, dueDate, and content.

Listing 1. Activities to-do data model

public class ActivitiesTodo {
private String title;
private String startDate;
private String dueDate;
private String content;
public ActivitiesTodo(String title, String author, String assignedTo, String dueDate, String content) {
this.title = title;
this.author = author;
this.assignedTo = assignedTo;
this.dueDate = dueDate;
this.content= content;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
......
}

Following code is used to retrieve all the to-do's which are assigned to you.

For more detail about how to assemble the URL used to retrive Activities to-do list, please refer to the Lotus Connections 2 Information Center.

Listing 2. Retriving the to-do list assigned to you

Abdera abdera = new Abdera();
Parser parser = abdera.getParser();
URL api_url = new URL("
http://connections.demoibm.com/activities/service/atom/todos?assignedto=PBrown@demoibm.com");

Using your Activities login ID and password to pass authentication
HttpURLConnection connection = (HttpURLConnection) api_url.openConnection();
String encoding = new sun.misc.BASE64Encoder().encode(("
PBrown@demoibm.com" + ":" + " techw0rks").getBytes());
connection.setRequestProperty("Authorization", "Basic " + encoding);

Document document = parser.parse(connection.getInputStre am());
Feed feed = document.getRoot();

XPath xpath = abdera.getXPath();
List entries = feed.getEntries();
List todoList = new ArrayList();
for (Entry entry : entries) {
String title = xpath.valueOf("a:title", entry);
String startDate = xpath.valueOf("a:published", entry);
String dueDate = xpath.valueOf("snx:duedate", entry, feed.getNamespaces());
String content = xpath.valueOf("a:content", entry);
todoList.add(new ActivitiesTodo(title, startDate, dueDate, content));
}

expanded Attachments (0)
collapsed Attachments (0)
expanded Versions (25)
collapsed Versions (25)
Version Comparison     
VersionDateChanged by              Summary of changes
25Dec 30, 2008 5:14:02 PMDebbie Willmschen  IBM contributor
24Nov 9, 2008 7:37:36 AMMike Ebbers  IBM contributor
23Sep 12, 2008 4:04:42 AMJun SH Liu  IBM contributor
22Sep 12, 2008 4:00:41 AMJun SH Liu  IBM contributor
21Sep 12, 2008 3:57:38 AMJun SH Liu  IBM contributor
20Sep 12, 2008 3:56:40 AMJun SH Liu  IBM contributor
19Sep 12, 2008 3:52:26 AMJun SH Liu  IBM contributor
18Sep 12, 2008 3:51:17 AMJun SH Liu  IBM contributor
17Sep 12, 2008 3:49:33 AMJun SH Liu  IBM contributor
16Sep 12, 2008 3:35:57 AMJun SH Liu  IBM contributor
This version (15)Sep 12, 2008 3:34:18 AMJun SH Liu  IBM contributor
14Sep 12, 2008 3:33:44 AMJun SH Liu  IBM contributor
13Sep 12, 2008 3:32:44 AMJun SH Liu  IBM contributor
12Sep 12, 2008 2:18:03 AMJun SH Liu  IBM contributor
11Sep 11, 2008 11:03:20 PMJun SH Liu  IBM contributor
10Sep 11, 2008 10:57:42 PMJun SH Liu  IBM contributor
9Sep 11, 2008 10:53:38 PMJun SH Liu  IBM contributor
8Sep 11, 2008 10:51:14 PMJun SH Liu  IBM contributor
7Sep 11, 2008 10:48:38 PMJun SH Liu  IBM contributor
6Sep 11, 2008 10:34:51 PMJun SH Liu  IBM contributor
5Aug 27, 2008 5:09:36 AMJun SH Liu  IBM contributor
4Aug 20, 2008 8:09:09 AMJun SH Liu  IBM contributor
3Aug 20, 2008 8:02:04 AMJun SH Liu  IBM contributor
2Aug 20, 2008 7:59:32 AMJun SH Liu  IBM contributor
1Aug 12, 2008 7:18:25 AMJun SH Liu  IBM contributor
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedHelpAbout
  • IBM Collaboration Solutions wikis
  • IBM developerWorks
  • IBM Software support
  • Twitter LinkIBMSocialBizUX on Twitter
  • FacebookIBMSocialBizUX on Facebook
  • ForumsLotus product forums
  • BlogsIBM Social Business UX blog
  • Community LinkIBM Collaboration Solutions
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Accessibility
  • IBM Terms of use
  • Wiki terms of use