You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ErrorKeys.java 3.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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
  9. *
  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
  16. * under the License.
  17. */
  18. /*
  19. * Licensed to the Apache Software Foundation (ASF) under one
  20. * or more contributor license agreements. See the NOTICE file
  21. * distributed with this work for additional information
  22. * regarding copyright ownership. The ASF licenses this file
  23. * to you under the Apache License, Version 2.0 (the
  24. * "License"); you may not use this file except in compliance
  25. * with the License. You may obtain a copy of the License at
  26. *
  27. * http://www.apache.org/licenses/LICENSE-2.0
  28. * Unless required by applicable law or agreed to in writing,
  29. * software distributed under the License is distributed on an
  30. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  31. * KIND, either express or implied. See the License for the
  32. * specific language governing permissions and limitations
  33. * under the License.
  34. */
  35. import org.apache.archiva.rest.api.services.v2.ErrorMessage;
  36. import java.util.List;
  37. /**
  38. * @author Martin Stockhammer <martin_s@apache.org>
  39. */
  40. public interface ErrorKeys
  41. {
  42. String PREFIX = "archiva.";
  43. String REPOSITORY_GROUP_PREFIX = PREFIX + "repository_group.";
  44. String REPOSITORY_PREFIX = PREFIX + "repository.";
  45. String INVALID_RESULT_SET_ERROR = "archiva.result_set.invalid";
  46. String REPOSITORY_ADMIN_ERROR = "archiva.repositoryadmin.error";
  47. String LDAP_CF_INIT_FAILED = "archiva.ldap.cf.init.failed";
  48. String LDAP_USER_MAPPER_INIT_FAILED = "archiva.ldap.usermapper.init.failed";
  49. String LDAP_COMMUNICATION_ERROR = "archiva.ldap.communication_error";
  50. String LDAP_INVALID_NAME = "archiva.ldap.invalid_name";
  51. String LDAP_GENERIC_ERROR = "archiva.ldap.generic_error";
  52. String LDAP_SERVICE_UNAVAILABLE = "archiva.ldap.service_unavailable";
  53. String LDAP_SERVICE_AUTHENTICATION_FAILED = "archiva.ldap.authentication.failed";
  54. String LDAP_SERVICE_AUTHENTICATION_NOT_SUPPORTED = "archiva.ldap.authentication.not_supported";
  55. String LDAP_SERVICE_NO_PERMISSION = "archiva.ldap.no_permissions";
  56. String PROPERTY_NOT_FOUND = "archiva.property.not.found";
  57. String MISSING_DATA = "archiva.missing.data";
  58. String REPOSITORY_GROUP_NOT_FOUND = REPOSITORY_GROUP_PREFIX+"notfound";
  59. String REPOSITORY_GROUP_ADD_FAILED = REPOSITORY_GROUP_PREFIX+"add.failed" ;
  60. String REPOSITORY_GROUP_EXIST = REPOSITORY_GROUP_PREFIX+"exists";
  61. String REPOSITORY_GROUP_DELETE_FAILED = REPOSITORY_GROUP_PREFIX + "delete.failed";
  62. String REPOSITORY_NOT_FOUND = REPOSITORY_PREFIX + "notfound";
  63. String REPOSITORY_MANAGED_NOT_FOUND = REPOSITORY_PREFIX + "managed.notfound";
  64. String REPOSITORY_REMOTE_NOT_FOUND = REPOSITORY_PREFIX + "remote.notfound";
  65. String REPOSITORY_METADATA_ERROR = REPOSITORY_PREFIX + "metadata_error";
  66. String TASK_QUEUE_FAILED = PREFIX + "task.queue_failed";
  67. String REPOSITORY_SCAN_FAILED = REPOSITORY_PREFIX + "scan.failed";
  68. String ARTIFACT_EXISTS_AT_DEST = REPOSITORY_PREFIX + "artifact.dest.exists";
  69. String REPOSITORY_REMOTE_INDEX_DOWNLOAD_FAILED = REPOSITORY_PREFIX + "remote.index.download_failed";
  70. }