001package org.apache.archiva.redback.integration.security.role; 002 003/* 004 * Licensed to the Apache Software Foundation (ASF) under one 005 * or more contributor license agreements. See the NOTICE file 006 * distributed with this work for additional information 007 * regarding copyright ownership. The ASF licenses this file 008 * to you under the Apache License, Version 2.0 (the 009 * "License"); you may not use this file except in compliance 010 * with the License. You may obtain a copy of the License at 011 * 012 * http://www.apache.org/licenses/LICENSE-2.0 013 * 014 * Unless required by applicable law or agreed to in writing, 015 * software distributed under the License is distributed on an 016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 017 * KIND, either express or implied. See the License for the 018 * specific language governing permissions and limitations 019 * under the License. 020 */ 021 022/** 023 * Inteface with role constants 024 * @author Olivier Lamy 025 * @since 1.3 026 * 027 */ 028public interface RedbackRoleConstants 029{ 030 public static final String ADMINISTRATOR_ACCOUNT_NAME = "admin"; 031 032 // roles 033 public static final String SYSTEM_ADMINISTRATOR_ROLE = "System Administrator"; 034 public static final String SYSTEM_ADMINISTRATOR_ROLE_ID = "system-administrator"; 035 036 public static final String USER_ADMINISTRATOR_ROLE = "User Administrator"; 037 038 public static final String REGISTERED_USER_ROLE = "Registered User"; 039 040 /** 041 * @since 1.4 042 */ 043 public static final String REGISTERED_USER_ROLE_ID = "registered-user"; 044 045 public static final String GUEST_ROLE = "Guest"; 046 047 // guest access operation 048 public static final String GUEST_ACCESS_OPERATION = "guest-access"; 049 050 // operations against configuration 051 public static final String CONFIGURATION_EDIT_OPERATION = "redback-configuration-edit"; 052 053 // operations against user 054 public static final String USER_MANAGEMENT_USER_CREATE_OPERATION = "user-management-user-create"; 055 056 public static final String USER_MANAGEMENT_USER_EDIT_OPERATION = "user-management-user-edit"; 057 058 public static final String USER_MANAGEMENT_USER_ROLE_OPERATION = "user-management-user-role"; 059 060 public static final String USER_MANAGEMENT_USER_DELETE_OPERATION = "user-management-user-delete"; 061 062 public static final String USER_MANAGEMENT_USER_LIST_OPERATION = "user-management-user-list"; 063 064 public static final String USER_MANAGEMENT_USER_VIEW_OPERATION = "user-management-user-view"; 065 066 // operations against user assignment. 067 public static final String USER_MANAGEMENT_ROLE_GRANT_OPERATION = "user-management-role-grant"; 068 069 public static final String USER_MANAGEMENT_ROLE_DROP_OPERATION = "user-management-role-drop"; 070 071 // operations against rbac objects. 072 public static final String USER_MANAGEMENT_RBAC_ADMIN_OPERATION = "user-management-rbac-admin"; 073 074 public static final String USER_MANAGEMENT_MANAGE_DATA = "user-management-manage-data"; 075}