1 package org.apache.maven.repository.manager.web.action;
\r
4 * Copyright 2005-2006 The Apache Software Foundation.
\r
6 * Licensed under the Apache License, Version 2.0 (the "License");
\r
7 * you may not use this file except in compliance with the License.
\r
8 * You may obtain a copy of the License at
\r
10 * http://www.apache.org/licenses/LICENSE-2.0
\r
12 * Unless required by applicable law or agreed to in writing, software
\r
13 * distributed under the License is distributed on an "AS IS" BASIS,
\r
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
15 * See the License for the specific language governing permissions and
\r
16 * limitations under the License.
\r
19 import com.opensymphony.xwork.Action;
\r
20 import org.apache.maven.repository.manager.web.job.DiscovererScheduler;
\r
23 * This is the Action class of index.jsp, which is the initial page of the web application.
\r
24 * It invokes the DiscovererScheduler to set the DiscoverJob in the scheduler.
\r
26 * @plexus.component role="com.opensymphony.xwork.Action" role-hint="org.apache.maven.repository.manager.web.action.BaseAction"
\r
28 public class BaseAction
\r
33 * @plexus.requirement
\r
35 private DiscovererScheduler discovererScheduler;
\r
38 * Method that executes the action
\r
40 * @return a String that specifies if the action executed was a success or a failure
\r
42 public String execute()
\r
46 discovererScheduler.setSchedule();
\r
48 catch ( Exception e )
\r
50 e.printStackTrace();
\r