1 package org.apache.archiva.rest.api.services.v2;/*
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
37 import org.apache.archiva.rest.api.services.v2.ErrorMessage;
39 import java.util.List;
42 * @author Martin Stockhammer <martin_s@apache.org>
44 public interface ErrorKeys
47 String PREFIX = "archiva.";
48 String REPOSITORY_GROUP_PREFIX = PREFIX + "repository_group.";
49 String REPOSITORY_PREFIX = PREFIX + "repository.";
51 String INVALID_RESULT_SET_ERROR = "archiva.result_set.invalid";
52 String REPOSITORY_ADMIN_ERROR = "archiva.repositoryadmin.error";
53 String LDAP_CF_INIT_FAILED = "archiva.ldap.cf.init.failed";
54 String LDAP_USER_MAPPER_INIT_FAILED = "archiva.ldap.usermapper.init.failed";
55 String LDAP_COMMUNICATION_ERROR = "archiva.ldap.communication_error";
56 String LDAP_INVALID_NAME = "archiva.ldap.invalid_name";
57 String LDAP_GENERIC_ERROR = "archiva.ldap.generic_error";
58 String LDAP_SERVICE_UNAVAILABLE = "archiva.ldap.service_unavailable";
59 String LDAP_SERVICE_AUTHENTICATION_FAILED = "archiva.ldap.authentication.failed";
60 String LDAP_SERVICE_AUTHENTICATION_NOT_SUPPORTED = "archiva.ldap.authentication.not_supported";
61 String LDAP_SERVICE_NO_PERMISSION = "archiva.ldap.no_permissions";
63 String PROPERTY_NOT_FOUND = "archiva.property.not.found";
65 String MISSING_DATA = "archiva.missing.data";
67 String REPOSITORY_GROUP_NOT_FOUND = REPOSITORY_GROUP_PREFIX+"notfound";
68 String REPOSITORY_GROUP_ADD_FAILED = REPOSITORY_GROUP_PREFIX+"add.failed" ;
69 String REPOSITORY_GROUP_EXIST = REPOSITORY_GROUP_PREFIX+"exists";
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";
82 String REPOSITORY_REMOTE_INDEX_DOWNLOAD_FAILED = REPOSITORY_PREFIX + "remote.index.download_failed";