/actions/src/main/java/org/ala/spatial/services/dto/Service.java

http://alageospatialportal.googlecode.com/ · Java · 113 lines · 72 code · 24 blank · 17 comment · 0 complexity · 453ededa68ecd60a8a27711ba3774dcf MD5 · raw file

  1. /**************************************************************************
  2. * Copyright (C) 2010 Atlas of Living Australia
  3. * All Rights Reserved.
  4. *
  5. * The contents of this file are subject to the Mozilla Public
  6. * License Version 1.1 (the "License"); you may not use this file
  7. * except in compliance with the License. You may obtain a copy of
  8. * the License at http://www.mozilla.org/MPL/
  9. *
  10. * Software distributed under the License is distributed on an "AS
  11. * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  12. * implied. See the License for the specific language governing
  13. * rights and limitations under the License.
  14. ***************************************************************************/
  15. package org.ala.spatial.services.dto;
  16. import org.codehaus.jackson.map.annotate.JsonSerialize;
  17. /**
  18. * @author ajay
  19. */
  20. @JsonSerialize(include = JsonSerialize.Inclusion.NON_DEFAULT)
  21. public class Service {
  22. private long id;
  23. private String name;
  24. private long processid;
  25. private String specieslsid;
  26. private String area;
  27. private String layers;
  28. private String extra;
  29. private String status;
  30. private boolean privacy;
  31. public String getArea() {
  32. return area;
  33. }
  34. public void setArea(String area) {
  35. this.area = area;
  36. }
  37. public String getExtra() {
  38. return extra;
  39. }
  40. public void setExtra(String extra) {
  41. this.extra = extra;
  42. }
  43. public long getId() {
  44. return id;
  45. }
  46. public void setId(long id) {
  47. this.id = id;
  48. }
  49. public String getLayers() {
  50. return layers;
  51. }
  52. public void setLayers(String layers) {
  53. this.layers = layers;
  54. }
  55. public String getName() {
  56. return name;
  57. }
  58. public void setName(String name) {
  59. this.name = name;
  60. }
  61. public long getProcessid() {
  62. return processid;
  63. }
  64. public void setProcessid(long processid) {
  65. this.processid = processid;
  66. }
  67. public String getSpecieslsid() {
  68. return specieslsid;
  69. }
  70. public void setSpecieslsid(String specieslsid) {
  71. this.specieslsid = specieslsid;
  72. }
  73. public boolean getPrivacy() {
  74. return privacy;
  75. }
  76. public void setPrivacy(boolean privacy) {
  77. this.privacy = privacy;
  78. }
  79. public String getStatus() {
  80. return status;
  81. }
  82. public void setStatus(String status) {
  83. this.status = status;
  84. }
  85. @Override
  86. public String toString() {
  87. return "Service{" + " id=" + id + " name=" + name + " processid=" + processid + " specieslsid=" + specieslsid + " area=" + area + " layers=" + layers + " extra=" + extra + " status=" + status + " privacy=" + privacy + '}';
  88. }
  89. }