try {
UserInbox ib = new UserInbox( repository );
if ( inboxName.equals( ExplorerNodeConfig.RECENT_VIEWED_ID ) ) {
return UserInbox.toTable( ib.loadRecentOpened(), false );
} else if ( inboxName.equals( ExplorerNodeConfig.RECENT_EDITED_ID ) ) {
return UserInbox.toTable( ib.loadRecentEdited(), false );
} else {
return UserInbox.toTable( ib.loadIncoming(), true );
}
} catch ( Exception e ) {
log.error( "Unable to load Inbox: " + e.getMessage() );