* @param defaultSortColumnId default sort column id
* @throws Exception on any error
*/
public void initialise(SessionInfo session, User user, String defaultSortColumnId) throws Exception {
super.initialize(session.getHttpSession(), defaultSortColumnId);
TunnelDatabase sdb = TunnelDatabaseFactory.getInstance();
List tunnels = session.getNavigationContext() == SessionInfo.MANAGEMENT_CONSOLE_CONTEXT ? sdb.getTunnels(session.getUser()
.getRealm().getRealmID()) : ResourceUtil.getGrantedResource(session, TunnelPlugin.SSL_TUNNEL_RESOURCE_TYPE);
if (DefaultAgentManager.getInstance().hasActiveAgent(session)) {
Set activeTunnels = ((TunnelingService) DefaultAgentManager.getInstance().getService(TunnelingService.class))
.getActiveTunnels(session);