Examples of checkAccessRights()


Examples of com.adito.policyframework.LaunchSession.checkAccessRights()

        LaunchSession launchSession = LaunchSessionFactory.getInstance().getLaunchSession(launchId);
        if (launchSession == null) {
            throw new Exception("Invalid launchId parameter supplied.");
        }
        try {
            launchSession.checkAccessRights(null, getSessionInfo(request));
            ((TunnelingService) DefaultAgentManager.getInstance().getService(TunnelingService.class))
                            .startTunnel(launchSession);
            ActionMessages msgs = new ActionMessages();
            msgs.add(Globals.MESSAGE_KEY, new BundleActionMessage(TunnelPlugin.MESSAGE_RESOURCES_KEY, "tunnels.started", launchSession.getResource().getResourceName()));
            saveMessages(request, msgs);
View Full Code Here

Examples of com.adito.policyframework.LaunchSession.checkAccessRights()

          return true;
        } else {
          LaunchSession launchSession = LaunchSessionFactory.getInstance().createLaunchSession(agent.getSession(),
            resource,
            policy);
          launchSession.checkAccessRights(null, agent.getSession());

          ApplicationShortcut shortcut = (ApplicationShortcut) launchSession.getResource();
          ExtensionDescriptor descriptor = ExtensionStore.getInstance().getExtensionDescriptor(shortcut.getApplication());

          Request newRequest = launchApplication(launchSession);
View Full Code Here

Examples of com.adito.policyframework.LaunchSession.checkAccessRights()

        LaunchSession launchSession = LaunchSessionFactory.getInstance().getLaunchSession(launchSessionId);
        if (launchSession == null) {
            throw new Exception("No launch session id " + launchSessionId);
        }
        final ApplicationShortcut shortcut = (ApplicationShortcut)launchSession.getResource();
        launchSession.checkAccessRights(null, getSessionInfo(request));
        ExtensionDescriptor app = ExtensionStore.getInstance().getExtensionDescriptor(shortcut.getApplication());
        if (app == null) {
            throw new Exception("No application named " + shortcut.getApplication() + ".");
        }
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.