1 17 20 package org.apache.forrest.forrestbot.webapp.dto; 21 22 import java.util.Date ; 23 24 public class ProjectDTO implements Comparable { 25 String name; 26 int status; 27 Date lastBuilt; 28 String logUrl; 29 String url; 30 boolean isLogged; 31 boolean deployable; 32 boolean buildable; 33 34 37 public String getName() { 38 return name; 39 } 40 41 44 public int getStatus() { 45 return status; 46 } 47 48 51 public void setName(String string) { 52 name = string; 53 } 54 55 58 public void setStatus(int i) { 59 status = i; 60 } 61 62 65 public Date getLastBuilt() { 66 return lastBuilt; 67 } 68 69 72 public void setLastBuilt(Date date) { 73 lastBuilt = date; 74 } 75 76 79 public String getLogUrl() { 80 return logUrl; 81 } 82 83 86 public String getUrl() { 87 return url; 88 } 89 90 93 public void setLogUrl(String string) { 94 logUrl = string; 95 } 96 97 100 public void setUrl(String string) { 101 url = string; 102 } 103 104 107 public boolean isLogged() { 108 return isLogged; 109 } 110 111 114 public void setLogged(boolean b) { 115 isLogged = b; 116 } 117 118 121 public boolean isBuildable() { 122 return buildable; 123 } 124 125 128 public boolean isDeployable() { 129 return deployable; 130 } 131 132 135 public void setBuildable(boolean b) { 136 buildable = b; 137 } 138 139 142 public void setDeployable(boolean b) { 143 deployable = b; 144 } 145 146 149 public int compareTo(Object arg0) { 150 if (arg0 instanceof ProjectDTO) 152 return getName().compareTo(((ProjectDTO)arg0).getName()); 153 return 0; 154 } 155 156 } 157 | Popular Tags |