lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andr...@apache.org
Subject cvs commit: cocoon-lenya/src/webapp/lenya usecase.xmap
Date Wed, 20 Aug 2003 19:00:57 GMT
andreas     2003/08/20 12:00:57

  Modified:    src/webapp/lenya usecase.xmap
  Log:
  added submit, reject, and notification
  
  Revision  Changes    Path
  1.75      +109 -16   cocoon-lenya/src/webapp/lenya/usecase.xmap
  
  Index: usecase.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/usecase.xmap,v
  retrieving revision 1.74
  retrieving revision 1.75
  diff -u -r1.74 -r1.75
  --- usecase.xmap	20 Aug 2003 16:55:50 -0000	1.74
  +++ usecase.xmap	20 Aug 2003 19:00:57 -0000	1.75
  @@ -65,7 +65,7 @@
         </map:act>
       </map:resource>
       
  -    <map:resource name="cms-screen">
  +    <map:resource name="cms-screen-xml">
         
         <!-- use publication-specific schema if available -->
         <map:select type="resource-exists">
  @@ -90,10 +90,19 @@
           </map:otherwise>
         </map:select>
         
  +    </map:resource>
  +      
  +    <map:resource name="cms-screen">
  +    	<map:call resource="cms-screen-xml">
  +    		<map:parameter name="publication-id" value="{publication-id}"/>
  +    		<map:parameter name="serverpage" value="{serverpage}"/>
  +    		<map:parameter name="stylesheet" value="{stylesheet}"/>
  +    	</map:call>
         <map:call resource="style-cms-page"/>
         <map:serialize/>
       </map:resource>
       
  +    
     </map:resources>
     
     <!-- =========================== Pipelines ================================ -->
  @@ -122,10 +131,44 @@
         
         <!-- create the current job snapshot -->
         <map:match pattern="scheduler-servlet">
  -        <map:generate src="/lenya/servlet/QuartzSchedulerServlet" type="servletproxy"/>
  +        <map:generate src="{request:contextPath}/servlet/QuartzSchedulerServlet" type="servletproxy"/>
           <map:transform src="xslt/scheduler/sort.xsl"/>
           <map:serialize type="xml"/>
         </map:match>
  +      
  +    </map:pipeline>
  +    
  +    <!-- =================================================================== -->
  +    <!-- Notification Pipelines -->
  +    <!-- =================================================================== -->
  +    
  +    <map:pipeline>
  +    	
  +    	<!-- notification/{publication-id}/{usecase}.xml -->
  +    	<map:match pattern="notification/*/*.xml">
  +    		<map:generate src="pubs/{1}/config/notification/notification.xconf"/>
  +    		<map:transform src="xslt/notification/notification2message.xsl">
  +    			<map:parameter name="usecase" value="{2}"/>
  +    		</map:transform>
  +    		<map:serialize type="xml"/>
  +    	</map:match>
  +    	
  +    	<!-- notification/{publication-id}/{usecase}.xsl -->
  +    	<map:match pattern="notification/*/*.xsl">
  +    		<map:generate src="cocoon:/notification/{1}/{2}.xml"/>
  +    		<map:transform src="xslt/notification/message2xslt.xsl">
  +    			<map:parameter name="usecase" value="{2}"/>
  +    		</map:transform>
  +    		<map:serialize type="xml"/>
  +    	</map:match>
  +    	
  +    	<!-- notification/{publication-id}/{usecase}.xsl -->
  +    	<map:match pattern="notification/*.xsl">
  +<!--    		<map:generate src="cocoon:/notification/{page-envelope:publication-id}/{1}.xsl"/>-->
  +    		<map:generate src="xslt/notification/{1}.xsl"/>
  +    		<map:serialize type="xml"/>
  +    	</map:match>
  +    	
       </map:pipeline>
       
       <!-- =================================================================== -->
  @@ -147,6 +190,22 @@
           <!-- Scheduler -->
           <!-- Schedule Document: View, Add, Edit, Delete Jobs -->
           <map:match pattern="schedule" type="usecase">
  +        	
  +        	<!-- show scheduler screen -->
  +          <map:match pattern="showscreen" type="step">
  +            <map:call resource="scheduler-page">
  +              <map:parameter name="publication-id" value="{../../1}"/>
  +              <map:parameter name="uri" value="{../../2}/{../../3}"/>
  +            </map:call>
  +            <map:transform src="xslt/scheduler/scheduler-page.xsl">
  +              <map:parameter name="context-prefix" value="{request:contextPath}"/>
  +              <map:parameter name="publication-id" value="{../../1}"/>
  +              <map:parameter name="area" value="{../../2}"/>
  +              <map:parameter name="document-uri" value="{../../3}"/>
  +            </map:transform>
  +            <map:call resource="style-cms-page"/>
  +          </map:match>
  +          
             <!-- add job: redirect to page -->
             <map:match pattern="add" type="step">
               <map:call resource="scheduler-page">
  @@ -158,20 +217,7 @@
               </map:transform>
               <map:serialize/>
             </map:match>
  -          <map:call resource="scheduler-page">
  -            <map:parameter name="publication-id" value="{../1}"/>
  -            <map:parameter name="uri" value="{../2}/{../3}"/>
  -          </map:call>
  -          <map:transform src="xslt/scheduler/scheduler-page.xsl">
  -            <map:parameter name="context-prefix" value="{request:contextPath}"/>
  -            <map:parameter name="publication-id" value="{../1}"/>
  -            <map:parameter name="area" value="{../2}"/>
  -            <map:parameter name="document-uri" value="{../3}"/>
  -          </map:transform>
  -          <map:transform src="xslt/util/page2xhtml.xsl">
  -            <map:parameter name="context-prefix" value="{request:contextPath}"/>
  -          </map:transform>
  -          <map:serialize/>
  +          
           </map:match>
           
           <!-- usecase -->
  @@ -220,6 +266,33 @@
           <!-- usecase -->
   
   
  +        <!-- Submit -->
  +        <map:match pattern="submit" type="usecase">
  +          <map:match pattern="showscreen" type="step">
  +            <map:call resource="cms-screen-xml">
  +              <map:parameter name="publication-id" value="{../../1}"/>
  +              <map:parameter name="serverpage" value="publishing/submit-screen.xsp"/>
  +              <map:parameter name="stylesheet" value="publishing/submit-screen.xsl"/>
  +            </map:call>
  +            <map:transform src="cocoon:/notification/{../../1}/submit.xsl"/>
  +            <map:call resource="style-cms-page"/>
  +          </map:match>
  +        </map:match>
  +        <!-- / Submit -->
  +        
  +        <!-- Reject -->
  +        <map:match pattern="reject" type="usecase">
  +          <map:match pattern="showscreen" type="step">
  +            <map:call resource="cms-screen-xml">
  +              <map:parameter name="publication-id" value="{../../1}"/>
  +              <map:parameter name="serverpage" value="publishing/reject-screen.xsp"/>
  +              <map:parameter name="stylesheet" value="publishing/reject-screen.xsl"/>
  +            </map:call>
  +            <map:transform src="cocoon:/notification/{../../1}/reject.xsl"/>
  +            <map:call resource="style-cms-page"/>
  +          </map:match>
  +        </map:match>
  +        <!-- / Reject -->
           
           <!-- Publish -->
           <map:match pattern="publish" type="usecase">
  @@ -727,6 +800,18 @@
             </map:match>
             
           </map:match>
  +        
  +        <map:match pattern="info-ac-*" type="usecase">
  +          <map:match pattern="showscreen" type="step">
  +            <map:generate src="content/info/access-control.xsp" type="serverpages">
  +              <map:parameter name="area" value="{../1}"/>
  +            </map:generate>
  +            <map:transform src="xslt/info/info.xsl">
  +            	<map:parameter name="tab" value="ac-{../1}"/>
  +            </map:transform>
  +            <map:serialize/>
  +          </map:match>
  +        </map:match>
   
           <map:match pattern="info-workflow" type="usecase">
           	<map:act type="resource-exists" src="pubs/{page-envelope:publication-id}/content/workflow/history/{page-envelope:document-path}">
  @@ -822,6 +907,14 @@
             
           </map:match>
           
  +        <map:match pattern="transition-ant" type="usecase">
  +          <map:act type="task">
  +            <map:parameter name="publication-id" value="{../1}"/>
  +            <map:parameter name="task-id" value="ant"/>
  +            <map:redirect-to session="true" uri="{request:requestURI}"/>
  +          </map:act>
  +        </map:match>
  +          
           <map:match pattern="transition" type="usecase">
             <map:act type="task">
               <map:parameter name="publication-id" value="{../1}"/>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org


Mime
View raw message