How to create outlook task request in java
I would like to know 开发者_如何学JAVAhow to create outlook "Task Request" in java.
Here is another Java lib: http://moonrug.com/
I have used an earlier version of this API in my previous job. It is a commercial product.
Trying to code purely from memory and looking at the examples provided by the Moyosoft website. I have no means to compile or execute this. But you will get an idea on how to proceed
Outlook outlookApplication = new Outlook();
// Get the Task folder where the task has to be created
OutlookFolder taskFolder= outlookApplication.getDefaultFolder(FolderType.TASKS);
//Creating a new Task
OutlookTask task = new OutlookTask (taskFolder);
task.setSubject("New Java Task"); //Name of the Task
task.setStart(new Date()); // creating task with current server time
task.setStatus(TaskStatus.NOT_STARTED); //task has not yet started
task.setOwner("owner's_email@example.com"); // I don't whether this is name or email.
task.setReminderTime(new Date()) //set a reminder time, set appropriately
task.setDueDate(new Date()); //deadline for the task completion, set appropriately
// and so one.
The following APIs should help you.
http://www.moyosoft.com/joc/javadocplus/?docclass=com.moyosoft.connector.ms.outlook.task.OutlookTaskRequest
http://www.moyosoft.com/joc/javadocplus/?docclass=com.moyosoft.connector.ms.outlook.task.OutlookTask
The complete java docs can be found here. It is not very well documented but the API names are self explanatory.
http://www.moyosoft.com/joc/javadocplus/
Their site also have a few code examples which was helpful in figuring it out. I hope this is helpful. I do not have access to these APIs now, therefore I have no way to provide code examples.
精彩评论