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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations