Package org.apache.jetspeed.tools.pamanager

Examples of org.apache.jetspeed.tools.pamanager.FileSystemPAM


        manager = new TomcatManager("", "", 0, "", 0, "", "");
        SimpleRegistry simpleRegistry = new InMemoryRegistryImpl();
        DeployDecoratorEventListener ddel = new DeployDecoratorEventListener(simpleRegistry, deployRootFile
                .getAbsolutePath());

        DeployPortletAppEventListener dpal = new DeployPortletAppEventListener(webAppsDir, new FileSystemPAM(
                webAppsDir, portletRegistry, entityAccess, windowAccess, portletCache, manager), portletRegistry, portletFactory );
        ArrayList eventListeners = new ArrayList(2);
        eventListeners.add(ddel);
        eventListeners.add(dpal);
        // Use a -1 delay to disable auto scan
View Full Code Here


   
    public void testUndeployVersusRedeploy() throws Exception
    {
        manager = new TomcatManager("", "", 0, "", 0, "", "");
       
        DeployPortletAppEventListener dpal = new DeployPortletAppEventListener(webAppsDir, new FileSystemPAM(
                webAppsDir, portletRegistry, entityAccess, windowAccess, portletCache, manager), portletRegistry, portletFactory );
        ArrayList eventListeners = new ArrayList(1);
       
        eventListeners.add(dpal);
       
View Full Code Here

     * @see junit.framework.TestCase#tearDown()
     */
    public void tearDown() throws Exception
    {
        manager = new TomcatManager("", "", 0, "", 0, "", "");
        FileSystemPAM pam = new FileSystemPAM(webAppsDir, portletRegistry, entityAccess, windowAccess, portletCache, manager);

        try
        {
            DirectoryHelper dirHelper = new DirectoryHelper(new File(webAppsDir + "/" + TEST_PORTLET_APP_NAME));
            paWar1 = new PortletApplicationWar(dirHelper, TEST_PORTLET_APP_NAME, "/"
                    + TEST_PORTLET_APP_NAME);
            pam.undeploy(paWar1);
        }
        catch (Exception e1)
        {

        }

        pam.unregister("jetspeed");

        try
        {
            DirectoryHelper dirHelper = new DirectoryHelper(new File(webAppsDir + "/TestSecurityRoles"));
            paWar3 = new PortletApplicationWar(dirHelper, "TestSecurityRoles", "/TestSecurityRoles" );

            pam.undeploy(paWar3);
        }
        catch (Exception e3)
        {

        }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.tools.pamanager.FileSystemPAM

Copyright © 2018 www.massapicom. 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.