|
|||||||||||
| 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.NotesDocumentKeyData
public class NotesDocumentKeyData
Class that contains data that would be associated with a Notes document that has a key.
| 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 | |
|---|---|
NotesDocumentKeyData(Document document)
Constructs a NotesDocumentKeyData object from a lotus.domino.Document object. |
|
NotesDocumentKeyData(NotesViewData view,
String documentKey)
Constructs a NotesDocumentKeyData object from a NotesViewData object and a document key. |
|
NotesDocumentKeyData(String url)
Constructs a NotesDocumentKeyData object from an encoded Notes URL. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Determines whether two NotesDocumentKeyData objects are equals to each other. |
String |
getDocumentKey()
Gets the document key. |
String |
getOpenUrl()
Gets the encoded Notes URL to open the NotesData object. |
NotesViewData |
getViewData()
|
Document |
open(Session session)
Gets 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 NotesDocumentKeyData(String url)
throws NotesException
url - the encoded Notes URL
NotesException - thrown when the NotesDocumentKeyData object cannot be constructed from the give parameters
public NotesDocumentKeyData(NotesViewData view,
String documentKey)
throws NotesException
view - the view containing the document keydocumentKey - the document key of a document in the view
NotesException - thrown when the NotesDocumentKeyData object cannot be constructed from the give parameters
public NotesDocumentKeyData(Document document)
throws NotesException
document - the lotus.domino.Document object to use
NotesException - thrown when the NotesDocumentKeyData object cannot be constructed from the give parameters| Method Detail |
|---|
protected void setBaseUrl()
throws UnsupportedEncodingException
NotesData
setBaseUrl in class NotesDataUnsupportedEncodingException - thrown when the URL cannot be encodedpublic String getDocumentKey()
public String getOpenUrl()
NotesData
getOpenUrl in class NotesDatapublic boolean equals(Object obj)
equals in class Objectobj - object to test for equality
public Document open(Session session)
throws NotesException
session - the session to use to get the document
NotesException - throw when the Document could not be gotten using the sessionpublic NotesViewData getViewData()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||