This project has retired. For details please refer to its Attic page.
RedbackRoleConstants xref
View Javadoc

1   package org.apache.archiva.redback.integration.security.role;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   * http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  /**
23   * Inteface with role constants
24   * @author Olivier Lamy
25   * @since 1.3
26   *
27   */
28  public interface RedbackRoleConstants
29  {
30      public static final String ADMINISTRATOR_ACCOUNT_NAME = "admin";
31  
32      // roles
33      public static final String SYSTEM_ADMINISTRATOR_ROLE = "System Administrator";
34  
35      public static final String USER_ADMINISTRATOR_ROLE = "User Administrator";
36  
37      public static final String REGISTERED_USER_ROLE = "Registered User";
38  
39      /**
40       * @since 1.4
41       */
42      public static final String REGISTERED_USER_ROLE_ID = "registered-user";
43  
44      public static final String GUEST_ROLE = "Guest";
45  
46      // guest access operation
47      public static final String GUEST_ACCESS_OPERATION = "guest-access";
48  
49      // operations against configuration
50      public static final String CONFIGURATION_EDIT_OPERATION = "configuration-edit";
51  
52      // operations against user
53      public static final String USER_MANAGEMENT_USER_CREATE_OPERATION = "user-management-user-create";
54  
55      public static final String USER_MANAGEMENT_USER_EDIT_OPERATION = "user-management-user-edit";
56  
57      public static final String USER_MANAGEMENT_USER_ROLE_OPERATION = "user-management-user-role";
58  
59      public static final String USER_MANAGEMENT_USER_DELETE_OPERATION = "user-management-user-delete";
60  
61      public static final String USER_MANAGEMENT_USER_LIST_OPERATION = "user-management-user-list";
62  
63      // operations against user assignment.
64      public static final String USER_MANAGEMENT_ROLE_GRANT_OPERATION = "user-management-role-grant";
65  
66      public static final String USER_MANAGEMENT_ROLE_DROP_OPERATION = "user-management-role-drop";
67  
68      // operations against rbac objects.
69      public static final String USER_MANAGEMENT_RBAC_ADMIN_OPERATION = "user-management-rbac-admin";
70  
71      public static final String USER_MANAGEMENT_MANAGE_DATA = "user-management-manage-data";
72  }