|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.notes.java.api.data.NotesData com.ibm.notes.java.api.data.NotesViewData
public class NotesViewData
Class that contains data that is associated with a Notes view.
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 | |
---|---|
NotesViewData(NotesDatabaseData database,
String view)
Constructs a NotesViewData object from a NotesDatabaseData object and a view. |
|
NotesViewData(NotesDatabaseData database,
String name,
String unid)
Constructs a NotesViewData object from a NotesDatabaseData object, a view name, and an UNID. |
|
NotesViewData(NotesDatabaseData database,
String name,
String unid,
List<String> aliases)
Constructs a NotesViewData object from a NotesDatabaseData object, a view name, an UNID, and the views aliases. |
|
NotesViewData(String url)
Constructs a NotesViewData object using a Notes URL. |
|
NotesViewData(View view)
Constructs a NotesViewData object from a lotus.domino.View object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Determines whether two NotesViewData objects are equals to each other. |
List<String> |
getAliases()
Gets the aliases of the view. |
NotesDatabaseData |
getDatabaseData()
|
String |
getName()
Gets the view name. |
String |
getOpenUrl()
Gets the encoded Notes URL to open the NotesData object. |
String |
getSearchUrl(String searchFor)
Gets the Notes URL to search this view. |
String |
getUnid()
Gets the view unid. |
View |
open(Session session)
Opens a lotus.domino.View object given a session. |
void |
setAliases(List<String> aliases)
Sets the aliases for the view |
protected void |
setBaseUrl()
Constructs the Notes URL of the data object from the given information. |
void |
setName(String name)
Sets the name of the view. |
void |
setUnid(String unid)
Sets the unid of the view data. |
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 NotesViewData(String url) throws NotesException
url
- an encoded Notes URL containing the view
NotesException
- thrown when the NotesViewData object cannot be constructed from the URLpublic NotesViewData(NotesDatabaseData database, String view) throws NotesException
database
- the database containing the viewview
- the view contained in the database, this view can be an empty string if there isn't one but cannot be null
NotesException
- thrown when the NotesViewData object cannot be constructed from the parameterspublic NotesViewData(NotesDatabaseData database, String name, String unid) throws NotesException
database
- the database containing the viewname
- the name of the view, should not be encodedunid
- the unid of the view
NotesException
- thrown when the NotesViewData object cannot be constructedpublic NotesViewData(NotesDatabaseData database, String name, String unid, List<String> aliases) throws NotesException
database
- the database containing the viewname
- the name of the view, should not be encodedunid
- the unid of the viewaliases
- the aliases of the view
NotesException
- thrown when the NotesViewData object cannot be constructedpublic NotesViewData(View view) throws NotesException
view
- the lotus.domino.View used to construct this data object
NotesException
- thrown when the NotesViewData object cannot be constructed from the parametersMethod Detail |
---|
protected void setBaseUrl() throws UnsupportedEncodingException
NotesData
setBaseUrl
in class NotesData
UnsupportedEncodingException
- thrown when the URL cannot be encodedpublic String getName()
public void setName(String name) throws NotesException
name
- the name of the view, should not be encoded
NotesException
- thrown when the name cannot be setpublic String getUnid()
public void setUnid(String unid) throws NotesException
unid
- the unid of the view
NotesException
- thrown when the unid cannot be setpublic List<String> getAliases()
public void setAliases(List<String> aliases)
aliases
- aliases to setpublic boolean equals(Object obj)
equals
in class Object
obj
- object to test for equality
public String getOpenUrl()
NotesData
getOpenUrl
in class NotesData
public String getSearchUrl(String searchFor)
searchFor
- the term(s) to search the view for
public View open(Session session) throws NotesException
session
- the session to use to open the view
NotesException
- thrown when the View object cannot be opened using the given sessionpublic NotesDatabaseData getDatabaseData()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |