ate         2005/03/23 14:43:35

  Modified:    applications/pam/src/java/org/apache/jetspeed/portlets/pam
                        PortletApplicationResources.java
               applications/pam project.xml
               applications/pam/src/webapp/WEB-INF portlet.xml
                        jetspeed-portlet.xml
  Added:       applications/pam/src/java/org/apache/jetspeed/portlets/pam
                        PortletApplicationManager.java
                        PortletApplicationStatusBean.java
               applications/pam/src/webapp/WEB-INF/view pam.jsp
  Log:
  Resolving http://issues.apache.org/jira/browse/JS2-210:
  New PAM Portlet showing and managing Portlet Applications status: 
start/stop/undeploy/delete (unregister from Registry).
  If no ApplicationServerManager is configured (as PortalService) only the 
running status and the delete function will be available.
  On Tomcat 5(.5) all features are available.
  As we already have a PAM there was a naming conflict. For now, I just created 
a pam2.psml (Title PAM).
  Integration of this Portlet in the already existing PAM will be difficult 
because that one uses a tree for PA selection while the new
  portlet presents the PAs in a list.
  Needs some discussion how we should integrate these.
  
  Revision  Changes    Path
  1.16      +4 -1      
jakarta-jetspeed-2/applications/pam/src/java/org/apache/jetspeed/portlets/pam/PortletApplicationResources.java
  
  Index: PortletApplicationResources.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/applications/pam/src/java/org/apache/jetspeed/portlets/pam/PortletApplicationResources.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- PortletApplicationResources.java  22 Dec 2004 17:49:18 -0000      1.15
  +++ PortletApplicationResources.java  23 Mar 2005 22:43:35 -0000      1.16
  @@ -31,6 +31,9 @@
       public final static String CPS_GROUP_MANAGER_COMPONENT = 
"cps:GroupManager";
       public final static String CPS_PROFILER_COMPONENT = "cps:Profiler";
       public final static String CPS_SSO_COMPONENT = "cps:SSO";    
  +    public final static String CPS_APPLICATION_SERVER_MANAGER_COMPONENT = 
"cps:ApplicationServerManager";
  +    public final static String CPS_PORTLET_FACTORY_COMPONENT = 
"cps:PortletFactory";    
  +    public final static String CPS_DEPLOYMENT_MANAGER_COMPONENT = 
"cps:DeploymentManager";    
       
       /** the selected non-leaf node in the tree view */
       public final static String REQUEST_NODE = "node";
  
  
  
  1.2       +275 -0    
jakarta-jetspeed-2/applications/pam/src/java/org/apache/jetspeed/portlets/pam/PortletApplicationManager.java
  
  
  
  
  1.2       +71 -0     
jakarta-jetspeed-2/applications/pam/src/java/org/apache/jetspeed/portlets/pam/PortletApplicationStatusBean.java
  
  
  
  
  1.2       +105 -0    
jakarta-jetspeed-2/applications/pam/src/webapp/WEB-INF/view/pam.jsp
  
  
  
  
  1.30      +18 -0     jakarta-jetspeed-2/applications/pam/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/pam/project.xml,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- project.xml       8 Mar 2005 04:28:00 -0000       1.29
  +++ project.xml       23 Mar 2005 22:43:35 -0000      1.30
  @@ -155,6 +155,15 @@
               </properties>
           </dependency>
           <dependency>
  +            <groupId>commons-collections</groupId>
  +            <artifactId>commons-collections</artifactId>
  +            <version>3.0</version>
  +            <type>jar</type>
  +            <properties>
  +                <war.bundle>true</war.bundle>
  +            </properties>
  +        </dependency>
  +        <dependency>
               <groupId>commons-digester</groupId>
               <artifactId>commons-digester</artifactId>
               <version>1.5</version>
  @@ -186,6 +195,15 @@
           </dependency>
   
       <dependency>
  +        <groupId>portals-gems</groupId>
  +        <artifactId>portals-gems</artifactId>
  +        <version>2.0-M2-dev</version>
  +        <type>jar</type>
  +        <properties>
  +            <war.bundle>true</war.bundle>
  +        </properties>
  +    </dependency>
  +    <dependency>
         <groupId>portals-bridges</groupId>
         <artifactId>portals-bridges-frameworks</artifactId>
         <version>0.1</version>
  
  
  
  1.19      +23 -0     
jakarta-jetspeed-2/applications/pam/src/webapp/WEB-INF/portlet.xml
  
  Index: portlet.xml
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/applications/pam/src/webapp/WEB-INF/portlet.xml,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- portlet.xml       8 Mar 2005 04:28:25 -0000       1.18
  +++ portlet.xml       23 Mar 2005 22:43:35 -0000      1.19
  @@ -16,6 +16,29 @@
   -->
   <portlet-app id="pam" version="1.0">
   
  +<portlet id="PortletApplicationBrowser">
  +    <init-param>
  +        <description>This parameter sets the template used in view 
mode.</description>
  +        <name>ViewPage</name>
  +            <value>/WEB-INF/view/pam.jsp</value>
  +     </init-param>   
  +    <portlet-name>PortletApplicationManager</portlet-name>
  +    <display-name>Portlet Application Manager</display-name>
  +    <description>The PAM (Portlet Application Manager)</description>
  +    
<portlet-class>org.apache.jetspeed.portlets.pam.PortletApplicationManager</portlet-class>
  +    <expiration-cache>-1</expiration-cache>
  +    <supports>
  +      <mime-type>text/html</mime-type>
  +      <portlet-mode>VIEW</portlet-mode>
  +    </supports>
  +    <supported-locale>en</supported-locale>    
  +    <portlet-info>
  +      <title>Portlet Application Manager</title>
  +      <short-title>PAM</short-title>
  +      <keywords>applications,apps,PAM</keywords>
  +    </portlet-info>
  +  </portlet>
  +
   <portlet id="LocaleSelector">
       <portlet-name>LocaleSelector</portlet-name>
       <display-name>Locale Selector</display-name>
  
  
  
  1.9       +3 -0      
jakarta-jetspeed-2/applications/pam/src/webapp/WEB-INF/jetspeed-portlet.xml
  
  Index: jetspeed-portlet.xml
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/applications/pam/src/webapp/WEB-INF/jetspeed-portlet.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- jetspeed-portlet.xml      19 Nov 2004 21:53:12 -0000      1.8
  +++ jetspeed-portlet.xml      23 Mar 2005 22:43:35 -0000      1.9
  @@ -43,6 +43,9 @@
                <js:service name='RoleManager'/>
                <js:service name='GroupManager'/>
                <js:service name='Profiler'/>
  +        <js:service name='ApplicationServerManager'/>
  +        <js:service name='PortletFactory'/>
  +        <js:service name='DeploymentManager'/>
        </js:services>
        
   </portlet-app>
  \ No newline at end of file
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to