Package com.adito.policyframework

Examples of com.adito.policyframework.Resource.sessionPasswordRequired()


          errs.add(Globals.ERROR_KEY,  new BundleActionMessage("policyframework", "resourceNotAttachedToPolicy"));
          saveErrors(request, errs);
          return new RedirectWithMessages(returnTo, request);
        }
      Util.noCache(response);
        if(resource.sessionPasswordRequired(session)) {
            // Prompt for the session password then come back here
        return new ActionForward("/promptForSessionPassword.do?forwardTo=" +  Util.urlEncode(CoreUtil.getRealRequestURI(request) + "?resourceId=" + id + "&policy=" + policy.getResourceId() + "&returnTo=" + Util.urlEncode(returnTo)), true);
        }
        else {
            // Launch the agent and return here
View Full Code Here


        Resource resource = ApplicationsPlugin.APPLICATION_SHORTCUT_RESOURCE_TYPE.getResourceById(id);
        if (resource == null) {
          throw new Exception("No resource with ID " + id);
        }
        Policy policy = LaunchSessionManager.getLaunchRequestPolicy(null, agent.getSession(), resource);
        if (resource.sessionPasswordRequired(agent.getSession())) {
          // TODO: prompt user for credentials through agent!
          return true;
        } else {
          LaunchSession launchSession = LaunchSessionFactory.getInstance().createLaunchSession(agent.getSession(),
            resource,
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.