1 package org.apache.archiva.rest.api.v2.svc;/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing,
12 * software distributed under the License is distributed on an
13 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 * KIND, either express or implied. See the License for the
15 * specific language governing permissions and limitations
20 * Licensed to the Apache Software Foundation (ASF) under one
21 * or more contributor license agreements. See the NOTICE file
22 * distributed with this work for additional information
23 * regarding copyright ownership. The ASF licenses this file
24 * to you under the Apache License, Version 2.0 (the
25 * "License"); you may not use this file except in compliance
26 * with the License. You may obtain a copy of the License at
28 * http://www.apache.org/licenses/LICENSE-2.0
29 * Unless required by applicable law or agreed to in writing,
30 * software distributed under the License is distributed on an
31 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
32 * KIND, either express or implied. See the License for the
33 * specific language governing permissions and limitations
38 * @author Martin Stockhammer <martin_s@apache.org>
40 public interface ErrorKeys
43 String PREFIX = "archiva.";
45 String VALIDATION_ERROR = PREFIX + "validation_error";
47 String REPOSITORY_GROUP_PREFIX = PREFIX + "repository_group.";
48 String REPOSITORY_PREFIX = PREFIX + "repository.";
50 String INVALID_RESULT_SET_ERROR = "archiva.result_set.invalid";
51 String REPOSITORY_ADMIN_ERROR = "archiva.repositoryadmin.error";
52 String LDAP_CF_INIT_FAILED = "archiva.ldap.cf.init.failed";
53 String LDAP_USER_MAPPER_INIT_FAILED = "archiva.ldap.usermapper.init.failed";
54 String LDAP_COMMUNICATION_ERROR = "archiva.ldap.communication_error";
55 String LDAP_INVALID_NAME = "archiva.ldap.invalid_name";
56 String LDAP_GENERIC_ERROR = "archiva.ldap.generic_error";
57 String LDAP_SERVICE_UNAVAILABLE = "archiva.ldap.service_unavailable";
58 String LDAP_SERVICE_AUTHENTICATION_FAILED = "archiva.ldap.authentication.failed";
59 String LDAP_SERVICE_AUTHENTICATION_NOT_SUPPORTED = "archiva.ldap.authentication.not_supported";
60 String LDAP_SERVICE_NO_PERMISSION = "archiva.ldap.no_permissions";
62 String PROPERTY_NOT_FOUND = "archiva.property.not.found";
64 String MISSING_DATA = "archiva.missing.data";
66 String REPOSITORY_GROUP_NOT_FOUND = REPOSITORY_GROUP_PREFIX+"notfound";
67 String REPOSITORY_GROUP_ADD_FAILED = REPOSITORY_GROUP_PREFIX+"add.failed" ;
68 String REPOSITORY_GROUP_EXIST = REPOSITORY_GROUP_PREFIX+"exists";
69 String REPOSITORY_GROUP_UPDATE_FAILED = REPOSITORY_GROUP_PREFIX + "update.failed";
71 String REPOSITORY_GROUP_DELETE_FAILED = REPOSITORY_GROUP_PREFIX + "delete.failed";
72 String REPOSITORY_NOT_FOUND = REPOSITORY_PREFIX + "notfound";
73 String REPOSITORY_MANAGED_NOT_FOUND = REPOSITORY_PREFIX + "managed.notfound";
74 String REPOSITORY_REMOTE_NOT_FOUND = REPOSITORY_PREFIX + "remote.notfound";
76 String REPOSITORY_METADATA_ERROR = REPOSITORY_PREFIX + "metadata_error";
78 String TASK_QUEUE_FAILED = PREFIX + "task.queue_failed";
79 String REPOSITORY_SCAN_FAILED = REPOSITORY_PREFIX + "scan.failed";
80 String ARTIFACT_EXISTS_AT_DEST = REPOSITORY_PREFIX + "artifact.dest.exists";
81 String REPOSITORY_REMOTE_INDEX_DOWNLOAD_FAILED = REPOSITORY_PREFIX + "remote.index.download_failed";
82 String REPOSITORY_WRONG_TYPE = REPOSITORY_PREFIX + "wrong_type";
83 String REPOSITORY_DELETE_FAILED = REPOSITORY_PREFIX + "delete.failed";
84 String REPOSITORY_INVALID_ID = REPOSITORY_PREFIX + "invalid.id";
85 String REPOSITORY_ID_EXISTS = REPOSITORY_PREFIX + "id.exists";
86 String REPOSITORY_UPDATE_FAILED = REPOSITORY_PREFIX + "update.failed";
87 String ARTIFACT_NOT_FOUND = REPOSITORY_PREFIX + "artifact.notfound";
88 String REPOSITORY_LAYOUT_ERROR = REPOSITORY_PREFIX + "layout.error";
90 String ARTIFACT_COPY_ERROR = REPOSITORY_PREFIX + "artifact.copy.error";
93 * The given user was not found
97 String USER_NOT_FOUND = PREFIX+"user.not_found";
100 * Error from UserManager
104 String USER_MANAGER_ERROR = PREFIX+"user_manager.error";
107 * Permission to the repository denied.
112 String PERMISSION_REPOSITORY_DENIED = PREFIX + "permission.repository.denied";
115 * A generic authorization error thrown during the authorization check.
119 String AUTHORIZATION_ERROR = PREFIX + "authorization.error";
122 * When the operation needs authentication, but not authenticated user was found in the request context.
124 String NOT_AUTHENTICATED = PREFIX + "user.not_authenticated";