| <?xml version="1.0" encoding="ISO-8859-1"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <!-- $Id$ --> |
| |
| <xsp:page |
| language="java" |
| xmlns:xsp="http://apache.org/xsp" |
| xmlns:input="http://apache.org/cocoon/xsp/input/1.0" |
| xmlns:usecase="http://apache.org/cocoon/lenya/usecase/1.0" |
| xmlns:sch="http://apache.org/cocoon/lenya/scheduler/1.0" |
| xmlns:xsp-request="http://apache.org/xsp/request/2.0" |
| > |
| |
| <usecase:publish> |
| |
| <usecase:document-uuid><input:get-attribute module="page-envelope" name="document-uuid" as="string"/></usecase:document-uuid> |
| <usecase:uris><xsp-request:get-uri/></usecase:uris> |
| <usecase:sources><input:get-attribute module="page-envelope" as="string" name="document-path"/></usecase:sources> |
| <usecase:publication-id><input:get-attribute module="page-envelope" name="publication-id" as="string"/></usecase:publication-id> |
| <usecase:context-prefix><input:get-attribute module="page-envelope" name="context-prefix" as="string"/></usecase:context-prefix> |
| <usecase:area><input:get-attribute module="page-envelope" name="area" as="string"/></usecase:area> |
| <usecase:language><input:get-attribute module="page-envelope" name="document-language" as="string"/></usecase:language> |
| |
| <!-- FIXME: this should be defined in the workflow schema --> |
| <usecase:task-id>publish</usecase:task-id> |
| |
| <!-- add date for scheduler --> |
| <xsp:logic> |
| java.util.GregorianCalendar calendar = new java.util.GregorianCalendar(); |
| </xsp:logic> |
| |
| <sch:current-date> |
| <sch:year><xsp:expr>calendar.get(java.util.Calendar.YEAR)</xsp:expr></sch:year> |
| <sch:month><xsp:expr>calendar.get(java.util.Calendar.MONTH) + 1</xsp:expr></sch:month> |
| <sch:day><xsp:expr>calendar.get(java.util.Calendar.DAY_OF_MONTH)</xsp:expr></sch:day> |
| <sch:hour><xsp:expr>calendar.get(java.util.Calendar.HOUR_OF_DAY)</xsp:expr></sch:hour> |
| <sch:minute><xsp:expr>calendar.get(java.util.Calendar.MINUTE)</xsp:expr></sch:minute> |
| <sch:second><xsp:expr>calendar.get(java.util.Calendar.SECOND)</xsp:expr></sch:second> |
| </sch:current-date> |
| |
| </usecase:publish> |
| |
| </xsp:page> |