package move to o.a.a.r module redback-rbac-cached
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1310903 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
91af10462c
commit
8d2aa42a65
|
@ -23,7 +23,7 @@
|
||||||
<component>
|
<component>
|
||||||
<role>org.apache.archiva.redback.rbac.RBACManager</role>
|
<role>org.apache.archiva.redback.rbac.RBACManager</role>
|
||||||
<role-hint>cached</role-hint>
|
<role-hint>cached</role-hint>
|
||||||
<implementation>org.codehaus.plexus.redback.rbac.cached.CachedRbacManager</implementation>
|
<implementation>org.apache.archiva.redback.rbac.cached.CachedRbacManager</implementation>
|
||||||
<description>CachedRbacManager is a wrapped RBACManager with caching.</description>
|
<description>CachedRbacManager is a wrapped RBACManager with caching.</description>
|
||||||
<requirements>
|
<requirements>
|
||||||
<requirement>
|
<requirement>
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
<component>
|
<component>
|
||||||
<role>org.apache.archiva.redback.rbac.RBACManager</role>
|
<role>org.apache.archiva.redback.rbac.RBACManager</role>
|
||||||
<role-hint>cached</role-hint>
|
<role-hint>cached</role-hint>
|
||||||
<implementation>org.codehaus.plexus.redback.rbac.cached.CachedRbacManager</implementation>
|
<implementation>org.apache.archiva.redback.rbac.cached.CachedRbacManager</implementation>
|
||||||
<description>CachedRbacManager is a wrapped RBACManager with caching.</description>
|
<description>CachedRbacManager is a wrapped RBACManager with caching.</description>
|
||||||
<requirements>
|
<requirements>
|
||||||
<requirement>
|
<requirement>
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
<property name="password" value=""/>
|
<property name="password" value=""/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean name="rBACManager#cached" class="org.codehaus.plexus.redback.rbac.cached.CachedRbacManager">
|
<bean name="rBACManager#cached" class="org.apache.archiva.redback.rbac.cached.CachedRbacManager">
|
||||||
<property name="rbacImpl" ref="rBACManager#memory"/>
|
<property name="rbacImpl" ref="rBACManager#memory"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
<component>
|
<component>
|
||||||
<role>org.apache.archiva.redback.rbac.RBACManager</role>
|
<role>org.apache.archiva.redback.rbac.RBACManager</role>
|
||||||
<role-hint>cached</role-hint>
|
<role-hint>cached</role-hint>
|
||||||
<implementation>org.codehaus.plexus.redback.rbac.cached.CachedRbacManager</implementation>
|
<implementation>org.apache.archiva.redback.rbac.cached.CachedRbacManager</implementation>
|
||||||
<description>CachedRbacManager is a wrapped RBACManager with caching.</description>
|
<description>CachedRbacManager is a wrapped RBACManager with caching.</description>
|
||||||
<requirements>
|
<requirements>
|
||||||
<requirement>
|
<requirement>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.codehaus.plexus.redback.rbac.cached;
|
package org.apache.archiva.redback.rbac.cached;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
<context:annotation-config />
|
<context:annotation-config />
|
||||||
<context:component-scan
|
<context:component-scan
|
||||||
base-package="org.codehaus.plexus.redback.rbac.cached"/>
|
base-package="org.apache.archiva.redback.rbac.cached"/>
|
||||||
|
|
||||||
<bean name="cache#operations" class="org.codehaus.plexus.cache.ehcache.EhcacheCache"
|
<bean name="cache#operations" class="org.codehaus.plexus.cache.ehcache.EhcacheCache"
|
||||||
init-method="initialize">
|
init-method="initialize">
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.codehaus.plexus.redback.rbac.cached;
|
package org.apache.archiva.redback.rbac.cached;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
@ -20,6 +20,7 @@ package org.codehaus.plexus.redback.rbac.cached;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import org.apache.archiva.redback.rbac.RBACManager;
|
import org.apache.archiva.redback.rbac.RBACManager;
|
||||||
|
import org.apache.archiva.redback.rbac.cached.CachedRbacManager;
|
||||||
import org.codehaus.plexus.redback.tests.AbstractRbacManagerPerformanceTestCase;
|
import org.codehaus.plexus.redback.tests.AbstractRbacManagerPerformanceTestCase;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.codehaus.plexus.redback.rbac.cached;
|
package org.apache.archiva.redback.rbac.cached;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
@ -21,6 +21,7 @@ package org.codehaus.plexus.redback.rbac.cached;
|
||||||
|
|
||||||
import net.sf.ehcache.CacheManager;
|
import net.sf.ehcache.CacheManager;
|
||||||
import org.apache.archiva.redback.rbac.RBACManager;
|
import org.apache.archiva.redback.rbac.RBACManager;
|
||||||
|
import org.apache.archiva.redback.rbac.cached.CachedRbacManager;
|
||||||
import org.codehaus.plexus.redback.tests.AbstractRbacManagerTestCase;
|
import org.codehaus.plexus.redback.tests.AbstractRbacManagerTestCase;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
|
|
@ -20,11 +20,8 @@
|
||||||
-->
|
-->
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xmlns:context="http://www.springframework.org/schema/context"
|
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||||
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"
|
||||||
http://www.springframework.org/schema/context
|
|
||||||
http://www.springframework.org/schema/context/spring-context-3.0.xsd"
|
|
||||||
default-lazy-init="false">
|
default-lazy-init="false">
|
||||||
|
|
||||||
<bean name="jdoFactory#users" class="org.codehaus.plexus.jdo.DefaultConfigurableJdoFactory">
|
<bean name="jdoFactory#users" class="org.codehaus.plexus.jdo.DefaultConfigurableJdoFactory">
|
||||||
|
@ -50,7 +47,7 @@
|
||||||
|
|
||||||
<alias name="commons-configuration" alias="test-conf"/>
|
<alias name="commons-configuration" alias="test-conf"/>
|
||||||
|
|
||||||
<bean name= "rBACManager#cached" class="org.codehaus.plexus.redback.rbac.cached.CachedRbacManager">
|
<bean name= "rBACManager#cached" class="org.apache.archiva.redback.rbac.cached.CachedRbacManager">
|
||||||
<property name="rbacImpl" ref="rBACManager#memory"/>
|
<property name="rbacImpl" ref="rBACManager#memory"/>
|
||||||
<property name="effectiveRoleSetCache" ref="cache#effectiveRoleSet"/>
|
<property name="effectiveRoleSetCache" ref="cache#effectiveRoleSet"/>
|
||||||
<property name="operationsCache" ref="cache#operations"/>
|
<property name="operationsCache" ref="cache#operations"/>
|
||||||
|
|
Loading…
Reference in New Issue