1 16 17 package org.apache.jetspeed.services.webpage; 18 19 25 public class SecuredSite implements Site 26 { 27 private long id; 31 private String url; 32 private String name; 33 private int status; 34 private String username; 35 private String password; 36 37 44 public SecuredSite(String name, String url) 45 { 46 this.id = WebPageHelper.generateId(); 47 this.name = name; 48 this.url = url; 49 } 50 51 56 public String getURL() 57 { 58 return this.url; 59 } 60 61 66 public long getID() 67 { 68 return this.id; 69 } 70 71 76 public void setURL(String url) 77 { 78 this.url = url; 79 } 80 81 86 public String getName() 87 { 88 return name; 89 } 90 91 96 public void setName(String name) 97 { 98 this.name = name; 99 } 100 101 106 public String getUserName() 107 { 108 return username; 109 } 110 111 116 public void setUserName(String username) 117 { 118 this.username = username; 119 } 120 121 126 public String getPassword() 127 { 128 return password; 129 } 130 131 136 public void setPassword(String password) 137 { 138 this.password = password; 139 } 140 141 146 public int getStatus() 147 { 148 return status; 149 } 150 151 156 public void setStatus(int status) 157 { 158 this.status = status; 159 } 160 161 166 public boolean isSecured() 167 { 168 return true; 169 } 170 171 } 172 | Popular Tags |