Examples of TunnelItem


Examples of com.adito.tunnels.forms.TunnelItem

     * (non-Javadoc)
     *
     * @see com.adito.table.TableItemAction#isEnabled(com.adito.table.AvailableTableItemAction)
     */
    public boolean isEnabled(AvailableTableItemAction availableItem) {
        TunnelItem item = (TunnelItem) availableItem.getRowItem();
        return !item.getOpen().equals("true");
    }
View Full Code Here

Examples of com.adito.tunnels.forms.TunnelItem

     * (non-Javadoc)
     *
     * @see com.adito.table.TableItemAction#getPath(com.adito.table.AvailableTableItemAction)
     */
    public String getPath(AvailableTableItemAction availableItem) {
        TunnelItem item = (TunnelItem) availableItem.getRowItem();
        return item.getOpenLink(-1, "/showUserTunnels.do", availableItem.getRequest());
    }
View Full Code Here

Examples of com.adito.tunnels.forms.TunnelItem

     * (non-Javadoc)
     *
     * @see com.adito.table.TableItemAction#isEnabled(com.adito.table.AvailableTableItemAction)
     */
    public boolean isEnabled(AvailableTableItemAction availableItem) {
        TunnelItem item = (TunnelItem) availableItem.getRowItem();
        return item.getOpen().equals("true");
    }
View Full Code Here

Examples of com.adito.tunnels.forms.TunnelItem

     * (non-Javadoc)
     *
     * @see com.adito.table.TableItemAction#getPath(com.adito.table.AvailableTableItemAction)
     */
    public String getPath(AvailableTableItemAction availableItem) {
        TunnelItem item = (TunnelItem) availableItem.getRowItem();
        return item.getCloseLink(CoreUtil.getReferer(availableItem.getRequest()), availableItem.getRequest());
    }
View Full Code Here

Examples of com.adito.tunnels.forms.TunnelItem

            Set activeTunnels = ((TunnelingService) DefaultAgentManager.getInstance().getService(TunnelingService.class))
                            .getActiveTunnels(LogonControllerFactory.getInstance().getSessionInfo(request));
            SessionInfo sessionInfo = LogonControllerFactory.getInstance().getSessionInfo(request);
            LaunchSession launchSession = activeTunnels.contains(Integer.valueOf(tunnel.getResourceId())) ? LaunchSessionFactory
                            .getInstance().getFirstLaunchSessionForResource(sessionInfo, tunnel) : null;
            return new WrappedFavoriteItem(new TunnelItem(tunnel, null, launchSession), type);
        } else
            return new WrappedFavoriteItem(new TunnelItem(tunnel, null, null), type);

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.