1 package org.apache.maven.repository.manager.web.action.admin;
4 * Copyright 2005-2006 The Apache Software Foundation.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
19 import com.opensymphony.xwork.ActionSupport;
20 import com.opensymphony.xwork.ModelDriven;
21 import com.opensymphony.xwork.Preparable;
22 import org.apache.maven.repository.configuration.Configuration;
23 import org.apache.maven.repository.configuration.ConfigurationStore;
24 import org.apache.maven.repository.configuration.ConfigurationStoreException;
25 import org.apache.maven.repository.indexing.RepositoryIndexException;
26 import org.apache.maven.repository.indexing.RepositoryIndexSearchException;
28 import java.net.MalformedURLException;
31 * Configures the application.
33 * @plexus.component role="com.opensymphony.xwork.Action" role-hint="configureAction"
35 public class ConfigureAction
37 implements ModelDriven, Preparable
42 private ConfigurationStore configurationStore;
47 private Configuration configuration;
49 public String execute()
50 throws MalformedURLException, RepositoryIndexException, RepositoryIndexSearchException,
51 ConfigurationStoreException
53 // TODO! not yet implemented
57 public String doInput()
62 public Object getModel()
70 configuration = configurationStore.getConfigurationFromStore();