Search in sources :

Example 96 with NotesException

use of lotus.domino.NotesException in project org.openntf.domino by OpenNTF.

the class View method copyColumn.

/*
	 * (non-Javadoc)
	 *
	 * @see org.openntf.domino.View#copyColumn(java.lang.String, int)
	 */
@Override
public ViewColumn copyColumn(final String sourceColumn, final int destinationIndex) {
    try {
        ViewColumn result = fromLotus(getDelegate().copyColumn(sourceColumn, destinationIndex), ViewColumn.SCHEMA, this);
        flushCaches();
        return result;
    } catch (NotesException e) {
        DominoUtils.handleException(e);
    }
    return null;
}
Also used : NotesException(lotus.domino.NotesException) ViewColumn(org.openntf.domino.ViewColumn)

Example 97 with NotesException

use of lotus.domino.NotesException in project org.openntf.domino by OpenNTF.

the class View method createViewNavFromAllUnread.

/*
	 * (non-Javadoc)
	 *
	 * @see org.openntf.domino.View#createViewNavFromAllUnread()
	 */
@Override
public ViewNavigator createViewNavFromAllUnread() {
    try {
        getDelegate().setAutoUpdate(false);
        getDelegate().setEnableNoteIDsForCategories(true);
        ViewNavigator result = fromLotus(getDelegate().createViewNavFromAllUnread(), ViewNavigator.SCHEMA, this);
        ((org.openntf.domino.impl.ViewNavigator) result).setType(ViewNavigator.Types.UNREAD);
        return result;
    } catch (NotesException e) {
        DominoUtils.handleException(e);
    }
    return null;
}
Also used : ViewNavigator(org.openntf.domino.ViewNavigator) NotesException(lotus.domino.NotesException)

Example 98 with NotesException

use of lotus.domino.NotesException in project org.openntf.domino by OpenNTF.

the class View method createViewNavFromChildren.

/*
	 * (non-Javadoc)
	 *
	 * @see org.openntf.domino.View#createViewNavFromChildren(java.lang.Object)
	 */
@Override
public ViewNavigator createViewNavFromChildren(final Object entry) {
    try {
        getDelegate().setAutoUpdate(false);
        getDelegate().setEnableNoteIDsForCategories(true);
        ViewNavigator result = fromLotus(getDelegate().createViewNavFromChildren(toLotus(entry)), ViewNavigator.SCHEMA, this);
        ((org.openntf.domino.impl.ViewNavigator) result).setType(ViewNavigator.Types.CHILDREN);
        return result;
    } catch (NotesException e) {
        DominoUtils.handleException(e);
    }
    return null;
}
Also used : ViewNavigator(org.openntf.domino.ViewNavigator) NotesException(lotus.domino.NotesException)

Example 99 with NotesException

use of lotus.domino.NotesException in project org.openntf.domino by OpenNTF.

the class View method createViewNav.

/*
	 * (non-Javadoc)
	 *
	 * @see org.openntf.domino.View#createViewNav(int)
	 */
@Override
public ViewNavigator createViewNav(final int cacheSize) {
    try {
        getDelegate().setAutoUpdate(false);
        getDelegate().setEnableNoteIDsForCategories(true);
        ViewNavigator result = fromLotus(getDelegate().createViewNav(cacheSize), ViewNavigator.SCHEMA, this);
        result.setCacheGuidance(cacheSize);
        ((org.openntf.domino.impl.ViewNavigator) result).setType(ViewNavigator.Types.NONE);
        return result;
    } catch (NotesException e) {
        DominoUtils.handleException(e);
    }
    return null;
}
Also used : ViewNavigator(org.openntf.domino.ViewNavigator) NotesException(lotus.domino.NotesException)

Example 100 with NotesException

use of lotus.domino.NotesException in project org.openntf.domino by OpenNTF.

the class View method createViewNavFromCategory.

/*
	 * (non-Javadoc)
	 *
	 * @see org.openntf.domino.View#createViewNavFromCategory(java.lang.String, int)
	 */
@Override
public ViewNavigator createViewNavFromCategory(final String categoryName, final int cacheSize) {
    try {
        getDelegate().setAutoUpdate(false);
        getDelegate().setEnableNoteIDsForCategories(true);
        ViewNavigator result = fromLotus(getDelegate().createViewNavFromCategory(categoryName, cacheSize), ViewNavigator.SCHEMA, this);
        result.setCacheSize(cacheSize);
        ((org.openntf.domino.impl.ViewNavigator) result).setType(ViewNavigator.Types.CATEGORY);
        ((org.openntf.domino.impl.ViewNavigator) result).setStartCategory(categoryName);
        return result;
    } catch (NotesException e) {
        DominoUtils.handleException(e);
    }
    return null;
}
Also used : ViewNavigator(org.openntf.domino.ViewNavigator) NotesException(lotus.domino.NotesException)

Aggregations

NotesException (lotus.domino.NotesException)105 OpenNTFNotesException (org.openntf.domino.exceptions.OpenNTFNotesException)29 ArrayList (java.util.ArrayList)28 List (java.util.List)19 ViewNavigator (org.openntf.domino.ViewNavigator)13 Vector (java.util.Vector)11 Database (lotus.domino.Database)11 Database (org.openntf.domino.Database)10 IOException (java.io.IOException)8 ViewColumn (org.openntf.domino.ViewColumn)8 DocumentCollection (org.openntf.domino.DocumentCollection)7 EmbeddedObject (org.openntf.domino.EmbeddedObject)7 RichTextItem (org.openntf.domino.RichTextItem)7 Session (lotus.domino.Session)6 MIMEEntity (org.openntf.domino.MIMEEntity)5 Date (java.util.Date)4 Document (org.openntf.domino.Document)4 DocumentCollection (lotus.domino.DocumentCollection)3 DominoQuery (lotus.domino.DominoQuery)3 Item (org.openntf.domino.Item)3