001    //$HeadURL: svn+ssh://rbezema@svn.wald.intevation.org/deegree/base/branches/2.2_testing/src/org/deegree/ogcwebservices/wps/capabilities/WPSOperationsMetadata.java $
002    /*----------------    FILE HEADER  ------------------------------------------
003    
004     This file is part of deegree.
005     Copyright (C) 2001-2008 by:
006     EXSE, Department of Geography, University of Bonn
007     http://www.giub.uni-bonn.de/deegree/
008     lat/lon GmbH
009     http://www.lat-lon.de
010    
011     This library is free software; you can redistribute it and/or
012     modify it under the terms of the GNU Lesser General Public
013     License as published by the Free Software Foundation; either
014     version 2.1 of the License, or (at your option) any later version.
015    
016     This library is distributed in the hope that it will be useful,
017     but WITHOUT ANY WARRANTY; without even the implied warranty of
018     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
019     Lesser General Public License for more details.
020    
021     You should have received a copy of the GNU Lesser General Public
022     License along with this library; if not, write to the Free Software
023     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
024    
025     Contact:
026    
027     Andreas Poth
028     lat/lon GmbH
029     Aennchenstr. 19
030     53115 Bonn
031     Germany
032     E-Mail: poth@lat-lon.de
033    
034     Prof. Dr. Klaus Greve
035     Department of Geography
036     University of Bonn
037     Meckenheimer Allee 166
038     53115 Bonn
039     Germany
040     E-Mail: greve@giub.uni-bonn.de
041    
042     
043     ---------------------------------------------------------------------------*/
044    
045    package org.deegree.ogcwebservices.wps.capabilities;
046    
047    import java.util.ArrayList;
048    import java.util.List;
049    
050    import org.deegree.ogcwebservices.getcapabilities.Operation;
051    import org.deegree.ogcwebservices.getcapabilities.OperationsMetadata;
052    import org.deegree.owscommon.OWSDomainType;
053    
054    /**
055     * WPSOperationsMetadata.java
056     * 
057     * Created on 08.03.2006. 19:26:51h
058     * 
059     * Metadata about the operations and related abilities specified by this service and implemented by
060     * this server, including the URLs for operation requests. The basic contents of this section shall
061     * be the same for all OWS types, but individual services can add elements and/or change the
062     * optionality of optional elements.
063     * 
064     * @author <a href="mailto:christian@kiehle.org">Christian Kiehle</a>
065     * @author <a href="mailto:christian.heier@gmx.de">Christian Heier</a>
066     * @version 1.0.
067     * @since 2.0
068     */
069    public class WPSOperationsMetadata extends OperationsMetadata {
070    
071        /**
072         * WPS describe process operation.
073         */
074        private Operation describeProcess;
075    
076        /**
077         * WPS execute operation.
078         */
079        private Operation execute;
080    
081        /**
082         * 
083         */
084        public static final String DESCRIBEPROCESS = "DescribeProcess";
085    
086        /**
087         * 
088         */
089        public static final String EXECUTE = "Execute";
090    
091        /**
092         * 
093         * @param getCapabilitiesOperation
094         * @param describeProcess
095         * @param execute
096         * @param parameters
097         * @param constraints
098         */
099        public WPSOperationsMetadata( Operation getCapabilitiesOperation, Operation describeProcess, Operation execute,
100                                      OWSDomainType[] parameters, OWSDomainType[] constraints ) {
101            super( getCapabilitiesOperation, parameters, constraints );
102            this.describeProcess = describeProcess;
103            this.execute = execute;
104        }
105    
106        /**
107         * Returns all <code>Operations</code> known to the WPS.
108         * 
109         * @return all <code>Operations</code> known to the WPS.
110         */
111        @Override
112        public Operation[] getOperations() {
113            List<Operation> list = new ArrayList<Operation>( 3 );
114            list.add( describeProcess );
115            list.add( getCapabilitiesOperation );
116            list.add( execute );
117            Operation[] ops = new Operation[list.size()];
118            return list.toArray( ops );
119        }
120    
121        /**
122         * @return Returns the describeProcess.
123         */
124        public Operation getDescribeProcess() {
125            return describeProcess;
126        }
127    
128        /**
129         * @param describeProcess
130         *            The describeProcess to set.
131         */
132        public void setDescribeProcess( Operation describeProcess ) {
133            this.describeProcess = describeProcess;
134        }
135    
136        /**
137         * @return Returns the execute.
138         */
139        public Operation getExecute() {
140            return execute;
141        }
142    
143        /**
144         * @param execute
145         *            The execute to set.
146         */
147        public void setExecute( Operation execute ) {
148            this.execute = execute;
149        }
150    
151    }