|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compoze.domino.Documents
public class Documents
This class contains the methods used for document manipulation.
Method Summary | |
---|---|
void |
serverAddAttachment(java.lang.String sID,
java.lang.String sName,
DataHandler handler)
Hits the server to add an attachment to a document. |
void |
serverCopyTo(java.lang.String[] ids,
java.lang.String sFolderID)
Hits the server to copy the documents to a folder. |
Appointment |
serverCreateAppointment(PropertyValue[] values,
java.util.Date startDate,
java.util.Date endDate,
AppointmentType type)
Hits the server to create an appointment. |
Contact |
serverCreateContact(PropertyValue[] values)
Hits the server to create a contact. |
Memo |
serverCreateMemo(PropertyValue[] values)
Hits the server to create a memo. |
Task |
serverCreateTask(PropertyValue[] values)
Hits the server to create a task. |
void |
serverDeleteAttachment(java.lang.String sID,
int iIndex)
Hits the server to delete an attachment from the document. |
void |
serverDeleteDocuments(java.lang.String[] documentIDs)
Hits the server to delete the specified documents. |
Appointment |
serverGetAppointment(java.lang.String sAptID,
PropertyKey[] keys)
Queries the server to get the appointment from the server. |
Appointment |
serverGetAppointment(java.lang.String sAptID,
PropertyKey[] keys,
java.util.Date instanceDate)
Queries the server to get the appointment from the server. |
Appointment[] |
serverGetAppointments(java.util.Date startDate,
java.util.Date endDate,
PropertyKey[] keys)
Queries the server to get appointments from the server within the specified range. |
Contact |
serverGetContact(java.lang.String sContactID,
PropertyKey[] keys)
Queries the server to get the contact from the server. |
int |
serverGetContactCount()
Queries the server to get contact count. |
int |
serverGetContactCount(ContactFilter filter)
Queries the server to get contact count. |
Contact[] |
serverGetContacts(int iStartIndex,
int iEndIndex,
PropertyKey[] keys,
SortProperty sortProp,
ContactFilter filter)
Queries the server to get contacts from the server between the specified iStartIndex and iEndIndex
starting at 0. |
AbstractDocument |
serverGetDocument(java.lang.String sID,
PropertyKey[] keys)
Queries the server to get the document from the server. |
Memo |
serverGetMemo(java.lang.String sMemoID,
PropertyKey[] keys)
Queries the server to get the contact from the server. |
int |
serverGetMemoCount()
Queries the server to get memo count. |
int |
serverGetMemoCount(MemoFilter filter)
Queries the server to get memo count. |
Memo[] |
serverGetMemos(int iStartIndex,
int iEndIndex,
PropertyKey[] keys,
SortProperty sortProp,
MemoFilter filter)
Queries the server to get memos from the server between the specified iStartIndex and iEndIndex
starting at 0 and matching the specified filter. |
Memo[] |
serverGetMemos(java.lang.String sFolderID,
int iStartIndex,
int iEndIndex,
PropertyKey[] keys,
SortProperty sortProp)
Queries the server to get memos from the server between the specified iStartIndex and iEndIndex
starting at 0. |
Task |
serverGetTask(java.lang.String sTaskID,
PropertyKey[] keys)
Queries the server to get the task from the server. |
Task |
serverGetTask(java.lang.String sTaskID,
PropertyKey[] keys,
java.util.Date instanceDate)
Queries the server to get the task from the server. |
int |
serverGetTaskCount()
Queries the server to get task count. |
int |
serverGetTaskCount(TaskFilter filter)
Queries the server to get task count. |
Task[] |
serverGetTasks(int iStartIndex,
int iEndIndex,
PropertyKey[] keys,
SortProperty sortProp,
TaskFilter filter)
Queries the server to get tasks from the server between the specified iStartIndex and iEndIndex
starting at 0. |
void |
serverMoveTo(java.lang.String[] ids,
java.lang.String sSourceFolderID,
java.lang.String sTargetFolderID)
Hits the server to move the documents to a folder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Memo serverCreateMemo(PropertyValue[] values) throws DominoException
values
- any initial property values to set
DominoException
public Contact serverCreateContact(PropertyValue[] values) throws DominoException
values
- any initial property values to set
DominoException
public Task serverCreateTask(PropertyValue[] values) throws DominoException
values
- any initial property values to set
DominoException
public Appointment serverCreateAppointment(PropertyValue[] values, java.util.Date startDate, java.util.Date endDate, AppointmentType type) throws DominoException
Note: The start date must be before the end date. If not, the dates are swapped.
Start and end date times are used as follows:
AppointmentType.APPOINTMENT
|
Start date and time are used as is. Only the time component of the end date time is used. |
AppointmentType.ALL_DAY_EVENT
|
The start time is set to 4:00 AM and the end time is set to 8:00 PM. |
AppointmentType.ANNIVERSARY
|
Start date is used as the anniversary date. The statrt time is set to 4:00 AM and the end time is set to 8:00 PM. The end date is ignored. |
AppointmentType.REMINDER
|
Start date and time is used as the reminder date and time.The end date is ignored. |
values
- any initial property values to setstartDate
- the start date time (may not be null
)endDate
- the end date time (may not be null
)type
- the appointment type (may not be null
)
DominoException
public void serverDeleteDocuments(java.lang.String[] documentIDs) throws DominoException
Note: do not use this method with document instances
of tasks or appointments, use serverDelete()
available on those objects. Those methods take into
consideration repeating patterns, if applicable.
documentIDs
- the IDs of the documents to delete
DominoException
Appointment.serverDelete()
,
Task.serverDelete()
public Contact[] serverGetContacts(int iStartIndex, int iEndIndex, PropertyKey[] keys, SortProperty sortProp, ContactFilter filter) throws DominoException
iStartIndex
and iEndIndex
starting at 0.
iStartIndex
- the start index endpoint (inclusive) or -1 for alliEndIndex
- the end index highpoint (exclusive) or -1 for allkeys
- the properties to bring back from the contactsortProp
- the property to sort by or null
for default sortingfilter
- the filter or null
for no filtering
DominoException
public Appointment[] serverGetAppointments(java.util.Date startDate, java.util.Date endDate, PropertyKey[] keys) throws DominoException
startDate
- the start date (inclusive) or null
for no start dateendDate
- the end date (exclusive) or null
for no end datekeys
- the properties to bring back from the appointment
DominoException
PropertyKey.START_DATE_TIME
,
PropertyKey.END_DATE_TIME
public Task[] serverGetTasks(int iStartIndex, int iEndIndex, PropertyKey[] keys, SortProperty sortProp, TaskFilter filter) throws DominoException
iStartIndex
and iEndIndex
starting at 0.
iStartIndex
- the start index endpoint (inclusive) or -1 for alliEndIndex
- the end index highpoint (exclusive) or -1 for allkeys
- the properties to bring back from the tasksortProp
- the property to sort by or null
for default sortingfilter
- the filter or null
for no filtering
DominoException
public Memo[] serverGetMemos(java.lang.String sFolderID, int iStartIndex, int iEndIndex, PropertyKey[] keys, SortProperty sortProp) throws DominoException
iStartIndex
and iEndIndex
starting at 0.
sFolderID
- the folder idiStartIndex
- the start index endpoint (inclusive) or -1 for alliEndIndex
- the end index highpoint (exclusive) or -1 for allkeys
- the properties to bring back from the memosortProp
- the property to sort by or null
for default sorting
DominoException
public Memo[] serverGetMemos(int iStartIndex, int iEndIndex, PropertyKey[] keys, SortProperty sortProp, MemoFilter filter) throws DominoException
iStartIndex
and iEndIndex
starting at 0 and matching the specified filter.
iStartIndex
- the start index endpoint (inclusive) or -1 for alliEndIndex
- the end index highpoint (exclusive) or -1 for allkeys
- the properties to bring back from the memofilter
- the filter (may not be null
)
DominoException
public int serverGetMemoCount() throws DominoException
DominoException
public int serverGetMemoCount(MemoFilter filter) throws DominoException
filter
- the filter (may not be null
)
DominoException
public int serverGetContactCount() throws DominoException
DominoException
public int serverGetContactCount(ContactFilter filter) throws DominoException
filter
- the filter or null
for no filtering
DominoException
public int serverGetTaskCount() throws DominoException
DominoException
public int serverGetTaskCount(TaskFilter filter) throws DominoException
filter
- the filter or null
for no filtering
DominoException
public Contact serverGetContact(java.lang.String sContactID, PropertyKey[] keys) throws DominoException
sContactID
- the contact idkeys
- the properties to bring back from the document
null
if not found
DominoException
public Task serverGetTask(java.lang.String sTaskID, PropertyKey[] keys) throws DominoException
sTaskID
- the task idkeys
- the properties to bring back from the document
null
if not found
DominoException
public Task serverGetTask(java.lang.String sTaskID, PropertyKey[] keys, java.util.Date instanceDate) throws DominoException
sTaskID
- the task idkeys
- the properties to bring back from the documentinstanceDate
- the instance date for the task (if repeating).
If task is repeating and instanceDate null
, the
first instance date in the repeating pattern is returned
null
if not found
DominoException
PropertyKey.START_DATE_TIME
,
PropertyKey.DUE_DATE_TIME
public Appointment serverGetAppointment(java.lang.String sAptID, PropertyKey[] keys) throws DominoException
sAptID
- the appointment idkeys
- the properties to bring back from the document
null
if not found
DominoException
public Appointment serverGetAppointment(java.lang.String sAptID, PropertyKey[] keys, java.util.Date instanceDate) throws DominoException
Note: you should always include the start date time and end date time in the list of property keys to bring back.
Note: InstanceNotFoundException
is thrown if the specified instance
date is not found for the specified appointment.
sAptID
- the appointment idkeys
- the properties to bring back from the documentinstanceDate
- the instance date for the appointment (if repeating).
If appointment is repeating and instanceDate null
, the
first instance date in the repeating pattern is returned
null
if not found
DominoException
PropertyKey.START_DATE_TIME
,
PropertyKey.END_DATE_TIME
public Memo serverGetMemo(java.lang.String sMemoID, PropertyKey[] keys) throws DominoException
sMemoID
- the memo idkeys
- the properties to bring back from the document
null
if not found
DominoException
public AbstractDocument serverGetDocument(java.lang.String sID, PropertyKey[] keys) throws DominoException
sID
- the document idkeys
- the properties to bring back from the document
null
if not found
DominoException
public void serverAddAttachment(java.lang.String sID, java.lang.String sName, DataHandler handler) throws DominoException
Note: the attachment is added to the document immediately.
There is no need to call serverUpdate()
.
sID
- the id of the documentsName
- the name of the attachmenthandler
- a handler that can supply the attachment data
DominoException
public void serverDeleteAttachment(java.lang.String sID, int iIndex) throws DominoException
Note: the attachment is deleted from the document immediately.
There is no need to call serverUpdate()
.
sID
- the id of the documentiIndex
- the index of the attachment to delete
DominoException
public void serverCopyTo(java.lang.String[] ids, java.lang.String sFolderID) throws DominoException
ids
- the ids of the documents to copysFolderID
- the ID of the target folder
DominoException
public void serverMoveTo(java.lang.String[] ids, java.lang.String sSourceFolderID, java.lang.String sTargetFolderID) throws DominoException
Note: The target folder must be able to hold memos. If
the specified target folder does not hold memos, this
method throw a DominoException
.
ids
- the ids of the documents to movesSourceFolderID
- the ID of the source folder or null
for allsTargetFolderID
- the ID of the target folder
DominoException
Folder.holdMemos()
|
Oracle | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |