package move to o.a.a.r module redback-rback-model
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1310899 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
12919d4171
commit
d8b7884675
|
@ -21,8 +21,8 @@ package org.apache.archiva.redback.management;
|
|||
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
import org.apache.archiva.redback.keys.KeyManager;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
|
||||
import javax.xml.stream.XMLStreamException;
|
||||
import java.io.File;
|
||||
|
|
|
@ -36,18 +36,18 @@ import javax.xml.stream.XMLStreamException;
|
|||
|
||||
import org.apache.archiva.redback.keys.AuthenticationKey;
|
||||
import org.apache.archiva.redback.keys.KeyManager;
|
||||
import org.apache.archiva.redback.rbac.Operation;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
import org.apache.archiva.redback.keys.KeyManagerException;
|
||||
import org.codehaus.plexus.redback.keys.jdo.AuthenticationKeyDatabase;
|
||||
import org.codehaus.plexus.redback.keys.jdo.io.stax.RedbackKeyManagementJdoStaxReader;
|
||||
import org.codehaus.plexus.redback.keys.jdo.io.stax.RedbackKeyManagementJdoStaxWriter;
|
||||
import org.codehaus.plexus.redback.rbac.Operation;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.codehaus.plexus.redback.rbac.jdo.RbacDatabase;
|
||||
import org.codehaus.plexus.redback.rbac.jdo.io.stax.RbacJdoModelStaxReader;
|
||||
import org.codehaus.plexus.redback.rbac.jdo.io.stax.RbacJdoModelStaxWriter;
|
||||
|
|
|
@ -23,14 +23,14 @@ import junit.framework.TestCase;
|
|||
import org.apache.archiva.redback.common.jdo.UserConfigurableJdoFactory;
|
||||
import org.apache.archiva.redback.keys.AuthenticationKey;
|
||||
import org.apache.archiva.redback.keys.KeyManager;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
import org.apache.commons.lang.SystemUtils;
|
||||
import org.apache.archiva.redback.keys.KeyManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.tests.utils.RBACDefaults;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
import org.codehaus.plexus.util.FileUtils;
|
||||
|
|
|
@ -19,13 +19,13 @@ package org.codehaus.redback.integration.checks.security;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.users.UserNotFoundException;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.archiva.redback.authentication.PasswordBasedAuthenticationDataSource;
|
||||
import org.apache.archiva.redback.configuration.UserConfiguration;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.role.RoleManager;
|
||||
import org.codehaus.plexus.redback.role.RoleManagerException;
|
||||
import org.codehaus.plexus.redback.system.SecuritySession;
|
||||
|
|
|
@ -19,10 +19,10 @@ package org.codehaus.redback.integration.checks.security;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.users.UserNotFoundException;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.codehaus.plexus.redback.system.check.EnvironmentCheck;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.codehaus.redback.integration.interceptor;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
|
||||
/**
|
||||
* SecureActionBundle:
|
||||
|
|
|
@ -19,8 +19,8 @@ package org.codehaus.redback.integration.model;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
|
||||
/**
|
||||
* EditRoleDetails - Existing user Role Details.
|
||||
|
|
|
@ -18,12 +18,12 @@ package org.codehaus.redback.integration.reports;
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
import org.apache.commons.lang.StringEscapeUtils;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.codehaus.plexus.redback.system.SecuritySystem;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
import org.codehaus.redback.integration.util.RoleSorter;
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.codehaus.redback.integration.util;
|
|||
|
||||
import java.util.Comparator;
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Operation;
|
||||
import org.apache.archiva.redback.rbac.Operation;
|
||||
|
||||
/**
|
||||
* OperationSorter
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.codehaus.redback.integration.util;
|
|||
|
||||
import java.util.Comparator;
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
|
||||
/**
|
||||
* PermissionSorter
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.codehaus.redback.integration.util;
|
|||
|
||||
import java.util.Comparator;
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
|
||||
/**
|
||||
* ResourceSorter
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.codehaus.redback.integration.util;
|
|||
|
||||
import java.util.Comparator;
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
|
||||
/**
|
||||
* RoleSorter
|
||||
|
|
|
@ -21,7 +21,7 @@ package org.codehaus.redback.integration.util;
|
|||
|
||||
import java.util.Comparator;
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.TemplatedRole;
|
||||
import org.apache.archiva.redback.rbac.TemplatedRole;
|
||||
|
||||
/**
|
||||
* TemplatedRoleSorter
|
||||
|
|
|
@ -25,12 +25,12 @@ import java.util.Set;
|
|||
|
||||
import org.apache.archiva.redback.policy.AccountLockedException;
|
||||
import org.apache.archiva.redback.policy.UserSecurityPolicy;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
import org.apache.archiva.redback.users.UserNotFoundException;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
import org.jsecurity.authc.AuthenticationException;
|
||||
import org.jsecurity.authc.AuthenticationInfo;
|
||||
|
|
|
@ -21,13 +21,13 @@ package org.codehaus.redback.jsecurity;
|
|||
|
||||
import junit.framework.TestCase;
|
||||
import org.apache.archiva.redback.policy.UserSecurityPolicy;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
import org.codehaus.plexus.redback.rbac.Operation;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.Operation;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
import org.jsecurity.authc.IncorrectCredentialsException;
|
||||
import org.jsecurity.authc.UsernamePasswordToken;
|
||||
|
|
|
@ -40,7 +40,7 @@ public class Operation
|
|||
// no op
|
||||
}
|
||||
|
||||
public Operation( org.codehaus.plexus.redback.rbac.Operation operation )
|
||||
public Operation( org.apache.archiva.redback.rbac.Operation operation )
|
||||
{
|
||||
this.name = operation.getName();
|
||||
this.description = operation.getDescription();
|
||||
|
|
|
@ -44,7 +44,7 @@ public class Permission
|
|||
// no op
|
||||
}
|
||||
|
||||
public Permission( org.codehaus.plexus.redback.rbac.Permission permission )
|
||||
public Permission( org.apache.archiva.redback.rbac.Permission permission )
|
||||
{
|
||||
this.name = permission.getName();
|
||||
this.description = permission.getDescription();
|
||||
|
|
|
@ -40,7 +40,7 @@ public class Resource
|
|||
// no op
|
||||
}
|
||||
|
||||
public Resource( org.codehaus.plexus.redback.rbac.Resource resource )
|
||||
public Resource( org.apache.archiva.redback.rbac.Resource resource )
|
||||
{
|
||||
this.identifier = resource.getIdentifier();
|
||||
this.pattern = resource.isPattern();
|
||||
|
|
|
@ -99,7 +99,7 @@ public class Role
|
|||
this.name = name;
|
||||
}
|
||||
|
||||
public Role( org.codehaus.plexus.redback.rbac.Role role )
|
||||
public Role( org.apache.archiva.redback.rbac.Role role )
|
||||
{
|
||||
this.name = role.getName();
|
||||
this.description = role.getDescription();
|
||||
|
@ -114,7 +114,7 @@ public class Role
|
|||
}
|
||||
else
|
||||
{
|
||||
for ( org.codehaus.plexus.redback.rbac.Permission p : role.getPermissions() )
|
||||
for ( org.apache.archiva.redback.rbac.Permission p : role.getPermissions() )
|
||||
{
|
||||
this.permissions.add( new Permission( p ) );
|
||||
}
|
||||
|
|
|
@ -18,15 +18,15 @@ package org.codehaus.redback.rest.services;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
import org.apache.archiva.redback.users.UserNotFoundException;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.codehaus.plexus.redback.role.RoleManager;
|
||||
import org.codehaus.plexus.redback.role.RoleManagerException;
|
||||
import org.codehaus.plexus.redback.role.model.ModelApplication;
|
||||
|
@ -248,12 +248,12 @@ public class DefaultRoleManagementService
|
|||
}
|
||||
try
|
||||
{
|
||||
List<org.codehaus.plexus.redback.rbac.Role> roles =
|
||||
List<org.apache.archiva.redback.rbac.Role> roles =
|
||||
filterAssignableRoles( rbacManager.getEffectivelyAssignedRoles( username ) );
|
||||
|
||||
List<Role> effectivelyAssignedRoles = new ArrayList<Role>( roles.size() );
|
||||
|
||||
for ( org.codehaus.plexus.redback.rbac.Role r : roles )
|
||||
for ( org.apache.archiva.redback.rbac.Role r : roles )
|
||||
{
|
||||
effectivelyAssignedRoles.add( new Role( r ) );
|
||||
}
|
||||
|
@ -293,7 +293,7 @@ public class DefaultRoleManagementService
|
|||
{
|
||||
try
|
||||
{
|
||||
List<org.codehaus.plexus.redback.rbac.Role> roles = rbacManager.getAllRoles();
|
||||
List<org.apache.archiva.redback.rbac.Role> roles = rbacManager.getAllRoles();
|
||||
|
||||
if ( roles == null )
|
||||
{
|
||||
|
@ -304,7 +304,7 @@ public class DefaultRoleManagementService
|
|||
|
||||
List<Role> res = new ArrayList<Role>( roles.size() );
|
||||
|
||||
for ( org.codehaus.plexus.redback.rbac.Role r : roles )
|
||||
for ( org.apache.archiva.redback.rbac.Role r : roles )
|
||||
{
|
||||
res.add( new Role( r ) );
|
||||
}
|
||||
|
@ -322,7 +322,7 @@ public class DefaultRoleManagementService
|
|||
{
|
||||
try
|
||||
{
|
||||
List<org.codehaus.plexus.redback.rbac.Role> roles = rbacManager.getAllRoles();
|
||||
List<org.apache.archiva.redback.rbac.Role> roles = rbacManager.getAllRoles();
|
||||
|
||||
if ( roles == null )
|
||||
{
|
||||
|
@ -333,7 +333,7 @@ public class DefaultRoleManagementService
|
|||
|
||||
List<Role> res = new ArrayList<Role>( roles.size() );
|
||||
|
||||
for ( org.codehaus.plexus.redback.rbac.Role r : roles )
|
||||
for ( org.apache.archiva.redback.rbac.Role r : roles )
|
||||
{
|
||||
res.add( getRole( r.getName() ) );
|
||||
}
|
||||
|
@ -346,12 +346,12 @@ public class DefaultRoleManagementService
|
|||
}
|
||||
}
|
||||
|
||||
private List<org.codehaus.plexus.redback.rbac.Role> filterAssignableRoles(
|
||||
Collection<org.codehaus.plexus.redback.rbac.Role> roles )
|
||||
private List<org.apache.archiva.redback.rbac.Role> filterAssignableRoles(
|
||||
Collection<org.apache.archiva.redback.rbac.Role> roles )
|
||||
{
|
||||
List<org.codehaus.plexus.redback.rbac.Role> assignableRoles =
|
||||
new ArrayList<org.codehaus.plexus.redback.rbac.Role>( roles.size() );
|
||||
for ( org.codehaus.plexus.redback.rbac.Role r : roles )
|
||||
List<org.apache.archiva.redback.rbac.Role> assignableRoles =
|
||||
new ArrayList<org.apache.archiva.redback.rbac.Role>( roles.size() );
|
||||
for ( org.apache.archiva.redback.rbac.Role r : roles )
|
||||
{
|
||||
if ( r.isAssignable() )
|
||||
{
|
||||
|
@ -366,10 +366,10 @@ public class DefaultRoleManagementService
|
|||
{
|
||||
try
|
||||
{
|
||||
org.codehaus.plexus.redback.rbac.Role rbacRole = rbacManager.getRole( roleName );
|
||||
org.apache.archiva.redback.rbac.Role rbacRole = rbacManager.getRole( roleName );
|
||||
Role role = new Role( rbacRole );
|
||||
|
||||
Map<String, org.codehaus.plexus.redback.rbac.Role> parentRoles = rbacManager.getParentRoles( rbacRole );
|
||||
Map<String, org.apache.archiva.redback.rbac.Role> parentRoles = rbacManager.getParentRoles( rbacRole );
|
||||
for ( String parentRoleName : parentRoles.keySet() )
|
||||
{
|
||||
role.getParentRoleNames().add( parentRoleName );
|
||||
|
@ -445,7 +445,7 @@ public class DefaultRoleManagementService
|
|||
{
|
||||
try
|
||||
{
|
||||
org.codehaus.plexus.redback.rbac.Role rbacRole = rbacManager.getRole( roleName );
|
||||
org.apache.archiva.redback.rbac.Role rbacRole = rbacManager.getRole( roleName );
|
||||
rbacRole.setDescription( description );
|
||||
rbacManager.saveRole( rbacRole );
|
||||
}
|
||||
|
@ -570,7 +570,7 @@ public class DefaultRoleManagementService
|
|||
rbacManager.saveUserAssignment( assignment );
|
||||
}
|
||||
|
||||
List<org.codehaus.plexus.redback.rbac.Role> allRoles =
|
||||
List<org.apache.archiva.redback.rbac.Role> allRoles =
|
||||
filterRolesForCurrentUserAccess( rbacManager.getAllRoles() );
|
||||
|
||||
List<ModelApplication> modelApplications = roleManager.getModel().getApplications();
|
||||
|
@ -584,7 +584,7 @@ public class DefaultRoleManagementService
|
|||
applicationRoles.setDescription( modelApplication.getDescription() );
|
||||
applicationRoles.setName( modelApplication.getId() );
|
||||
|
||||
Collection<org.codehaus.plexus.redback.rbac.Role> appRoles =
|
||||
Collection<org.apache.archiva.redback.rbac.Role> appRoles =
|
||||
filterApplicationRoles( modelApplication, allRoles, modelApplication.getTemplates() );
|
||||
|
||||
applicationRoles.setGlobalRoles( toRoleNames( appRoles ) );
|
||||
|
@ -690,10 +690,10 @@ public class DefaultRoleManagementService
|
|||
// Internal methods
|
||||
//----------------------------------------------------------------
|
||||
|
||||
private org.codehaus.plexus.redback.rbac.Role isInList( String roleName,
|
||||
Collection<org.codehaus.plexus.redback.rbac.Role> roles )
|
||||
private org.apache.archiva.redback.rbac.Role isInList( String roleName,
|
||||
Collection<org.apache.archiva.redback.rbac.Role> roles )
|
||||
{
|
||||
for ( org.codehaus.plexus.redback.rbac.Role role : roles )
|
||||
for ( org.apache.archiva.redback.rbac.Role role : roles )
|
||||
{
|
||||
if ( roleName.equals( role.getName() ) )
|
||||
{
|
||||
|
@ -703,17 +703,17 @@ public class DefaultRoleManagementService
|
|||
return null;
|
||||
}
|
||||
|
||||
private Collection<org.codehaus.plexus.redback.rbac.Role> filterApplicationRoles( ModelApplication application,
|
||||
List<org.codehaus.plexus.redback.rbac.Role> allRoles,
|
||||
private Collection<org.apache.archiva.redback.rbac.Role> filterApplicationRoles( ModelApplication application,
|
||||
List<org.apache.archiva.redback.rbac.Role> allRoles,
|
||||
List<ModelTemplate> applicationTemplates )
|
||||
{
|
||||
Set<org.codehaus.plexus.redback.rbac.Role> applicationRoles =
|
||||
new HashSet<org.codehaus.plexus.redback.rbac.Role>();
|
||||
Set<org.apache.archiva.redback.rbac.Role> applicationRoles =
|
||||
new HashSet<org.apache.archiva.redback.rbac.Role>();
|
||||
List<ModelRole> roles = application.getRoles();
|
||||
|
||||
for ( ModelRole modelRole : roles )
|
||||
{
|
||||
org.codehaus.plexus.redback.rbac.Role r = isInList( modelRole.getName(), allRoles );
|
||||
org.apache.archiva.redback.rbac.Role r = isInList( modelRole.getName(), allRoles );
|
||||
if ( r != null )
|
||||
{
|
||||
applicationRoles.add( r );
|
||||
|
@ -724,7 +724,7 @@ public class DefaultRoleManagementService
|
|||
|
||||
for ( ModelTemplate modelTemplate : applicationTemplates )
|
||||
{
|
||||
for ( org.codehaus.plexus.redback.rbac.Role r : allRoles )
|
||||
for ( org.apache.archiva.redback.rbac.Role r : allRoles )
|
||||
{
|
||||
if ( StringUtils.startsWith( r.getName(),
|
||||
modelTemplate.getNamePrefix() + modelTemplate.getDelimiter() ) )
|
||||
|
@ -751,11 +751,11 @@ public class DefaultRoleManagementService
|
|||
return false;
|
||||
}
|
||||
|
||||
private List<String> toRoleNames( Collection<org.codehaus.plexus.redback.rbac.Role> roles )
|
||||
private List<String> toRoleNames( Collection<org.apache.archiva.redback.rbac.Role> roles )
|
||||
{
|
||||
List<String> names = new ArrayList<String>( roles.size() );
|
||||
|
||||
for ( org.codehaus.plexus.redback.rbac.Role r : roles )
|
||||
for ( org.apache.archiva.redback.rbac.Role r : roles )
|
||||
{
|
||||
names.add( r.getName() );
|
||||
}
|
||||
|
@ -788,12 +788,12 @@ public class DefaultRoleManagementService
|
|||
}
|
||||
|
||||
private Set<String> discoverResources( List<ModelTemplate> applicationTemplates,
|
||||
Collection<org.codehaus.plexus.redback.rbac.Role> roles )
|
||||
Collection<org.apache.archiva.redback.rbac.Role> roles )
|
||||
{
|
||||
Set<String> resources = new HashSet<String>();
|
||||
for ( ModelTemplate modelTemplate : applicationTemplates )
|
||||
{
|
||||
for ( org.codehaus.plexus.redback.rbac.Role role : roles )
|
||||
for ( org.apache.archiva.redback.rbac.Role role : roles )
|
||||
{
|
||||
String roleName = role.getName();
|
||||
if ( roleName.startsWith( modelTemplate.getNamePrefix() ) )
|
||||
|
@ -814,11 +814,11 @@ public class DefaultRoleManagementService
|
|||
*
|
||||
* @param roleList
|
||||
* @return
|
||||
* @throws org.codehaus.plexus.redback.rbac.RbacManagerException
|
||||
* @throws org.apache.archiva.redback.rbac.RbacManagerException
|
||||
*
|
||||
*/
|
||||
protected List<org.codehaus.plexus.redback.rbac.Role> filterRolesForCurrentUserAccess(
|
||||
List<org.codehaus.plexus.redback.rbac.Role> roleList )
|
||||
protected List<org.apache.archiva.redback.rbac.Role> filterRolesForCurrentUserAccess(
|
||||
List<org.apache.archiva.redback.rbac.Role> roleList )
|
||||
throws RedbackServiceException
|
||||
{
|
||||
RedbackRequestInformation redbackRequestInformation = RedbackAuthenticationThreadLocal.get();
|
||||
|
@ -829,8 +829,8 @@ public class DefaultRoleManagementService
|
|||
}
|
||||
String currentUser = redbackRequestInformation.getUser().getUsername();
|
||||
|
||||
List<org.codehaus.plexus.redback.rbac.Role> filteredRoleList =
|
||||
new ArrayList<org.codehaus.plexus.redback.rbac.Role>();
|
||||
List<org.apache.archiva.redback.rbac.Role> filteredRoleList =
|
||||
new ArrayList<org.apache.archiva.redback.rbac.Role>();
|
||||
try
|
||||
{
|
||||
Map<String, List<Permission>> assignedPermissionMap = rbacManager.getAssignedPermissionMap( currentUser );
|
||||
|
@ -864,7 +864,7 @@ public class DefaultRoleManagementService
|
|||
|
||||
// we should have a list of resourceGrants now, this will provide us with the information necessary to restrict
|
||||
// the role list
|
||||
for ( org.codehaus.plexus.redback.rbac.Role role : roleList )
|
||||
for ( org.apache.archiva.redback.rbac.Role role : roleList )
|
||||
{
|
||||
int delimiterIndex = role.getName().indexOf( delimiter );
|
||||
for ( String resourceIdentifier : resourceGrants )
|
||||
|
|
|
@ -24,6 +24,8 @@ import org.apache.archiva.redback.configuration.UserConfiguration;
|
|||
import org.apache.archiva.redback.keys.AuthenticationKey;
|
||||
import org.apache.archiva.redback.policy.AccountLockedException;
|
||||
import org.apache.archiva.redback.policy.MustChangePasswordException;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
import org.apache.archiva.redback.users.UserNotFoundException;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
@ -35,10 +37,8 @@ import org.apache.archiva.redback.keys.KeyManagerException;
|
|||
import org.apache.archiva.redback.keys.KeyNotFoundException;
|
||||
import org.apache.archiva.redback.policy.PasswordEncoder;
|
||||
import org.apache.archiva.redback.policy.UserSecurityPolicy;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacObjectNotFoundException;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.RbacObjectNotFoundException;
|
||||
import org.codehaus.plexus.redback.role.RoleManager;
|
||||
import org.codehaus.plexus.redback.role.RoleManagerException;
|
||||
import org.codehaus.plexus.redback.system.SecuritySystem;
|
||||
|
@ -733,11 +733,11 @@ public class DefaultUserService
|
|||
{
|
||||
try
|
||||
{
|
||||
Set<org.codehaus.plexus.redback.rbac.Permission> permissions =
|
||||
Set<org.apache.archiva.redback.rbac.Permission> permissions =
|
||||
rbacManager.getAssignedPermissions( userName );
|
||||
// FIXME return guest permissions !!
|
||||
List<Permission> userPermissions = new ArrayList<Permission>( permissions.size() );
|
||||
for ( org.codehaus.plexus.redback.rbac.Permission p : permissions )
|
||||
for ( org.apache.archiva.redback.rbac.Permission p : permissions )
|
||||
{
|
||||
Permission permission = new Permission();
|
||||
permission.setName( p.getName() );
|
||||
|
|
|
@ -19,9 +19,9 @@ package org.codehaus.redback.rest.services;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
import org.apache.archiva.redback.configuration.UserConfiguration;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.role.RoleManager;
|
||||
import org.codehaus.redback.rest.api.services.UserService;
|
||||
|
||||
|
|
|
@ -19,13 +19,13 @@ package org.codehaus.plexus.redback.struts2.action;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
import org.apache.archiva.redback.policy.PasswordRuleViolationException;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.system.SecuritySystem;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
import org.codehaus.redback.integration.model.UserCredentials;
|
||||
|
@ -170,7 +170,7 @@ public abstract class AbstractUserCredentialsAction
|
|||
*
|
||||
* @param roleList
|
||||
* @return
|
||||
* @throws org.codehaus.plexus.redback.rbac.RbacManagerException
|
||||
* @throws org.apache.archiva.redback.rbac.RbacManagerException
|
||||
*
|
||||
*/
|
||||
protected List<Role> filterRolesForCurrentUserAccess( List<Role> roleList )
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.codehaus.plexus.redback.struts2.action.admin;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.struts2.action.AbstractSecurityAction;
|
||||
import org.codehaus.redback.integration.interceptor.SecureActionBundle;
|
||||
import org.codehaus.redback.integration.interceptor.SecureActionException;
|
||||
|
|
|
@ -19,13 +19,12 @@ package org.codehaus.plexus.redback.struts2.action.admin;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
import org.apache.archiva.redback.users.UserNotFoundException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacObjectNotFoundException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.role.RoleManager;
|
||||
import org.codehaus.plexus.redback.role.model.ModelApplication;
|
||||
import org.codehaus.plexus.redback.struts2.action.AbstractUserCredentialsAction;
|
||||
|
@ -128,7 +127,7 @@ public class AssignmentsAction
|
|||
* Duplicate role assignment needs to be taken care of.
|
||||
*
|
||||
* @throws RbacManagerException
|
||||
* @throws RbacObjectNotFoundException
|
||||
* @throws org.apache.archiva.redback.rbac.RbacObjectNotFoundException
|
||||
*/
|
||||
@SuppressWarnings( "unchecked" )
|
||||
public String show()
|
||||
|
|
|
@ -20,11 +20,11 @@ package org.codehaus.plexus.redback.struts2.action.admin;
|
|||
*/
|
||||
|
||||
import com.opensymphony.xwork2.Preparable;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.archiva.redback.keys.KeyManager;
|
||||
import org.apache.archiva.redback.management.DataManagementTool;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.struts2.action.AbstractSecurityAction;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
import org.codehaus.redback.integration.interceptor.SecureAction;
|
||||
|
|
|
@ -19,13 +19,13 @@ package org.codehaus.plexus.redback.struts2.action.admin;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
import org.apache.commons.lang.StringEscapeUtils;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.codehaus.plexus.redback.struts2.action.AbstractUserCredentialsAction;
|
||||
import org.codehaus.plexus.redback.struts2.action.AuditEvent;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
|
|
|
@ -19,10 +19,10 @@ package org.codehaus.plexus.redback.struts2.action.admin;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Operation;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Operation;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.struts2.action.RedbackActionSupport;
|
||||
import org.codehaus.redback.integration.interceptor.SecureActionBundle;
|
||||
import org.codehaus.redback.integration.interceptor.SecureActionException;
|
||||
|
|
|
@ -19,11 +19,11 @@ package org.codehaus.plexus.redback.struts2.action.admin;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Operation;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Operation;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.struts2.action.RedbackActionSupport;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
import org.codehaus.redback.integration.interceptor.SecureActionBundle;
|
||||
|
|
|
@ -27,7 +27,7 @@ import javax.inject.Inject;
|
|||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.apache.struts2.ServletActionContext;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.struts2.action.AbstractSecurityAction;
|
||||
import org.codehaus.redback.integration.interceptor.SecureActionBundle;
|
||||
import org.codehaus.redback.integration.interceptor.SecureActionException;
|
||||
|
|
|
@ -19,9 +19,9 @@ package org.codehaus.plexus.redback.struts2.action.admin;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.struts2.action.AbstractSecurityAction;
|
||||
import org.codehaus.redback.integration.interceptor.SecureActionBundle;
|
||||
import org.codehaus.redback.integration.interceptor.SecureActionException;
|
||||
|
|
|
@ -19,11 +19,11 @@ package org.codehaus.plexus.redback.struts2.action.admin;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.struts2.action.AbstractSecurityAction;
|
||||
import org.codehaus.plexus.redback.struts2.action.AuditEvent;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.codehaus.plexus.redback.struts2.action.admin;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.role.RoleManager;
|
||||
import org.codehaus.plexus.redback.role.model.RedbackRoleModel;
|
||||
import org.codehaus.plexus.redback.struts2.action.AbstractSecurityAction;
|
||||
|
|
|
@ -19,9 +19,9 @@ package org.codehaus.plexus.redback.struts2.action.admin;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.struts2.action.AbstractUserCredentialsAction;
|
||||
import org.codehaus.redback.integration.interceptor.SecureActionBundle;
|
||||
import org.codehaus.redback.integration.interceptor.SecureActionException;
|
||||
|
|
|
@ -19,11 +19,11 @@ package org.codehaus.plexus.redback.struts2.action.admin;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.commons.beanutils.PropertyUtils;
|
||||
import org.apache.commons.lang.StringEscapeUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.struts2.action.AbstractSecurityAction;
|
||||
import org.codehaus.plexus.redback.system.SecuritySystem;
|
||||
import org.codehaus.plexus.registry.Registry;
|
||||
|
|
|
@ -22,7 +22,7 @@ package org.codehaus.plexus.redback.struts2.action.admin;
|
|||
import java.util.Arrays;
|
||||
|
||||
import org.apache.archiva.redback.policy.UserSecurityPolicy;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.struts2.action.AbstractUserCredentialsAction;
|
||||
import org.codehaus.plexus.redback.struts2.action.AuditEvent;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
|
|
|
@ -19,13 +19,13 @@ package org.codehaus.plexus.redback.struts2.action.admin;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.RbacObjectInvalidException;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacObjectInvalidException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacObjectNotFoundException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.RbacObjectNotFoundException;
|
||||
import org.codehaus.plexus.redback.struts2.action.AbstractSecurityAction;
|
||||
import org.codehaus.plexus.redback.struts2.action.AuditEvent;
|
||||
import org.codehaus.plexus.redback.struts2.action.CancellableAction;
|
||||
|
|
|
@ -20,14 +20,14 @@ package org.codehaus.plexus.redback.struts2.action.admin;
|
|||
*/
|
||||
|
||||
import org.apache.archiva.redback.policy.PasswordEncoder;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
import org.apache.archiva.redback.users.UserNotFoundException;
|
||||
import org.apache.commons.lang.StringEscapeUtils;
|
||||
import org.apache.archiva.redback.policy.PasswordRuleViolationException;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.struts2.action.AuditEvent;
|
||||
import org.codehaus.plexus.redback.struts2.action.CancellableAction;
|
||||
import org.codehaus.plexus.redback.system.DefaultSecuritySession;
|
||||
|
@ -70,7 +70,7 @@ public class UserEditAction
|
|||
private RBACManager rbacManager;
|
||||
|
||||
/**
|
||||
* A List of {@link org.codehaus.plexus.redback.rbac.Role} objects.
|
||||
* A List of {@link org.apache.archiva.redback.rbac.Role} objects.
|
||||
*/
|
||||
private List<Role> effectivelyAssignedRoles;
|
||||
|
||||
|
|
|
@ -19,15 +19,15 @@ package org.codehaus.plexus.redback.struts2.action.admin;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.RbacObjectNotFoundException;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
import org.apache.commons.lang.StringEscapeUtils;
|
||||
import org.apache.struts2.ServletActionContext;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacObjectNotFoundException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.struts2.action.AbstractSecurityAction;
|
||||
import org.codehaus.plexus.redback.system.SecuritySystem;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.codehaus.plexus.redback.struts2.model;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.role.model.ModelApplication;
|
||||
import org.codehaus.plexus.redback.role.model.ModelRole;
|
||||
import org.codehaus.plexus.redback.role.model.ModelTemplate;
|
||||
|
|
|
@ -22,14 +22,14 @@ package org.codehaus.plexus.redback.struts2.action.admin;
|
|||
import net.sf.ehcache.CacheManager;
|
||||
import org.apache.archiva.redback.policy.AccountLockedException;
|
||||
import org.apache.archiva.redback.policy.MustChangePasswordException;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.RbacObjectInvalidException;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
import org.apache.struts2.StrutsSpringTestCase;
|
||||
import org.apache.archiva.redback.authentication.AuthenticationException;
|
||||
import org.apache.archiva.redback.authentication.PasswordBasedAuthenticationDataSource;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacObjectInvalidException;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.codehaus.plexus.redback.role.RoleManager;
|
||||
import org.codehaus.plexus.redback.struts2.action.AbstractUserCredentialsAction;
|
||||
import org.codehaus.plexus.redback.system.SecuritySession;
|
||||
|
|
|
@ -23,12 +23,12 @@ import com.google.common.collect.Lists;
|
|||
import com.opensymphony.xwork2.Action;
|
||||
import com.opensymphony.xwork2.ActionProxy;
|
||||
import org.apache.archiva.redback.authentication.AuthenticationException;
|
||||
import org.apache.archiva.redback.rbac.RbacObjectInvalidException;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.users.UserNotFoundException;
|
||||
import org.apache.archiva.redback.authorization.AuthorizationResult;
|
||||
import org.apache.archiva.redback.policy.AccountLockedException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacObjectInvalidException;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.struts2.model.ApplicationRoleDetails;
|
||||
import org.codehaus.plexus.redback.struts2.model.ApplicationRoleDetails.RoleTableCell;
|
||||
import org.codehaus.redback.integration.interceptor.SecureActionBundle;
|
||||
|
|
|
@ -22,14 +22,14 @@ package org.codehaus.plexus.redback.struts2.action.admin;
|
|||
import com.opensymphony.xwork2.Action;
|
||||
import org.apache.archiva.redback.authentication.AuthenticationException;
|
||||
import org.apache.archiva.redback.policy.AccountLockedException;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.RbacObjectInvalidException;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
import org.apache.archiva.redback.users.UserNotFoundException;
|
||||
import org.apache.archiva.redback.authentication.AuthenticationResult;
|
||||
import org.apache.archiva.redback.policy.MustChangePasswordException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacObjectInvalidException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacObjectNotFoundException;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.RbacObjectNotFoundException;
|
||||
import org.codehaus.plexus.redback.system.DefaultSecuritySession;
|
||||
import org.codehaus.plexus.redback.system.SecuritySession;
|
||||
import org.codehaus.plexus.redback.system.SecuritySystemConstants;
|
||||
|
|
|
@ -21,13 +21,13 @@
|
|||
<component-set>
|
||||
<components>
|
||||
<component>
|
||||
<role>org.codehaus.plexus.redback.rbac.RBACManager</role>
|
||||
<role>org.apache.archiva.redback.rbac.RBACManager</role>
|
||||
<role-hint>cached</role-hint>
|
||||
<implementation>org.codehaus.plexus.redback.rbac.cached.CachedRbacManager</implementation>
|
||||
<description>CachedRbacManager is a wrapped RBACManager with caching.</description>
|
||||
<requirements>
|
||||
<requirement>
|
||||
<role>org.codehaus.plexus.redback.rbac.RBACManager</role>
|
||||
<role>org.apache.archiva.redback.rbac.RBACManager</role>
|
||||
<role-hint>memory</role-hint>
|
||||
<field-name>rbacImpl</field-name>
|
||||
</requirement>
|
||||
|
|
|
@ -21,13 +21,13 @@
|
|||
<component-set>
|
||||
<components>
|
||||
<component>
|
||||
<role>org.codehaus.plexus.redback.rbac.RBACManager</role>
|
||||
<role>org.apache.archiva.redback.rbac.RBACManager</role>
|
||||
<role-hint>cached</role-hint>
|
||||
<implementation>org.codehaus.plexus.redback.rbac.cached.CachedRbacManager</implementation>
|
||||
<description>CachedRbacManager is a wrapped RBACManager with caching.</description>
|
||||
<requirements>
|
||||
<requirement>
|
||||
<role>org.codehaus.plexus.redback.rbac.RBACManager</role>
|
||||
<role>org.apache.archiva.redback.rbac.RBACManager</role>
|
||||
<role-hint>memory</role-hint>
|
||||
<field-name>rbacImpl</field-name>
|
||||
</requirement>
|
||||
|
|
|
@ -44,13 +44,13 @@
|
|||
<!--
|
||||
|
||||
<component>
|
||||
<role>org.codehaus.plexus.redback.rbac.RBACManager</role>
|
||||
<role>org.apache.archiva.redback.rbac.RBACManager</role>
|
||||
<role-hint>cached</role-hint>
|
||||
<implementation>org.codehaus.plexus.redback.rbac.cached.CachedRbacManager</implementation>
|
||||
<description>CachedRbacManager is a wrapped RBACManager with caching.</description>
|
||||
<requirements>
|
||||
<requirement>
|
||||
<role>org.codehaus.plexus.redback.rbac.RBACManager</role>
|
||||
<role>org.apache.archiva.redback.rbac.RBACManager</role>
|
||||
<role-hint>memory</role-hint>
|
||||
<field-name>rbacImpl</field-name>
|
||||
</requirement>
|
||||
|
|
|
@ -19,6 +19,9 @@ package org.codehaus.plexus.redback.authorization.rbac;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.users.UserNotFoundException;
|
||||
import org.apache.archiva.redback.authorization.AuthorizationDataSource;
|
||||
import org.apache.archiva.redback.authorization.AuthorizationException;
|
||||
|
@ -27,10 +30,7 @@ import org.apache.archiva.redback.authorization.Authorizer;
|
|||
import org.apache.archiva.redback.authorization.NotAuthorizedException;
|
||||
import org.codehaus.plexus.redback.authorization.rbac.evaluator.PermissionEvaluationException;
|
||||
import org.codehaus.plexus.redback.authorization.rbac.evaluator.PermissionEvaluator;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacObjectNotFoundException;
|
||||
import org.apache.archiva.redback.rbac.RbacObjectNotFoundException;
|
||||
import org.apache.archiva.redback.users.User;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
import org.slf4j.Logger;
|
||||
|
|
|
@ -19,10 +19,10 @@ package org.codehaus.plexus.redback.authorization.rbac.evaluator;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.users.UserManager;
|
||||
import org.apache.archiva.redback.users.UserNotFoundException;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.codehaus.plexus.redback.authorization.rbac.evaluator;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,9 +20,9 @@ package org.codehaus.plexus.redback.authorization.rbac.evaluator;
|
|||
*/
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.codehaus.plexus.redback.rbac.Operation;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.Operation;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.memory.MemoryOperation;
|
||||
import org.codehaus.plexus.redback.rbac.memory.MemoryPermission;
|
||||
import org.codehaus.plexus.redback.rbac.memory.MemoryResource;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.rbac;
|
||||
package org.apache.archiva.redback.rbac;
|
||||
|
||||
/*
|
||||
* Copyright 2001-2006 The Apache Software Foundation.
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.rbac;
|
||||
package org.apache.archiva.redback.rbac;
|
||||
|
||||
/*
|
||||
* Copyright 2001-2006 The Apache Software Foundation.
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.rbac;
|
||||
package org.apache.archiva.redback.rbac;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.rbac;
|
||||
package org.apache.archiva.redback.rbac;
|
||||
|
||||
/*
|
||||
* Copyright 2001-2006 The Apache Software Foundation.
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.rbac;
|
||||
package org.apache.archiva.redback.rbac;
|
||||
|
||||
/*
|
||||
* Copyright 2001-2006 The Apache Software Foundation.
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.rbac;
|
||||
package org.apache.archiva.redback.rbac;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.rbac;
|
||||
package org.apache.archiva.redback.rbac;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.rbac;
|
||||
package org.apache.archiva.redback.rbac;
|
||||
|
||||
/*
|
||||
* Copyright 2001-2006 The Apache Software Foundation.
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.rbac;
|
||||
package org.apache.archiva.redback.rbac;
|
||||
|
||||
/*
|
||||
* Copyright 2001-2006 The Apache Software Foundation.
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.rbac;
|
||||
package org.apache.archiva.redback.rbac;
|
||||
|
||||
/*
|
||||
* Copyright 2001-2006 The Apache Software Foundation.
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.rbac;
|
||||
package org.apache.archiva.redback.rbac;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.rbac;
|
||||
package org.apache.archiva.redback.rbac;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.rbac;
|
||||
package org.apache.archiva.redback.rbac;
|
||||
|
||||
/*
|
||||
* Copyright 2001-2004 The Apache Software Foundation.
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.rbac;
|
||||
package org.apache.archiva.redback.rbac;
|
||||
|
||||
/*
|
||||
* Copyright 2001-2006 The Apache Software Foundation.
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.rbac;
|
||||
package org.apache.archiva.redback.rbac;
|
||||
|
||||
/*
|
||||
* Copyright 2001-2006 The Apache Software Foundation.
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.rbac;
|
||||
package org.apache.archiva.redback.rbac;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
|
@ -1,4 +1,4 @@
|
|||
package org.codehaus.plexus.redback.rbac;
|
||||
package org.apache.archiva.redback.rbac;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -19,17 +19,17 @@ package org.codehaus.plexus.redback.rbac.cached;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.rbac.Operation;
|
||||
import org.apache.archiva.redback.rbac.RBACManagerListener;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.RbacObjectInvalidException;
|
||||
import org.apache.archiva.redback.rbac.RbacObjectNotFoundException;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.codehaus.plexus.cache.Cache;
|
||||
import org.codehaus.plexus.redback.rbac.Operation;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManagerListener;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacObjectInvalidException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacObjectNotFoundException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
@ -160,7 +160,7 @@ public class CachedRbacManager
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.codehaus.plexus.redback.rbac.RBACManager#getAllAssignableRoles()
|
||||
* @see org.apache.archiva.redback.rbac.RBACManager#getAllAssignableRoles()
|
||||
*/
|
||||
public List<Role> getAllAssignableRoles()
|
||||
throws RbacManagerException, RbacObjectNotFoundException
|
||||
|
@ -205,7 +205,7 @@ public class CachedRbacManager
|
|||
}
|
||||
|
||||
/**
|
||||
* @see org.codehaus.plexus.redback.rbac.RBACManager#getAssignedPermissionMap(java.lang.String)
|
||||
* @see org.apache.archiva.redback.rbac.RBACManager#getAssignedPermissionMap(java.lang.String)
|
||||
*/
|
||||
@SuppressWarnings( "unchecked" )
|
||||
public Map getAssignedPermissionMap( String principal )
|
||||
|
|
|
@ -19,9 +19,7 @@ package org.codehaus.plexus.redback.rbac.cached;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import net.sf.ehcache.CacheManager;
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.tests.AbstractRbacManagerPerformanceTestCase;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
|
|
|
@ -20,7 +20,7 @@ package org.codehaus.plexus.redback.rbac.cached;
|
|||
*/
|
||||
|
||||
import net.sf.ehcache.CacheManager;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.tests.AbstractRbacManagerTestCase;
|
||||
import org.junit.Before;
|
||||
|
||||
|
|
|
@ -19,18 +19,18 @@ package org.codehaus.plexus.redback.rbac.jdo;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.AbstractRBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.Operation;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManagerListener;
|
||||
import org.codehaus.plexus.redback.rbac.RBACObjectAssertions;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacObjectInvalidException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacObjectNotFoundException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacPermanentException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.AbstractRBACManager;
|
||||
import org.apache.archiva.redback.rbac.Operation;
|
||||
import org.apache.archiva.redback.rbac.RBACManagerListener;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.RbacObjectInvalidException;
|
||||
import org.apache.archiva.redback.rbac.RbacObjectNotFoundException;
|
||||
import org.apache.archiva.redback.rbac.RbacPermanentException;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.RBACObjectAssertions;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
|
|
|
@ -19,12 +19,12 @@ package org.codehaus.plexus.redback.rbac.jdo;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.RBACManagerListener;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.RbacObjectNotFoundException;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.codehaus.plexus.jdo.JdoFactory;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManagerListener;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacObjectNotFoundException;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
|
|
@ -85,9 +85,9 @@
|
|||
<name>JdoRole</name>
|
||||
<version>1.0.0+</version>
|
||||
<interfaces>
|
||||
<interface>org.codehaus.plexus.redback.rbac.Role</interface>
|
||||
<interface>org.apache.archiva.redback.rbac.Role</interface>
|
||||
</interfaces>
|
||||
<superClass>org.codehaus.plexus.redback.rbac.AbstractRole</superClass>
|
||||
<superClass>org.apache.archiva.redback.rbac.AbstractRole</superClass>
|
||||
<fields>
|
||||
<field jpox.primary-key="true" jpox.value-strategy="off">
|
||||
<name>name</name>
|
||||
|
@ -127,7 +127,7 @@
|
|||
jpox.dependent="false"
|
||||
java.generate-break="false"
|
||||
java.generate-create="false"
|
||||
zjava.use-interface="org.codehaus.plexus.redback.rbac.Role">
|
||||
zjava.use-interface="org.apache.archiva.redback.rbac.Role">
|
||||
<type>String</type>
|
||||
<multiplicity>*</multiplicity>
|
||||
</association>
|
||||
|
@ -146,7 +146,7 @@
|
|||
java.init="field"
|
||||
java.generate-break="false"
|
||||
java.generate-create="false"
|
||||
java.use-interface="org.codehaus.plexus.redback.rbac.Permission">
|
||||
java.use-interface="org.apache.archiva.redback.rbac.Permission">
|
||||
<type>JdoPermission</type>
|
||||
<multiplicity>*</multiplicity>
|
||||
</association>
|
||||
|
@ -160,7 +160,7 @@
|
|||
<name>JdoPermission</name>
|
||||
<version>1.0.0+</version>
|
||||
<interfaces>
|
||||
<interface>org.codehaus.plexus.redback.rbac.Permission</interface>
|
||||
<interface>org.apache.archiva.redback.rbac.Permission</interface>
|
||||
</interfaces>
|
||||
<fields>
|
||||
<field jpox.primary-key="true" jpox.value-strategy="off">
|
||||
|
@ -189,7 +189,7 @@
|
|||
<version>1.0.0+</version>
|
||||
<association stash.part="true"
|
||||
xml.reference="true"
|
||||
java.use-interface="org.codehaus.plexus.redback.rbac.Operation"
|
||||
java.use-interface="org.apache.archiva.redback.rbac.Operation"
|
||||
jpox.dependent="false">
|
||||
<type>JdoOperation</type>
|
||||
<multiplicity>1</multiplicity>
|
||||
|
@ -202,7 +202,7 @@
|
|||
<version>1.0.0+</version>
|
||||
<association stash.part="true"
|
||||
xml.reference="true"
|
||||
java.use-interface="org.codehaus.plexus.redback.rbac.Resource"
|
||||
java.use-interface="org.apache.archiva.redback.rbac.Resource"
|
||||
jpox.dependent="false">
|
||||
<type>JdoResource</type>
|
||||
<multiplicity>1</multiplicity>
|
||||
|
@ -217,7 +217,7 @@
|
|||
<name>JdoOperation</name>
|
||||
<version>1.0.0+</version>
|
||||
<interfaces>
|
||||
<interface>org.codehaus.plexus.redback.rbac.Operation</interface>
|
||||
<interface>org.apache.archiva.redback.rbac.Operation</interface>
|
||||
</interfaces>
|
||||
<fields>
|
||||
<field jpox.primary-key="true" jpox.value-strategy="off">
|
||||
|
@ -259,7 +259,7 @@
|
|||
In RBAC terms, this is the entity which an operation is associated with that which permissions are based on.
|
||||
</description>
|
||||
<interfaces>
|
||||
<interface>org.codehaus.plexus.redback.rbac.Resource</interface>
|
||||
<interface>org.apache.archiva.redback.rbac.Resource</interface>
|
||||
</interfaces>
|
||||
<fields>
|
||||
<field jpox.primary-key="true" jpox.value-strategy="off">
|
||||
|
@ -298,9 +298,9 @@
|
|||
<description>binding of a principal to a role</description>
|
||||
<version>1.0.0+</version>
|
||||
<interfaces>
|
||||
<interface>org.codehaus.plexus.redback.rbac.UserAssignment</interface>
|
||||
<interface>org.apache.archiva.redback.rbac.UserAssignment</interface>
|
||||
</interfaces>
|
||||
<superClass>org.codehaus.plexus.redback.rbac.AbstractUserAssignment</superClass>
|
||||
<superClass>org.apache.archiva.redback.rbac.AbstractUserAssignment</superClass>
|
||||
<fields>
|
||||
<field jpox.primary-key="true" jpox.value-strategy="off">
|
||||
<name>principal</name>
|
||||
|
|
|
@ -20,10 +20,10 @@ package org.codehaus.plexus.redback.rbac.jdo;
|
|||
*/
|
||||
|
||||
import net.sf.ehcache.CacheManager;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.jdo.DefaultConfigurableJdoFactory;
|
||||
import org.apache.archiva.redback.common.jdo.test.StoreManagerDebug;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.tests.AbstractRbacManagerTestCase;
|
||||
import org.jpox.AbstractPersistenceManagerFactory;
|
||||
import org.jpox.SchemaTool;
|
||||
|
|
|
@ -31,8 +31,8 @@ import javax.xml.stream.XMLStreamException;
|
|||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Operation;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Operation;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.jdo.io.stax.RbacJdoModelStaxReader;
|
||||
import org.codehaus.plexus.redback.rbac.jdo.io.stax.RbacJdoModelStaxWriter;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.codehaus.plexus.redback.rbac.memory;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Operation;
|
||||
import org.apache.archiva.redback.rbac.Operation;
|
||||
|
||||
/**
|
||||
* MemoryOperation
|
||||
|
|
|
@ -19,9 +19,9 @@ package org.codehaus.plexus.redback.rbac.memory;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Operation;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Operation;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
|
||||
/**
|
||||
* MemoryPermission
|
||||
|
|
|
@ -19,18 +19,18 @@ package org.codehaus.plexus.redback.rbac.memory;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.AbstractRBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.Operation;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RBACObjectAssertions;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacObjectInvalidException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacObjectNotFoundException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacPermanentException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.AbstractRBACManager;
|
||||
import org.apache.archiva.redback.rbac.Operation;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.RBACObjectAssertions;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.RbacObjectInvalidException;
|
||||
import org.apache.archiva.redback.rbac.RbacObjectNotFoundException;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.RbacPermanentException;
|
||||
import org.codehaus.plexus.util.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.codehaus.plexus.redback.rbac.memory;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
|
||||
/**
|
||||
* MemoryResource
|
||||
|
|
|
@ -19,9 +19,9 @@ package org.codehaus.plexus.redback.rbac.memory;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.AbstractRole;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.AbstractRole;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
|
@ -19,8 +19,8 @@ package org.codehaus.plexus.redback.rbac.memory;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.AbstractUserAssignment;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.AbstractUserAssignment;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
|
@ -19,9 +19,7 @@ package org.codehaus.plexus.redback.rbac.memory;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import net.sf.ehcache.CacheManager;
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.tests.AbstractRbacManagerTestCase;
|
||||
import org.junit.Before;
|
||||
|
||||
|
|
|
@ -19,12 +19,12 @@ package org.codehaus.plexus.redback.role;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.apache.commons.lang.SystemUtils;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.role.model.ModelApplication;
|
||||
import org.codehaus.plexus.redback.role.model.ModelRole;
|
||||
import org.codehaus.plexus.redback.role.model.ModelTemplate;
|
||||
|
|
|
@ -19,12 +19,12 @@ package org.codehaus.plexus.redback.role.processor;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Operation;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.Operation;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.role.RoleManagerException;
|
||||
import org.codehaus.plexus.redback.role.model.ModelApplication;
|
||||
import org.codehaus.plexus.redback.role.model.ModelOperation;
|
||||
|
|
|
@ -19,12 +19,12 @@ package org.codehaus.plexus.redback.role.template;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Operation;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.Operation;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.role.RoleManagerException;
|
||||
import org.codehaus.plexus.redback.role.model.ModelApplication;
|
||||
import org.codehaus.plexus.redback.role.model.ModelOperation;
|
||||
|
|
|
@ -20,11 +20,11 @@ package org.codehaus.plexus.redback.role;
|
|||
*/
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.codehaus.plexus.redback.role.model.ModelPermission;
|
||||
import org.codehaus.plexus.redback.role.model.ModelTemplate;
|
||||
import org.codehaus.plexus.redback.role.util.RoleModelUtils;
|
||||
|
|
|
@ -19,12 +19,8 @@ package org.codehaus.plexus.redback.role;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import net.sf.ehcache.CacheManager;
|
||||
import org.codehaus.plexus.jdo.DefaultConfigurableJdoFactory;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.jdo.JdoRbacManager;
|
||||
import org.codehaus.plexus.redback.rbac.jdo.JdoTool;
|
||||
import org.jpox.SchemaTool;
|
||||
import org.junit.Before;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
@ -34,10 +30,6 @@ import javax.inject.Inject;
|
|||
import javax.inject.Named;
|
||||
import javax.jdo.PersistenceManager;
|
||||
import javax.jdo.PersistenceManagerFactory;
|
||||
import java.io.File;
|
||||
import java.net.URL;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
|
||||
/**
|
||||
* RoleManagerTest:
|
||||
|
|
|
@ -20,7 +20,7 @@ package org.codehaus.plexus.redback.role;
|
|||
*/
|
||||
|
||||
import net.sf.ehcache.CacheManager;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.junit.Before;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
|
|
@ -20,9 +20,9 @@ package org.codehaus.plexus.redback.role.processor;
|
|||
*/
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.role.RoleManagerException;
|
||||
import org.codehaus.plexus.redback.role.model.RedbackRoleModel;
|
||||
import org.codehaus.plexus.redback.role.model.io.stax.RedbackRoleModelStaxReader;
|
||||
|
|
|
@ -20,9 +20,9 @@ package org.codehaus.plexus.redback.role.template;
|
|||
*/
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.role.model.ModelTemplate;
|
||||
import org.codehaus.plexus.redback.role.model.RedbackRoleModel;
|
||||
import org.codehaus.plexus.redback.role.model.io.stax.RedbackRoleModelStaxReader;
|
||||
|
|
|
@ -19,13 +19,13 @@ package org.codehaus.plexus.redback.tests;
|
|||
* under the License.
|
||||
*/
|
||||
import junit.framework.TestCase;
|
||||
import org.codehaus.plexus.redback.rbac.Operation;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.Operation;
|
||||
import org.codehaus.plexus.redback.tests.utils.RBACDefaults;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
|
|
@ -17,14 +17,14 @@ package org.codehaus.plexus.redback.tests;
|
|||
*/
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.codehaus.plexus.redback.rbac.Operation;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.RbacPermanentException;
|
||||
import org.codehaus.plexus.redback.rbac.Resource;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.Operation;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
import org.apache.archiva.redback.rbac.Resource;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.RbacPermanentException;
|
||||
import org.codehaus.plexus.redback.tests.utils.RBACDefaults;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
|
|
@ -19,10 +19,10 @@ package org.codehaus.plexus.redback.tests;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManagerListener;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.codehaus.plexus.redback.rbac.UserAssignment;
|
||||
import org.apache.archiva.redback.rbac.RBACManagerListener;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.UserAssignment;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
|
@ -16,11 +16,11 @@ package org.codehaus.plexus.redback.tests.utils;
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.redback.rbac.Operation;
|
||||
import org.codehaus.plexus.redback.rbac.Permission;
|
||||
import org.codehaus.plexus.redback.rbac.RBACManager;
|
||||
import org.codehaus.plexus.redback.rbac.RbacManagerException;
|
||||
import org.codehaus.plexus.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.Permission;
|
||||
import org.apache.archiva.redback.rbac.Operation;
|
||||
import org.apache.archiva.redback.rbac.RBACManager;
|
||||
import org.apache.archiva.redback.rbac.Role;
|
||||
import org.apache.archiva.redback.rbac.RbacManagerException;
|
||||
|
||||
public class RBACDefaults
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue