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;
* 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;
* ConfigurationSynchronization
*
* @version $Id$
- * plexus.component role="org.apache.archiva.web.startup.SecuritySynchronization"
- * role-hint="default"
*/
@Service
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;
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;
/**
* Configures the application.
- * <p/>
- * plexus.component role="com.opensymphony.xwork2.Action" role-hint="schedulerAction" instantiation-strategy="per-lookup"
*/
@Controller( "schedulerAction" )
@Scope( "prototype" )
extends AbstractActionSupport
implements SecureAction
{
- /**
- * plexus.requirement role="org.apache.archiva.scheduler.ArchivaTaskScheduler" role-hint="repository"
- */
+
@Inject
@Named( value = "archivaTaskScheduler#repository" )
private RepositoryArchivaTaskScheduler repositoryTaskScheduler;
*/
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;
* 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" )
*/
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;
/**
* @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" )
* 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;
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;
{
public static final String DIRECT_CONNECTION = "(direct connection)";
- /**
- * plexus.requirement
- */
@Inject
protected ArchivaConfiguration archivaConfiguration;
*/\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
* 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
extends AbstractActionSupport\r
implements SecureAction, ServletRequestAware, Preparable\r
{\r
- /**\r
- * plexus.requirement\r
- */\r
+\r
@Inject\r
private ArchivaConfiguration archivaConfiguration;\r
\r
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;
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;
* ConfigureNetworkProxyAction
*
* @version $Id$
- * plexus.component role="com.opensymphony.xwork2.Action" role-hint="configureNetworkProxyAction" instantiation-strategy="per-lookup"
*/
@Controller( "configureNetworkProxyAction" )
@Scope( "prototype" )
extends AbstractActionSupport
implements SecureAction, Preparable, Validateable
{
- /**
- * plexus.requirement
- */
+
@Inject
private ArchivaConfiguration archivaConfiguration;
*/
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;
* NetworkProxiesAction
*
* @version $Id$
- * <p/>
- * plexus.component role="com.opensymphony.xwork2.Action" role-hint="networkProxiesAction" instantiation-strategy="per-lookup"
*/
@Controller( "networkProxiesAction" )
@Scope( "prototype" )
extends AbstractActionSupport
implements Preparable, SecureAction
{
- /**
- * plexus.requirement
- */
+
@Inject
private ArchivaConfiguration configuration;
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;
extends AbstractActionSupport
implements SecureAction, Auditable
{
- /**
- * plexus.requirement
- */
+
@Inject
protected ArchivaConfiguration archivaConfiguration;
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;
* 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" )
extends AbstractActionSupport
implements SecureAction, ServletRequestAware, Preparable
{
- /**
- * plexus.requirement
- */
+
@Inject
private ArchivaConfiguration archivaConfiguration;
*/
private String baseUrl;
- /**
- * plexus.requirement
- */
+
@Inject
private RepositoryStatisticsManager repositoryStatisticsManager;
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;
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;
* RepositoryScanningAction
*
* @version $Id$
- * plexus.component role="com.opensymphony.xwork2.Action" role-hint="repositoryScanningAction" instantiation-strategy="per-lookup"
*/
@Controller( "repositoryScanningAction" )
@Scope( "prototype" )
extends AbstractActionSupport
implements Preparable, Validateable, SecureAction, Auditable
{
- /**
- * plexus.requirement
- */
+
@Inject
private ArchivaConfiguration archivaConfiguration;
- /**
- * plexus.requirement
- */
@Inject
private RepositoryContentConsumers repoconsumerUtil;
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;
private Logger log = LoggerFactory.getLogger( GenerateReportAction.class );
- /**
- * plexus.requirement
- */
@Inject
private ArchivaConfiguration archivaConfiguration;
- /**
- * plexus.requirement
- */
@Inject
private RepositoryStatisticsManager repositoryStatisticsManager;