* under the License.
*/
-import org.codehaus.redback.integration.security.role.RedbackRoleConstants;
+import org.apache.archiva.redback.integration.security.role.RedbackRoleConstants;
/**
* RoleConstants:
--- /dev/null
+package org.apache.archiva.redback.integration.security.role;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * Inteface with role constants
+ * @author Olivier Lamy
+ * @since 1.3
+ *
+ */
+public interface RedbackRoleConstants
+{
+ public static final String ADMINISTRATOR_ACCOUNT_NAME = "admin";
+
+ // roles
+ public static final String SYSTEM_ADMINISTRATOR_ROLE = "System Administrator";
+
+ public static final String USER_ADMINISTRATOR_ROLE = "User Administrator";
+
+ public static final String REGISTERED_USER_ROLE = "Registered User";
+
+ /**
+ * @since 1.4
+ */
+ public static final String REGISTERED_USER_ROLE_ID = "registered-user";
+
+ public static final String GUEST_ROLE = "Guest";
+
+ // guest access operation
+ public static final String GUEST_ACCESS_OPERATION = "guest-access";
+
+ // operations against configuration
+ public static final String CONFIGURATION_EDIT_OPERATION = "configuration-edit";
+
+ // operations against user
+ public static final String USER_MANAGEMENT_USER_CREATE_OPERATION = "user-management-user-create";
+
+ public static final String USER_MANAGEMENT_USER_EDIT_OPERATION = "user-management-user-edit";
+
+ public static final String USER_MANAGEMENT_USER_ROLE_OPERATION = "user-management-user-role";
+
+ public static final String USER_MANAGEMENT_USER_DELETE_OPERATION = "user-management-user-delete";
+
+ public static final String USER_MANAGEMENT_USER_LIST_OPERATION = "user-management-user-list";
+
+ // operations against user assignment.
+ public static final String USER_MANAGEMENT_ROLE_GRANT_OPERATION = "user-management-role-grant";
+
+ public static final String USER_MANAGEMENT_ROLE_DROP_OPERATION = "user-management-role-drop";
+
+ // operations against rbac objects.
+ public static final String USER_MANAGEMENT_RBAC_ADMIN_OPERATION = "user-management-rbac-admin";
+
+ public static final String USER_MANAGEMENT_MANAGE_DATA = "user-management-manage-data";
+}
+++ /dev/null
-package org.codehaus.redback.integration.security.role;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/**
- * Inteface with role constants
- * @author Olivier Lamy
- * @since 1.3
- *
- */
-public interface RedbackRoleConstants
-{
- public static final String ADMINISTRATOR_ACCOUNT_NAME = "admin";
-
- // roles
- public static final String SYSTEM_ADMINISTRATOR_ROLE = "System Administrator";
-
- public static final String USER_ADMINISTRATOR_ROLE = "User Administrator";
-
- public static final String REGISTERED_USER_ROLE = "Registered User";
-
- /**
- * @since 1.4
- */
- public static final String REGISTERED_USER_ROLE_ID = "registered-user";
-
- public static final String GUEST_ROLE = "Guest";
-
- // guest access operation
- public static final String GUEST_ACCESS_OPERATION = "guest-access";
-
- // operations against configuration
- public static final String CONFIGURATION_EDIT_OPERATION = "configuration-edit";
-
- // operations against user
- public static final String USER_MANAGEMENT_USER_CREATE_OPERATION = "user-management-user-create";
-
- public static final String USER_MANAGEMENT_USER_EDIT_OPERATION = "user-management-user-edit";
-
- public static final String USER_MANAGEMENT_USER_ROLE_OPERATION = "user-management-user-role";
-
- public static final String USER_MANAGEMENT_USER_DELETE_OPERATION = "user-management-user-delete";
-
- public static final String USER_MANAGEMENT_USER_LIST_OPERATION = "user-management-user-list";
-
- // operations against user assignment.
- public static final String USER_MANAGEMENT_ROLE_GRANT_OPERATION = "user-management-role-grant";
-
- public static final String USER_MANAGEMENT_ROLE_DROP_OPERATION = "user-management-role-drop";
-
- // operations against rbac objects.
- public static final String USER_MANAGEMENT_RBAC_ADMIN_OPERATION = "user-management-rbac-admin";
-
- public static final String USER_MANAGEMENT_MANAGE_DATA = "user-management-manage-data";
-}
*/
import org.apache.archiva.redback.authorization.RedbackAuthorization;
-import org.codehaus.redback.integration.security.role.RedbackRoleConstants;
+import org.apache.archiva.redback.integration.security.role.RedbackRoleConstants;
import org.codehaus.redback.rest.api.model.Application;
import org.codehaus.redback.rest.api.model.ApplicationRoles;
import org.codehaus.redback.rest.api.model.Role;
*/
import org.apache.archiva.redback.authorization.RedbackAuthorization;
-import org.codehaus.redback.integration.security.role.RedbackRoleConstants;
+import org.apache.archiva.redback.integration.security.role.RedbackRoleConstants;
import org.codehaus.redback.rest.api.model.Operation;
import org.codehaus.redback.rest.api.model.Permission;
import org.codehaus.redback.rest.api.model.RegistrationKey;
import org.codehaus.plexus.redback.role.model.ModelRole;
import org.codehaus.plexus.redback.role.model.ModelTemplate;
import org.codehaus.redback.integration.model.AdminEditUserCredentials;
-import org.codehaus.redback.integration.security.role.RedbackRoleConstants;
+import org.apache.archiva.redback.integration.security.role.RedbackRoleConstants;
import org.codehaus.redback.integration.util.RoleSorter;
import org.codehaus.redback.rest.api.model.Application;
import org.codehaus.redback.rest.api.model.ApplicationRoles;
import org.apache.archiva.redback.system.SecuritySystem;
import org.codehaus.redback.integration.filter.authentication.HttpAuthenticator;
import org.codehaus.redback.integration.mail.Mailer;
-import org.codehaus.redback.integration.security.role.RedbackRoleConstants;
+import org.apache.archiva.redback.integration.security.role.RedbackRoleConstants;
import org.codehaus.redback.rest.api.model.ErrorMessage;
import org.codehaus.redback.rest.api.model.Operation;
import org.codehaus.redback.rest.api.model.Permission;
import org.apache.cxf.jaxrs.client.WebClient;
import org.apache.cxf.transport.servlet.CXFServlet;
import org.codehaus.jackson.jaxrs.JacksonJaxbJsonProvider;
-import org.codehaus.redback.integration.security.role.RedbackRoleConstants;
+import org.apache.archiva.redback.integration.security.role.RedbackRoleConstants;
import org.codehaus.redback.rest.api.model.User;
import org.codehaus.redback.rest.api.services.LoginService;
import org.codehaus.redback.rest.api.services.RoleManagementService;
* under the License.
*/
-import org.codehaus.redback.integration.security.role.RedbackRoleConstants;
+import org.apache.archiva.redback.integration.security.role.RedbackRoleConstants;
import org.codehaus.redback.rest.api.model.User;
import org.codehaus.redback.rest.api.services.UserService;
import org.junit.Test;
import org.apache.archiva.redback.system.SecuritySystem;
import org.codehaus.plexus.util.StringUtils;
import org.codehaus.redback.integration.model.UserCredentials;
-import org.codehaus.redback.integration.security.role.RedbackRoleConstants;
+import org.apache.archiva.redback.integration.security.role.RedbackRoleConstants;
import org.codehaus.redback.integration.util.RoleSorter;
import javax.inject.Inject;
import org.codehaus.redback.integration.interceptor.SecureActionException;
import org.codehaus.redback.integration.mail.Mailer;
import org.codehaus.redback.integration.model.CreateUserCredentials;
-import org.codehaus.redback.integration.security.role.RedbackRoleConstants;
+import org.apache.archiva.redback.integration.security.role.RedbackRoleConstants;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.codehaus.plexus.util.StringUtils;
import org.codehaus.redback.integration.interceptor.SecureActionBundle;
import org.codehaus.redback.integration.interceptor.SecureActionException;
-import org.codehaus.redback.integration.security.role.RedbackRoleConstants;
+import org.apache.archiva.redback.integration.security.role.RedbackRoleConstants;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;