001package org.apache.archiva.redback.rest.api;/* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * Unless required by applicable law or agreed to in writing, 012 * software distributed under the License is distributed on an 013 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 014 * KIND, either express or implied. See the License for the 015 * specific language governing permissions and limitations 016 * under the License. 017 */ 018 019/** 020 * Keys for error messages that are returned by REST API 021 * 022 * @author Martin Stockhammer <martin_s@apache.org> 023 */ 024public interface MessageKeys 025{ 026 String ERR_UNKNOWN = "rb.unknown_error"; 027 String ERR_USERMANAGER_FAIL = "rb.usermanager_error"; 028 String ERR_ROLEMANAGER_FAIL = "rb.rolemanager_error"; 029 String ERR_RBACMANAGER_FAIL = "rb.rbacmanager_error"; 030 String ERR_KEYMANAGER_FAIL = "rb.keymanager_error"; 031 String ERR_EMPTY_DATA = "rb.empty_data_received"; 032 String ERR_INVALID_POST_DATA = "rb.invalid_post_data"; 033 String ERR_USER_EXISTS = "rb.user.exists"; 034 String ERR_USER_ID_EMPTY = "rb.user.id.empty"; 035 String ERR_USER_ID_INVALID = "rb.user.id.invalid"; 036 String ERR_USER_FULL_NAME_EMPTY = "rb.user.fullname.empty"; 037 String ERR_USER_EMAIL_EMPTY = "rb.user.email.empty"; 038 String ERR_USER_EMAIL_INVALID = "rb.user.email.invalid"; 039 String ERR_USER_ASSIGN_ROLE = "rb.user.role.assign.failure"; 040 String ERR_USER_NOT_VALIDATED = "rb.user.not_validated"; 041 String ERR_USER_ADMIN_EXISTS = "rb.user.admin.exists"; 042 String ERR_USER_ADMIN_BAD_NAME = "rb.user.admin.badname"; 043 String ERR_USER_NOT_FOUND = "rb.user.not_found"; 044 String ERR_USER_BAD_PASSWORD = "rb.user.bad.password"; 045 String ERR_PASSWORD_VIOLATION = "rb.user.password_violation"; 046 String ERR_PASSWORDCHANGE_CURRENT_EMPTY = "rb.user.passwordchange.current_empty"; 047 String ERR_PASSWORDCHANGE_KEY_EMPTY = "rb.user.passwordchange.key_empty"; 048 String ERR_PASSWORDCHANGE_NEW_EMPTY = "rb.user.passwordchange.new_empty"; 049 String ERR_PASSWORDCHANGE_CONFIRMATION_EMPTY = "rb.user.passwordchange.confirmation_empty"; 050 String ERR_PASSWORDCHANGE_BAD_CONFIRMATION = "rb.user.passwordchange.bad_confirmation"; 051 String ERR_PASSWORDCHANGE_BAD_KEY = "rb.user.passwordchange.bad_key"; 052 String ERR_PASSWORDCHANGE_USER_NOT_FOUND = "rb.user.passwordchange.bad_key"; 053 054 055 String ERR_LDAP_GENERIC = "rb.ldap.error"; 056 String ERR_ROLE_MAPPING = "rb.role.mapping.error"; 057 String ERR_ROLE_MAPPING_NOT_FOUND = "rb.role.mapping.not_found"; 058 String ERR_ROLE_NOT_FOUND = "rb.role.not_found"; 059 // A template instance not found. With arguments templateId, resource 060 String ERR_ROLE_INSTANCE_NOT_FOUND = "rb.role.instance.not_found"; 061 String ERR_ROLE_EXISTS = "rb.role.exists"; 062 // A template instance exists. With arguments templateId, resource 063 String ERR_ROLE_INSTANCE_EXISTS = "rb.role.instance.exists"; 064 String ERR_ROLE_ID_INVALID = "rb.role.invalid_id"; 065 String ERR_ROLE_DELETION_WITH_PERMANENT_FLAG = "rb.role.deletion_with_permanent_flag"; 066 067 String ERR_AUTH_BAD_CODE = "rb.auth.bad_authorization_code"; 068 String ERR_AUTH_INVALID_CREDENTIALS = "rb.auth.invalid_credentials"; 069 String ERR_AUTH_FAIL_MSG = "rb.auth.fail"; 070 String ERR_AUTH_ACCOUNT_LOCKED = "rb.auth.account_locked"; 071 String ERR_AUTH_PASSWORD_CHANGE_REQUIRED = "rb.auth.password_change_required"; 072 String ERR_AUTH_UNSUPPORTED_GRANT_TYPE = "rb.auth.unsupported_grant"; 073 String ERR_AUTH_INVALID_TOKEN = "rb.auth.invalid_token"; 074 String ERR_AUTH_UNAUTHORIZED_REQUEST = "rb.auth.unauthorized_request"; 075 076 String ERR_PASSWD_RESET_FAILED = "rb.passwd.reset.fail"; 077 078 String ERR_REGISTRATION_KEY_INVALID = "rb.registration.key.invalid"; 079 String ERR_REGISTRATION_USER_VALIDATED = "rb.registration.user.validated"; 080 String ERR_REGISTRATION_ROLE_ASSIGNMENT_FAILED = "rb.registration.role.assignment.failed"; 081 082 String ERR_INVALID_PAGING_RESULT_ERROR = "rb.paging_result.invalid"; 083}