Search in sources :

Example 21 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, 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)

Example 22 with ViewNavigator

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

the class View method createViewNavMaxLevel.

/*
	 * (non-Javadoc)
	 *
	 * @see org.openntf.domino.View#createViewNavMaxLevel(int)
	 */
@Override
public ViewNavigator createViewNavMaxLevel(final int level) {
    try {
        getDelegate().setAutoUpdate(false);
        getDelegate().setEnableNoteIDsForCategories(true);
        ViewNavigator result = fromLotus(getDelegate().createViewNavMaxLevel(level), ViewNavigator.SCHEMA, this);
        result.setMaxLevel(level);
        ((org.openntf.domino.impl.ViewNavigator) result).setType(ViewNavigator.Types.MAXLEVEL);
        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