Search in sources :

Example 1 with ViewNavigator

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

the class View method createViewNavFromDescendants.

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

Example 2 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(java.lang.String)
	 */
@Override
public ViewNavigator createViewNavFromAllUnread(final String userName) {
    try {
        getDelegate().setAutoUpdate(false);
        getDelegate().setEnableNoteIDsForCategories(true);
        ViewNavigator result = fromLotus(getDelegate().createViewNavFromAllUnread(userName), ViewNavigator.SCHEMA, this);
        ((org.openntf.domino.impl.ViewNavigator) result).setType(ViewNavigator.Types.UNREAD);
        ((org.openntf.domino.impl.ViewNavigator) result).setUnreadUser(userName);
        return result;
    } catch (NotesException e) {
        DominoUtils.handleException(e);
    }
    return null;
}
Also used : ViewNavigator(org.openntf.domino.ViewNavigator) NotesException(lotus.domino.NotesException)

Example 3 with ViewNavigator

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

the class View method createViewNavFrom.

/*
	 * (non-Javadoc)
	 *
	 * @see org.openntf.domino.View#createViewNavFrom(java.lang.Object)
	 */
@Override
public ViewNavigator createViewNavFrom(final Object entry) {
    List<lotus.domino.Base> recycleThis = new ArrayList<lotus.domino.Base>();
    try {
        getDelegate().setAutoUpdate(false);
        getDelegate().setEnableNoteIDsForCategories(true);
        ViewNavigator result = fromLotus(getDelegate().createViewNavFrom(toLotus(entry)), ViewNavigator.SCHEMA, this);
        ((org.openntf.domino.impl.ViewNavigator) result).setType(ViewNavigator.Types.FROM);
        return result;
    } catch (NotesException e) {
        DominoUtils.handleException(e);
    } finally {
        s_recycle(recycleThis);
    }
    return null;
}
Also used : ViewNavigator(org.openntf.domino.ViewNavigator) NotesException(lotus.domino.NotesException) ArrayList(java.util.ArrayList)

Example 4 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()
	 */
@Override
public ViewNavigator createViewNav() {
    try {
        getDelegate().setAutoUpdate(false);
        getDelegate().setEnableNoteIDsForCategories(true);
        ViewNavigator result = fromLotus(getDelegate().createViewNav(), ViewNavigator.SCHEMA, this);
        ((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 5 with ViewNavigator

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

the class View method createViewNavFrom.

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