|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.notes.java.api.data.NotesData
com.ibm.notes.java.api.data.NotesDocumentData
public class NotesDocumentData
Class that contains data that would be associated with a Notes document.
Field Summary |
---|
Fields inherited from class com.ibm.notes.java.api.data.NotesData |
---|
baseUrl, ENCODE_ERR, NOTES_COMMAND_SEPARATOR, NOTES_PARAMETER_SEPARATOR, NOTES_PATH_SEPARATOR, NOTES_PROTOCOL, NULL_ERR |
Constructor Summary | |
---|---|
NotesDocumentData(Document document)
Construct a NotesDocumentData object from a lotus.domino.Document. |
|
NotesDocumentData(NotesDatabaseData database,
String documentUnid)
Construct a NotesDocumentData object from a NotesDatabaseData object and a document unid. |
|
NotesDocumentData(NotesViewData view,
String documentUnid)
Construct a NotesDocumentData object from a NotesViewData object and a document string that is not encoded. |
|
NotesDocumentData(String url)
Construct a NotesDocumentData from an encoded Notes URL. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Determines whether two NotesDocumentData objects are equals to each other. |
String |
getEditUrl()
Gets the Notes URL to open this document in edit mode. |
String |
getOpenUrl()
Gets the encoded Notes URL to open the NotesData object. |
String |
getUnid()
Get the document. |
NotesViewData |
getViewData()
|
Document |
open(Session session)
Opens the lotus.domino.Document using a given session. |
protected void |
setBaseUrl()
Constructs the Notes URL of the data object from the given information. |
Methods inherited from class com.ibm.notes.java.api.data.NotesData |
---|
encode, getBaseUrl, getParser, removeCommandAndParams |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotesDocumentData(String url) throws NotesException
url
- the encoded Notes URL to construct a NotesDocumentData from
NotesException
- thrown when the URL cannot be used to construct the NotesDocumentData objectpublic NotesDocumentData(NotesViewData view, String documentUnid) throws NotesException
view
- the view containing the documentdocumentUNID
- the document in the view
NotesException
- thrown when the NotesDocumentData cannot be constructed from the parameterspublic NotesDocumentData(NotesDatabaseData database, String documentUnid) throws NotesException
database
- the database containing the documentdocumentUnid
- UNID of the document string of the document in the database
NotesException
- thrown when the object cannot be constructed from the given parameterspublic NotesDocumentData(Document document) throws NotesException
document
- the lotus.domino.Document to use to construct the object
NotesException
- thrown when the lotus.domino.Document cannot be used to construct the objectMethod Detail |
---|
protected void setBaseUrl() throws UnsupportedEncodingException
NotesData
setBaseUrl
in class NotesData
UnsupportedEncodingException
- thrown when the URL cannot be encodedpublic String getUnid()
public boolean equals(Object obj)
equals
in class Object
obj
- object to test for equality
public String getOpenUrl()
NotesData
getOpenUrl
in class NotesData
public String getEditUrl()
public Document open(Session session) throws NotesException
session
- the session to use to get the document
NotesException
- thrown when the Document cannot be retrieved from the sessionpublic NotesViewData getViewData()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |