Examples of ViewAction


Examples of actions.ViewAction

        // If you wanna use JSP check response.getForwardedUrl()
        String output = executeAction("/view.action");

        assertTrue(output.contains("This is the view Hello World"));

        ViewAction action = this.getAction();
        assertEquals("Hello World", action.getMessage());
    }
View Full Code Here

Examples of actions.ViewAction

    @Test
    public void testConventionUrl() throws Exception {
        // TODO: Currently output is empty
        String output = executeAction("/view.action");

        ViewAction action = this.getAction();
        Assert.assertEquals("Hello World", action.getMessage());
    }
View Full Code Here

Examples of org.apache.airavata.xbaya.ui.actions.registry.browser.ViewAction

                actionCopy.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent arg0) {
                        triggerNodeAction(CopyAction.ID);
                    }
                });
                ViewAction actionView = new ViewAction();
                actionView.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent arg0) {
                        triggerNodeAction(ViewAction.ID);
                    }
                });
               
View Full Code Here

Examples of org.apache.airavata.xbaya.ui.actions.registry.browser.ViewAction

                actionCopy.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent arg0) {
                        triggerNodeAction(CopyAction.ID);
                    }
                });
                ViewAction actionView = new ViewAction();
                actionView.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent arg0) {
                        triggerNodeAction(ViewAction.ID);
                    }
                });
               
View Full Code Here

Examples of org.apache.airavata.xbaya.ui.actions.registry.browser.ViewAction

                actionCopy.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent arg0) {
                        triggerNodeAction(CopyAction.ID);
                    }
                });
                ViewAction actionView = new ViewAction();
                actionView.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent arg0) {
                        triggerNodeAction(ViewAction.ID);
                    }
                });
               
View Full Code Here

Examples of org.apache.airavata.xbaya.ui.actions.registry.browser.ViewAction

                actionCopy.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent arg0) {
                        triggerNodeAction(CopyAction.ID);
                    }
                });
                ViewAction actionView = new ViewAction();
                actionView.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent arg0) {
                        triggerNodeAction(ViewAction.ID);
                    }
                });
                BrowserAction actionBrowser = new BrowserAction();
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.security.ViewAction

            CellResourceManager crm = AppContext.getManager(CellResourceManager.class);
            Resource resource = crm.getCellResource(cell.getCellID());
            if (resource != null) {
                // add the resource to the security check
                Resource r = new CellIDResource(cell.getCellID(), resource);
                rm.put(r.getId(), new ActionMap(r, new ViewAction()));
            }
        }
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.security.ViewAction

            }
        }

        // add view permissions for all users
        Principal p = new Principal("users", Principal.Type.EVERYBODY);
        ActionDTO view = new ActionDTO(new ViewAction());
        perms.getPermissions().add(new Permission(
                p, view, Permission.Access.GRANT));
        ActionDTO modify = new ActionDTO(new ModifyAction());
        perms.getPermissions().add(new Permission(
                p, modify, Permission.Access.DENY));
View Full Code Here

Examples of org.jdesktop.wonderland.common.cell.security.ViewAction

        // get the security manager
        SecurityManager security = AppContext.getManager(SecurityManager.class);
        CellResourceManager crm = AppContext.getManager(CellResourceManager.class);

        // create a request
        Action viewAction = new ViewAction();
        Resource resource = crm.getCellResource(this.cellID);
        if (resource != null) {
            // there is security on this cell perform the enter notification
            // securely
            ActionMap am = new ActionMap(resource, new Action[] { viewAction });
View Full Code Here

Examples of org.pentaho.platform.web.servlet.ViewAction

    request = mock( HttpServletRequest.class );
    when( request.getMethod() ).thenReturn( "GET" );

    response = mock( HttpServletResponse.class );

    servlet = spy( new ViewAction() );

    mp.defineInstance( IUnifiedRepository.class, mock( IUnifiedRepository.class ) );
    mp.start();
    PentahoSessionHolder.setSession( new StandaloneSession( "test" ) );
  }
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.