]> source.dussan.org Git - archiva.git/commitdiff
get RID of deprecated use of ArchivaRoleConstants and some plexus annotations
authorOlivier Lamy <olamy@apache.org>
Tue, 6 Sep 2011 07:21:43 +0000 (07:21 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 6 Sep 2011 07:21:43 +0000 (07:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1165521 13f79535-47bb-0310-9956-ffa450edef68

13 files changed:
archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/rss/RssFeedServlet.java
archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/archiva/web/startup/SecuritySynchronization.java
archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/SchedulerAction.java
archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/SystemStatusAction.java
archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/appearance/EditOrganisationInfoAction.java
archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/connectors/proxy/AbstractProxyConnectorAction.java
archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/legacy/LegacyArtifactPathAction.java
archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/networkproxies/ConfigureNetworkProxyAction.java
archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/networkproxies/NetworkProxiesAction.java
archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/AbstractRepositoriesAdminAction.java
archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/repositories/RepositoriesAction.java
archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/scanning/RepositoryScanningAction.java
archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/reports/GenerateReportAction.java

index 4a1afabda34ceaaea2df690b2792169c44f584ef..d2952c0a4dc0b4c6fcae08db4b5004fb24f076c5 100644 (file)
@@ -25,12 +25,12 @@ import com.sun.syndication.io.SyndFeedOutput;
 import org.apache.archiva.metadata.repository.RepositorySession;
 import org.apache.archiva.metadata.repository.RepositorySessionFactory;
 import org.apache.archiva.rss.processor.RssFeedProcessor;
+import org.apache.archiva.security.common.ArchivaRoleConstants;
 import org.apache.commons.codec.Decoder;
 import org.apache.commons.codec.DecoderException;
 import org.apache.commons.codec.binary.Base64;
 import org.apache.commons.lang.StringUtils;
 import org.apache.archiva.security.AccessDeniedException;
-import org.apache.archiva.security.ArchivaRoleConstants;
 import org.apache.archiva.security.ArchivaSecurityException;
 import org.apache.archiva.security.PrincipalNotFoundException;
 import org.apache.archiva.security.ServletAuthenticator;
index 3f3402afc1285c6acb4af0316ce4afa301e3677c..2e1d8db01482ca5569499b94113980b14c131017 100644 (file)
@@ -19,13 +19,13 @@ package org.apache.archiva.web.startup;
  * under the License.
  */
 
+import org.apache.archiva.security.common.ArchivaRoleConstants;
 import org.apache.commons.collections.CollectionUtils;
 import org.apache.commons.lang.StringUtils;
 import org.apache.maven.archiva.common.ArchivaException;
 import org.apache.maven.archiva.configuration.ArchivaConfiguration;
 import org.apache.maven.archiva.configuration.ConfigurationNames;
 import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
-import org.apache.archiva.security.ArchivaRoleConstants;
 import org.codehaus.plexus.redback.rbac.RBACManager;
 import org.codehaus.plexus.redback.rbac.RbacManagerException;
 import org.codehaus.plexus.redback.rbac.UserAssignment;
@@ -53,8 +53,6 @@ import java.util.Map.Entry;
  * ConfigurationSynchronization
  *
  * @version $Id$
- * plexus.component role="org.apache.archiva.web.startup.SecuritySynchronization"
- * role-hint="default"
  */
 @Service
 public class SecuritySynchronization
@@ -62,27 +60,15 @@ public class SecuritySynchronization
 {
     private Logger log = LoggerFactory.getLogger( SecuritySynchronization.class );
 
-    /**
-     * plexus.requirement role-hint="default"
-     */
     @Inject
     private RoleManager roleManager;
 
-    /**
-     * plexus.requirement role-hint="cached"
-     */
     @Inject
     @Named( value = "rBACManager#cached" )
     private RBACManager rbacManager;
 
-    /**
-     * plexus.requirement role="org.codehaus.plexus.redback.system.check.EnvironmentCheck"
-     */
     private Map<String, EnvironmentCheck> checkers;
 
-    /**
-     * plexus.requirement
-     */
     @Inject
     private ArchivaConfiguration archivaConfiguration;
 
index fe51db25f7fccb425abd2c0b9767dbde485212a6..24430dcd9dc08f9edb395d797a3ce68f7ec75707 100644 (file)
@@ -21,8 +21,8 @@ package org.apache.maven.archiva.web.action.admin;
 
 import org.apache.archiva.scheduler.repository.RepositoryArchivaTaskScheduler;
 import org.apache.archiva.scheduler.repository.RepositoryTask;
+import org.apache.archiva.security.common.ArchivaRoleConstants;
 import org.apache.commons.lang.StringUtils;
-import org.apache.archiva.security.ArchivaRoleConstants;
 import org.apache.maven.archiva.web.action.AbstractActionSupport;
 import org.codehaus.plexus.redback.rbac.Resource;
 import org.codehaus.plexus.taskqueue.TaskQueueException;
@@ -37,8 +37,6 @@ import javax.inject.Named;
 
 /**
  * Configures the application.
- * <p/>
- * plexus.component role="com.opensymphony.xwork2.Action" role-hint="schedulerAction" instantiation-strategy="per-lookup"
  */
 @Controller( "schedulerAction" )
 @Scope( "prototype" )
@@ -46,9 +44,7 @@ public class SchedulerAction
     extends AbstractActionSupport
     implements SecureAction
 {
-    /**
-     * plexus.requirement role="org.apache.archiva.scheduler.ArchivaTaskScheduler" role-hint="repository"
-     */
+
     @Inject
     @Named( value = "archivaTaskScheduler#repository" )
     private RepositoryArchivaTaskScheduler repositoryTaskScheduler;
index 87e2eb901a297a78c250bae1c764bd176e65868a..4f471edf09bf23db082b5a05d7efa22555f37c5d 100644 (file)
@@ -20,8 +20,8 @@ package org.apache.maven.archiva.web.action.admin;
  */
 
 import org.apache.archiva.repository.scanner.RepositoryScanner;
+import org.apache.archiva.security.common.ArchivaRoleConstants;
 import org.apache.commons.lang.StringUtils;
-import org.apache.archiva.security.ArchivaRoleConstants;
 import org.apache.maven.archiva.web.action.AbstractActionSupport;
 import org.codehaus.plexus.cache.Cache;
 import org.codehaus.plexus.redback.rbac.Resource;
@@ -40,7 +40,6 @@ import java.util.Map;
  * Shows system status information for the administrator.
  *
  * @version $Id$
- *          plexus.component role="com.opensymphony.xwork2.Action" role-hint="systemStatus" instantiation-strategy="per-lookup"
  */
 @Controller( "systemStatus" )
 @Scope( "prototype" )
index c1114977a85d41c8cd653e268e3ac574399e899e..e0af7ca2e7fa6bd2b9378d5749825b9e9fde4233 100644 (file)
@@ -20,11 +20,11 @@ package org.apache.maven.archiva.web.action.admin.appearance;
  */
 
 import com.opensymphony.xwork2.Validateable;
+import org.apache.archiva.security.common.ArchivaRoleConstants;
 import org.apache.commons.lang.StringUtils;
 import org.apache.maven.archiva.configuration.Configuration;
 import org.apache.maven.archiva.configuration.IndeterminateConfigurationException;
 import org.apache.maven.archiva.configuration.OrganisationInformation;
-import org.apache.archiva.security.ArchivaRoleConstants;
 import org.codehaus.plexus.redback.rbac.Resource;
 import org.codehaus.plexus.registry.RegistryException;
 import org.codehaus.redback.integration.interceptor.SecureAction;
@@ -35,9 +35,6 @@ import org.springframework.stereotype.Controller;
 
 /**
  * @version $Id: ConfigurationAction.java 480950 2006-11-30 14:58:35Z evenisse $
- * plexus.component role="com.opensymphony.xwork2.Action"
- * role-hint="editOrganisationInfo"
- * instantiation-strategy="per-lookup"
  */
 @Controller( "editOrganisationInfo" )
 @Scope( "prototype" )
index 70632e31105373ae51a9ee203db71f10110c72fc..979c6b88fd0766dfc4d68cd5b43a51a70ff14a95 100644 (file)
@@ -19,6 +19,7 @@ package org.apache.maven.archiva.web.action.admin.connectors.proxy;
  * under the License.
  */
 
+import org.apache.archiva.security.common.ArchivaRoleConstants;
 import org.apache.commons.collections.CollectionUtils;
 import org.apache.commons.collections.functors.NotPredicate;
 import org.apache.commons.lang.StringUtils;
@@ -27,7 +28,6 @@ import org.apache.maven.archiva.configuration.Configuration;
 import org.apache.maven.archiva.configuration.IndeterminateConfigurationException;
 import org.apache.maven.archiva.configuration.ProxyConnectorConfiguration;
 import org.apache.maven.archiva.configuration.functors.ProxyConnectorSelectionPredicate;
-import org.apache.archiva.security.ArchivaRoleConstants;
 import org.apache.maven.archiva.web.action.AbstractActionSupport;
 import org.codehaus.plexus.redback.rbac.Resource;
 import org.codehaus.plexus.registry.RegistryException;
@@ -51,9 +51,6 @@ public abstract class AbstractProxyConnectorAction
 {
     public static final String DIRECT_CONNECTION = "(direct connection)";
 
-    /**
-     * plexus.requirement
-     */
     @Inject
     protected ArchivaConfiguration archivaConfiguration;
 
index 1269ae720a129c2136201372f5e8b045de261752..381faf29c360dfcf9e4fd33f1586ad57f3acf820 100644 (file)
@@ -20,10 +20,10 @@ package org.apache.maven.archiva.web.action.admin.legacy;
  */\r
 \r
 import com.opensymphony.xwork2.Preparable;\r
+import org.apache.archiva.security.common.ArchivaRoleConstants;\r
 import org.apache.maven.archiva.configuration.ArchivaConfiguration;\r
 import org.apache.maven.archiva.configuration.Configuration;\r
 import org.apache.maven.archiva.configuration.LegacyArtifactPath;\r
-import org.apache.archiva.security.ArchivaRoleConstants;\r
 import org.apache.maven.archiva.web.action.AbstractActionSupport;\r
 import org.apache.archiva.web.util.ContextUtils;\r
 import org.apache.struts2.interceptor.ServletRequestAware;\r
@@ -43,7 +43,6 @@ import java.util.List;
  * Shows the LegacyArtifactPath Tab for the administrator.\r
  *\r
  * @since 1.1\r
- *        plexus.component role="com.opensymphony.xwork2.Action" role-hint="legacyArtifactPathAction" instantiation-strategy="per-lookup"\r
  */\r
 @Controller( "legacyArtifactPathAction" )\r
 @Scope( "prototype" )\r
@@ -51,9 +50,7 @@ public class LegacyArtifactPathAction
     extends AbstractActionSupport\r
     implements SecureAction, ServletRequestAware, Preparable\r
 {\r
-    /**\r
-     * plexus.requirement\r
-     */\r
+\r
     @Inject\r
     private ArchivaConfiguration archivaConfiguration;\r
 \r
index b8b2e2093cffe15ece016992844fe1f17bcf87b1..fdcffe7018aff1e12b6738f18ebd08c3c69da03a 100644 (file)
@@ -21,6 +21,7 @@ package org.apache.maven.archiva.web.action.admin.networkproxies;
 
 import com.opensymphony.xwork2.Preparable;
 import com.opensymphony.xwork2.Validateable;
+import org.apache.archiva.security.common.ArchivaRoleConstants;
 import org.apache.commons.collections.CollectionUtils;
 import org.apache.commons.collections.functors.NotPredicate;
 import org.apache.commons.lang.StringUtils;
@@ -29,7 +30,6 @@ import org.apache.maven.archiva.configuration.Configuration;
 import org.apache.maven.archiva.configuration.IndeterminateConfigurationException;
 import org.apache.maven.archiva.configuration.NetworkProxyConfiguration;
 import org.apache.maven.archiva.configuration.functors.NetworkProxySelectionPredicate;
-import org.apache.archiva.security.ArchivaRoleConstants;
 import org.apache.maven.archiva.web.action.AbstractActionSupport;
 import org.codehaus.plexus.redback.rbac.Resource;
 import org.codehaus.plexus.registry.RegistryException;
@@ -45,7 +45,6 @@ import javax.inject.Inject;
  * ConfigureNetworkProxyAction
  *
  * @version $Id$
- *          plexus.component role="com.opensymphony.xwork2.Action" role-hint="configureNetworkProxyAction" instantiation-strategy="per-lookup"
  */
 @Controller( "configureNetworkProxyAction" )
 @Scope( "prototype" )
@@ -53,9 +52,7 @@ public class ConfigureNetworkProxyAction
     extends AbstractActionSupport
     implements SecureAction, Preparable, Validateable
 {
-    /**
-     * plexus.requirement
-     */
+
     @Inject
     private ArchivaConfiguration archivaConfiguration;
 
index 888edb846c46ac849cdc702540219bf805b9e413..0215120d8d099a3d9a686657ed784383c497be97 100644 (file)
@@ -20,9 +20,9 @@ package org.apache.maven.archiva.web.action.admin.networkproxies;
  */
 
 import com.opensymphony.xwork2.Preparable;
+import org.apache.archiva.security.common.ArchivaRoleConstants;
 import org.apache.maven.archiva.configuration.ArchivaConfiguration;
 import org.apache.maven.archiva.configuration.NetworkProxyConfiguration;
-import org.apache.archiva.security.ArchivaRoleConstants;
 import org.apache.maven.archiva.web.action.AbstractActionSupport;
 import org.codehaus.plexus.redback.rbac.Resource;
 import org.codehaus.redback.integration.interceptor.SecureAction;
@@ -38,8 +38,6 @@ import java.util.List;
  * NetworkProxiesAction
  *
  * @version $Id$
- *          <p/>
- *          plexus.component role="com.opensymphony.xwork2.Action" role-hint="networkProxiesAction" instantiation-strategy="per-lookup"
  */
 @Controller( "networkProxiesAction" )
 @Scope( "prototype" )
@@ -47,9 +45,7 @@ public class NetworkProxiesAction
     extends AbstractActionSupport
     implements Preparable, SecureAction
 {
-    /**
-     * plexus.requirement
-     */
+
     @Inject
     private ArchivaConfiguration configuration;
 
index d2d6df3324d024f78bafdfd7a7077f9e6c389b3d..43b3f9051a13a0019f71c24bf8bcc592cad02138 100644 (file)
@@ -22,7 +22,7 @@ package org.apache.maven.archiva.web.action.admin.repositories;
 import org.apache.archiva.admin.repository.RepositoryCommonValidator;
 import org.apache.archiva.admin.repository.managed.ManagedRepositoryAdmin;
 import org.apache.archiva.audit.Auditable;
-import org.apache.archiva.security.ArchivaRoleConstants;
+import org.apache.archiva.security.common.ArchivaRoleConstants;
 import org.apache.maven.archiva.configuration.ArchivaConfiguration;
 import org.apache.maven.archiva.configuration.Configuration;
 import org.apache.maven.archiva.configuration.IndeterminateConfigurationException;
@@ -52,9 +52,7 @@ public abstract class AbstractRepositoriesAdminAction
     extends AbstractActionSupport
     implements SecureAction, Auditable
 {
-    /**
-     * plexus.requirement
-     */
+
     @Inject
     protected ArchivaConfiguration archivaConfiguration;
 
index 861deb37b77ad50b9b9eb99864bc6314c0c743e4..b2cc646189796be461d99d2fd9dc1bf76fe4cbd8 100644 (file)
@@ -25,12 +25,12 @@ import org.apache.archiva.metadata.repository.MetadataRepositoryException;
 import org.apache.archiva.metadata.repository.RepositorySession;
 import org.apache.archiva.metadata.repository.stats.RepositoryStatistics;
 import org.apache.archiva.metadata.repository.stats.RepositoryStatisticsManager;
+import org.apache.archiva.security.common.ArchivaRoleConstants;
 import org.apache.maven.archiva.configuration.ArchivaConfiguration;
 import org.apache.maven.archiva.configuration.Configuration;
 import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration;
 import org.apache.maven.archiva.configuration.RemoteRepositoryConfiguration;
 import org.apache.maven.archiva.configuration.functors.RepositoryConfigurationComparator;
-import org.apache.archiva.security.ArchivaRoleConstants;
 import org.apache.maven.archiva.web.action.AbstractActionSupport;
 import org.apache.archiva.web.util.ContextUtils;
 import org.apache.struts2.interceptor.ServletRequestAware;
@@ -53,7 +53,6 @@ import javax.servlet.http.HttpServletRequest;
  * Shows the Repositories Tab for the administrator.
  *
  * @version $Id$
- *          plexus.component role="com.opensymphony.xwork2.Action" role-hint="repositoriesAction" instantiation-strategy="per-lookup"
  */
 @Controller( "repositoriesAction" )
 @Scope( "prototype" )
@@ -61,9 +60,7 @@ public class RepositoriesAction
     extends AbstractActionSupport
     implements SecureAction, ServletRequestAware, Preparable
 {
-    /**
-     * plexus.requirement
-     */
+
     @Inject
     private ArchivaConfiguration archivaConfiguration;
 
@@ -80,9 +77,7 @@ public class RepositoriesAction
      */
     private String baseUrl;
 
-    /**
-     * plexus.requirement
-     */
+
     @Inject
     private RepositoryStatisticsManager repositoryStatisticsManager;
 
index db484708722c56cb34b3d960b30b251451e123c1..9079034d38fc664120f7e0d747b932018e8ce43a 100644 (file)
@@ -24,6 +24,7 @@ import com.opensymphony.xwork2.Validateable;
 import org.apache.archiva.audit.AuditEvent;
 import org.apache.archiva.audit.Auditable;
 import org.apache.archiva.repository.scanner.RepositoryContentConsumers;
+import org.apache.archiva.security.common.ArchivaRoleConstants;
 import org.apache.commons.collections.CollectionUtils;
 import org.apache.commons.lang.StringUtils;
 import org.apache.maven.archiva.configuration.ArchivaConfiguration;
@@ -33,7 +34,6 @@ import org.apache.maven.archiva.configuration.IndeterminateConfigurationExceptio
 import org.apache.maven.archiva.configuration.RepositoryScanningConfiguration;
 import org.apache.maven.archiva.configuration.functors.FiletypeSelectionPredicate;
 import org.apache.maven.archiva.configuration.functors.FiletypeToMapClosure;
-import org.apache.archiva.security.ArchivaRoleConstants;
 import org.apache.maven.archiva.web.action.AbstractActionSupport;
 import org.codehaus.plexus.redback.rbac.Resource;
 import org.codehaus.plexus.registry.RegistryException;
@@ -53,7 +53,6 @@ import java.util.Map;
  * RepositoryScanningAction
  *
  * @version $Id$
- *          plexus.component role="com.opensymphony.xwork2.Action" role-hint="repositoryScanningAction" instantiation-strategy="per-lookup"
  */
 @Controller( "repositoryScanningAction" )
 @Scope( "prototype" )
@@ -61,15 +60,10 @@ public class RepositoryScanningAction
     extends AbstractActionSupport
     implements Preparable, Validateable, SecureAction, Auditable
 {
-    /**
-     * plexus.requirement
-     */
+
     @Inject
     private ArchivaConfiguration archivaConfiguration;
 
-    /**
-     * plexus.requirement
-     */
     @Inject
     private RepositoryContentConsumers repoconsumerUtil;
 
index 981ad900e53759bc2487f530e59a5634377b849b..e950ef6f20635fc0d8d2e36eac06b99cdc617844 100644 (file)
@@ -26,11 +26,11 @@ import org.apache.archiva.metadata.repository.RepositorySession;
 import org.apache.archiva.metadata.repository.stats.RepositoryStatistics;
 import org.apache.archiva.metadata.repository.stats.RepositoryStatisticsManager;
 import org.apache.archiva.reports.RepositoryProblemFacet;
+import org.apache.archiva.security.common.ArchivaRoleConstants;
 import org.apache.commons.io.IOUtils;
 import org.apache.commons.lang.StringUtils;
 import org.apache.commons.lang.time.DateUtils;
 import org.apache.maven.archiva.configuration.ArchivaConfiguration;
-import org.apache.archiva.security.ArchivaRoleConstants;
 import org.apache.maven.archiva.web.action.AbstractRepositoryBasedAction;
 import org.codehaus.plexus.redback.rbac.Resource;
 import org.codehaus.redback.integration.interceptor.SecureAction;
@@ -77,15 +77,9 @@ public class GenerateReportAction
 
     private Logger log = LoggerFactory.getLogger( GenerateReportAction.class );
 
-    /**
-     * plexus.requirement
-     */
     @Inject
     private ArchivaConfiguration archivaConfiguration;
 
-    /**
-     * plexus.requirement
-     */
     @Inject
     private RepositoryStatisticsManager repositoryStatisticsManager;