Search in sources :

Example 16 with ViewNavigator

use of org.openntf.domino.ViewNavigator in project org.openntf.domino by OpenNTF.

the class View method createViewNavFromCategory.

/*
	 * (non-Javadoc)
	 *
	 * @see org.openntf.domino.View#createViewNavFromCategory(java.lang.String)
	 */
@Override
public ViewNavigator createViewNavFromCategory(final String categoryName) {
    try {
        getDelegate().setAutoUpdate(false);
        getDelegate().setEnableNoteIDsForCategories(true);
        ViewNavigator result = fromLotus(getDelegate().createViewNavFromCategory(categoryName), ViewNavigator.SCHEMA, this);
        ((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)

Example 17 with ViewNavigator

use of org.openntf.domino.ViewNavigator in project org.openntf.domino by OpenNTF.

the class View method createViewNavFromChildren.

/*
	 * (non-Javadoc)
	 *
	 * @see org.openntf.domino.View#createViewNavFromChildren(java.lang.Object, int)
	 */
@Override
public ViewNavigator createViewNavFromChildren(final Object entry, final int cacheSize) {
    try {
        getDelegate().setAutoUpdate(false);
        getDelegate().setEnableNoteIDsForCategories(true);
        ViewNavigator result = fromLotus(getDelegate().createViewNavFromChildren(toLotus(entry), cacheSize), ViewNavigator.SCHEMA, this);
        result.setCacheSize(cacheSize);
        ((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 18 with ViewNavigator

use of org.openntf.domino.ViewNavigator 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 19 with ViewNavigator

use of org.openntf.domino.ViewNavigator 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 20 with ViewNavigator

use of org.openntf.domino.ViewNavigator 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)

Aggregations

ViewNavigator (org.openntf.domino.ViewNavigator)22 NotesException (lotus.domino.NotesException)14 ViewEntry (org.openntf.domino.ViewEntry)7 View (org.openntf.domino.View)5 Session (org.openntf.domino.Session)3 ArrayList (java.util.ArrayList)2 Test (org.junit.Test)2 Database (org.openntf.domino.Database)2 ViewEntryList (org.openntf.domino.big.impl.ViewEntryList)2 IOException (java.io.IOException)1 InvalidClassException (java.io.InvalidClassException)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 Map (java.util.Map)1 TreeMap (java.util.TreeMap)1 Vector (java.util.Vector)1 BackendBridgeSanityCheckException (org.openntf.domino.exceptions.BackendBridgeSanityCheckException)1 CaseInsensitiveString (org.openntf.domino.types.CaseInsensitiveString)1