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.

BeanInformation.java 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. package org.apache.archiva.rest.api.model.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. import io.swagger.v3.oas.annotations.media.Schema;
  19. import javax.xml.bind.annotation.XmlRootElement;
  20. import java.io.Serializable;
  21. /**
  22. * @author Martin Stockhammer <martin_s@apache.org>
  23. */
  24. @XmlRootElement(name="beanInformation")
  25. public class BeanInformation implements Serializable
  26. {
  27. private static final long serialVersionUID = -432385743277355987L;
  28. String id;
  29. String displayName;
  30. String descriptionKey;
  31. String defaultDescription;
  32. boolean readonly;
  33. @Schema(description = "The identifier")
  34. public String getId( )
  35. {
  36. return id;
  37. }
  38. public void setId( String id )
  39. {
  40. this.id = id;
  41. }
  42. @Schema(description = "The display name")
  43. public String getDisplayName( )
  44. {
  45. return displayName;
  46. }
  47. public void setDisplayName( String displayName )
  48. {
  49. this.displayName = displayName;
  50. }
  51. @Schema(description = "The translation key for the description")
  52. public String getDescriptionKey( )
  53. {
  54. return descriptionKey;
  55. }
  56. public void setDescriptionKey( String descriptionKey )
  57. {
  58. this.descriptionKey = descriptionKey;
  59. }
  60. @Schema(description = "The description translated in the default language")
  61. public String getDefaultDescription( )
  62. {
  63. return defaultDescription;
  64. }
  65. public void setDefaultDescription( String defaultDescription )
  66. {
  67. this.defaultDescription = defaultDescription;
  68. }
  69. @Schema(description = "True, if this bean cannot be removed")
  70. public boolean isReadonly( )
  71. {
  72. return readonly;
  73. }
  74. public void setReadonly( boolean readonly )
  75. {
  76. this.readonly = readonly;
  77. }
  78. }