Examples of ComponentInvocation


Examples of com.sun.enterprise.ComponentInvocation

     * the user.
     * @return the main class of the application.
     */
    public String preInvoke(InitialContext ic, ClassLoader loader) throws Exception
    {
  ComponentInvocation ci = new ComponentInvocation(null, this);

  sw.getInvocationManager().preInvoke(ci);
  
  String mainClass = descriptor.getMainClassName();
  sw.setDescriptorFor(this, descriptor);
View Full Code Here

Examples of com.sun.enterprise.ComponentInvocation

     * the run-as identity information that was set up using the
     * preSetRunAsIdentity method
     */
    public void postInvoke (ComponentInvocation inv){
  if (runAs != null && inv.preInvokeDone){
            final ComponentInvocation finv = inv;
            AppservAccessController.doPrivileged(new PrivilegedAction() {
                public Object run() {
                    SecurityContext.setCurrent (finv.getOldSecurityContext());
                    return null;
                }
            });
  }
    }
View Full Code Here

Examples of com.sun.enterprise.ComponentInvocation

  EJBRoleRefPermission ejbrr = new EJBRoleRefPermission(ejbName, role);

   SecurityContext sc;
  if (runAs != null) {
      InvocationManager im = theSwitch.getInvocationManager();
      ComponentInvocation ci = im.getCurrentInvocation();
      sc = ci.getOldSecurityContext();
  } else {
      sc = SecurityContext.getCurrent();
  }
   Set principalSet = null;
   if (sc != null) principalSet = sc.getPrincipalSet();
View Full Code Here

Examples of com.sun.enterprise.ComponentInvocation

  if (runAs != null){ // Run As
      /* return the principal associated with the old security
       * context
       */
      InvocationManager im = theSwitch.getInvocationManager();
      ComponentInvocation ci =  im.getCurrentInvocation();

      if (ci == null) {
    throw new InvocationException(); // 4646060
      }
      sc = ci.getOldSecurityContext();
           
  } else{
      // lets optimize a little. no need to look up oldsecctx
      // its the same as the new one
      sc = SecurityContext.getCurrent();
View Full Code Here

Examples of org.apache.tapestry.internal.services.ComponentInvocation

     *            The name of the page to be rendered.
     * @return The DOM created. Typically you will assert against it.
     */
    public Document renderPage(String pageName)
    {
        return invoke(new ComponentInvocation(new PageLinkTarget(pageName), new String[0], null));
    }
View Full Code Here

Examples of org.apache.tapestry.internal.services.ComponentInvocation

     * @return The DOM created. Typically you will assert against it.
     */
    public Document clickLink(Element link)
    {
        Defense.notNull(link, "link");
        ComponentInvocation invocation = getInvocation(link);
        return invoke(invocation);
    }
View Full Code Here

Examples of org.apache.tapestry.internal.services.ComponentInvocation

        return invoke(invocation);
    }

    private ComponentInvocation getInvocation(Element element)
    {
        ComponentInvocation invocation = _invocationMap.get(element);
        if (invocation == null) { throw new IllegalArgumentException(
                "No component invocation object is associated with the Element"); }
        return invocation;
    }
View Full Code Here

Examples of org.apache.tapestry.internal.services.ComponentInvocation

    {
        Defense.notNull(form, "form");
        _formParameterLookup.clear();
        _formParameterLookup.addFieldValues(fieldValues);
        addHiddenFormFields(form);
        ComponentInvocation invocation = getInvocation(form);
        return invoke(invocation);
    }
View Full Code Here

Examples of org.apache.tapestry.internal.services.ComponentInvocation

     *            The name of the page to be rendered.
     * @return The DOM created. Typically you will assert against it.
     */
    public Document renderPage(String pageName)
    {
        return invoke(new ComponentInvocation(new PageLinkTarget(pageName), new String[0], null));
    }
View Full Code Here

Examples of org.apache.tapestry.internal.services.ComponentInvocation

     * @return The DOM created. Typically you will assert against it.
     */
    public Document clickLink(Element link)
    {
        Defense.notNull(link, "link");
        ComponentInvocation invocation = getInvocation(link);
        return invoke(invocation);
    }
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.