Changeset 7
- Timestamp:
- 11/28/19 14:40:56 (5 years ago)
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pom.xml
r4 r7 6 6 <artifactId>profilesserver</artifactId> 7 7 <packaging>war</packaging> 8 <version>1. 0.0</version>8 <version>1.1.0</version> 9 9 <name>profileserver Maven Webapp</name> 10 10 <url>http://maven.apache.org</url> … … 16 16 <basedir>.</basedir> 17 17 <passwd>${env.ARTIFACTORY_PASS}</passwd> 18 <jackson-2-version>2.9. 6</jackson-2-version>19 <tomcat.version>8. 0.53</tomcat.version>18 <jackson-2-version>2.9.10</jackson-2-version> 19 <tomcat.version>8.5.20</tomcat.version> 20 20 </properties> 21 21 … … 48 48 <dependencies> 49 49 <dependency> 50 <groupId>geniusweb</groupId> 51 <artifactId>profile</artifactId> 52 <version>1.1.0</version> 53 </dependency> 54 55 <dependency> 56 <groupId>tudelft.utilities</groupId> 57 <artifactId>listener</artifactId> 58 <version>1.1.0</version> 59 </dependency> 60 61 <dependency> 62 <groupId>tudelft.utilities</groupId> 63 <artifactId>tree</artifactId> 64 <version>1.0.0</version> 65 </dependency> 66 67 <dependency> 68 <groupId>tudelft.utilities</groupId> 69 <artifactId>junit</artifactId> 70 <version>1.0.2</version> 71 </dependency> 72 73 <dependency> 74 <groupId>tudelft.utilities</groupId> 75 <artifactId>logging</artifactId> 76 <version>1.0.0</version> 77 </dependency> 78 <dependency> 79 <groupId>tudelft.utilities</groupId> 80 <artifactId>files</artifactId> 81 <version>1.0.0</version> 82 </dependency> 83 84 85 <dependency> 86 <groupId>javax.websocket</groupId> 87 <artifactId>javax.websocket-api</artifactId> 88 <version>1.1</version> 89 </dependency> 90 91 <!-- the core, which includes Streaming API, shared low-level abstractions 92 (but NOT data-binding) --> 93 <dependency> 94 <groupId>com.fasterxml.jackson.core</groupId> 95 <artifactId>jackson-core</artifactId> 96 <version>${jackson-2-version}</version> 97 </dependency> 98 99 <!-- Just the annotations; use this dependency if you want to attach annotations 100 to classes without connecting them to the code. --> 101 <dependency> 102 <groupId>com.fasterxml.jackson.core</groupId> 103 <artifactId>jackson-annotations</artifactId> 104 <version>${jackson-2-version}</version> 105 </dependency> 106 107 <!-- databinding; ObjectMapper, JsonNode and related classes are here --> 108 <dependency> 109 <groupId>com.fasterxml.jackson.core</groupId> 110 <artifactId>jackson-databind</artifactId> 111 <version>${jackson-2-version}</version> 112 </dependency> 113 114 <!-- smile (binary JSON). Other artifacts in this group do other formats. --> 115 <dependency> 116 <groupId>com.fasterxml.jackson.dataformat</groupId> 117 <artifactId>jackson-dataformat-smile</artifactId> 118 <version>${jackson-2-version}</version> 119 </dependency> 120 <!-- JAX-RS provider --> 121 <dependency> 122 <groupId>com.fasterxml.jackson.jaxrs</groupId> 123 <artifactId>jackson-jaxrs-json-provider</artifactId> 124 <version>${jackson-2-version}</version> 125 </dependency> 126 <!-- Support for JAX-B annotations as additional configuration --> 127 <dependency> 128 <groupId>com.fasterxml.jackson.module</groupId> 129 <artifactId>jackson-module-jaxb-annotations</artifactId> 130 <version>${jackson-2-version}</version> 131 </dependency> 132 133 <!-- embedded-tomcat for testing the server --> 134 <dependency> 135 <groupId>org.apache.tomcat.embed</groupId> 136 <artifactId>tomcat-embed-core</artifactId> 137 <version>${tomcat.version}</version> 138 <scope>test</scope> 139 </dependency> 140 <dependency> 141 <groupId>org.apache.tomcat.embed</groupId> 142 <artifactId>tomcat-embed-jasper</artifactId> 143 <version>${tomcat.version}</version> 144 <scope>test</scope> 145 </dependency> 146 <dependency> 147 <groupId>org.apache.tomcat</groupId> 148 <artifactId>tomcat-jasper</artifactId> 149 <version>${tomcat.version}</version> 150 <scope>test</scope> 151 </dependency> 152 <dependency> 153 <groupId>org.apache.tomcat</groupId> 154 <artifactId>tomcat-jasper-el</artifactId> 155 <version>${tomcat.version}</version> 156 <scope>test</scope> 157 </dependency> 158 <dependency> 159 <groupId>org.apache.tomcat</groupId> 160 <artifactId>tomcat-jsp-api</artifactId> 161 <version>${tomcat.version}</version> 162 <scope>test</scope> 163 </dependency> 164 <dependency> 165 <groupId>com.neovisionaries</groupId> 166 <artifactId>nv-websocket-client</artifactId> 167 <version>2.6</version> 168 <scope>test</scope> 169 </dependency> 170 171 <dependency> 172 <groupId>org.apache.tomcat.embed</groupId> 173 <artifactId>tomcat-embed-core</artifactId> 174 <version>${tomcat.version}</version> 175 <scope>test</scope> 176 </dependency> 177 <dependency> 178 <groupId>org.apache.tomcat</groupId> 179 <artifactId>tomcat-websocket</artifactId> 180 <version>${tomcat.version}</version> 181 <scope>test</scope> 182 </dependency> 183 184 <dependency> 185 <groupId>org.python</groupId> 186 <artifactId>jython-standalone</artifactId> 187 <version>2.7.0</version> 188 <scope>test</scope> 189 </dependency> 190 191 <dependency> 50 192 <groupId>junit</groupId> 51 193 <artifactId>junit</artifactId> … … 54 196 </dependency> 55 197 <dependency> 56 <groupId>tudelft.utilities</groupId>57 <artifactId>logging</artifactId>58 <version>1.0.0</version>59 </dependency>60 <dependency>61 <groupId>tudelft.utilities</groupId>62 <artifactId>files</artifactId>63 <version>1.0.0</version>64 </dependency>65 66 <dependency>67 198 <groupId>org.mockito</groupId> 68 199 <artifactId>mockito-all</artifactId> 69 200 <version>1.9.5</version> 70 <scope>test</scope>71 </dependency>72 73 74 <dependency>75 <groupId>geniusweb</groupId>76 <artifactId>profile</artifactId>77 <version>1.0.0</version>78 </dependency>79 80 <dependency>81 <groupId>tudelft.utilities</groupId>82 <artifactId>listener</artifactId>83 <version>1.0.0</version>84 </dependency>85 86 <dependency>87 <groupId>tudelft.utilities</groupId>88 <artifactId>tree</artifactId>89 <version>1.0.0</version>90 </dependency>91 92 <dependency>93 <groupId>tudelft.utilities</groupId>94 <artifactId>junit</artifactId>95 <version>1.0.1</version>96 </dependency>97 98 <dependency>99 <groupId>javax.websocket</groupId>100 <artifactId>javax.websocket-api</artifactId>101 <version>1.1</version>102 </dependency>103 104 <!-- the core, which includes Streaming API, shared low-level abstractions105 (but NOT data-binding) -->106 <dependency>107 <groupId>com.fasterxml.jackson.core</groupId>108 <artifactId>jackson-core</artifactId>109 <version>${jackson-2-version}</version>110 </dependency>111 112 <!-- Just the annotations; use this dependency if you want to attach annotations113 to classes without connecting them to the code. -->114 <dependency>115 <groupId>com.fasterxml.jackson.core</groupId>116 <artifactId>jackson-annotations</artifactId>117 <version>${jackson-2-version}</version>118 </dependency>119 120 <!-- databinding; ObjectMapper, JsonNode and related classes are here -->121 <dependency>122 <groupId>com.fasterxml.jackson.core</groupId>123 <artifactId>jackson-databind</artifactId>124 <version>${jackson-2-version}</version>125 </dependency>126 127 <!-- smile (binary JSON). Other artifacts in this group do other formats. -->128 <dependency>129 <groupId>com.fasterxml.jackson.dataformat</groupId>130 <artifactId>jackson-dataformat-smile</artifactId>131 <version>${jackson-2-version}</version>132 </dependency>133 <!-- JAX-RS provider -->134 <dependency>135 <groupId>com.fasterxml.jackson.jaxrs</groupId>136 <artifactId>jackson-jaxrs-json-provider</artifactId>137 <version>${jackson-2-version}</version>138 </dependency>139 <!-- Support for JAX-B annotations as additional configuration -->140 <dependency>141 <groupId>com.fasterxml.jackson.module</groupId>142 <artifactId>jackson-module-jaxb-annotations</artifactId>143 <version>${jackson-2-version}</version>144 </dependency>145 146 <!-- embedded-tomcat for testing the server -->147 <dependency>148 <groupId>org.apache.tomcat.embed</groupId>149 <artifactId>tomcat-embed-core</artifactId>150 <version>${tomcat.version}</version>151 <scope>test</scope>152 </dependency>153 <dependency>154 <groupId>org.apache.tomcat.embed</groupId>155 <artifactId>tomcat-embed-jasper</artifactId>156 <version>${tomcat.version}</version>157 <scope>test</scope>158 </dependency>159 <dependency>160 <groupId>org.apache.tomcat</groupId>161 <artifactId>tomcat-jasper</artifactId>162 <version>${tomcat.version}</version>163 <scope>test</scope>164 </dependency>165 <dependency>166 <groupId>org.apache.tomcat</groupId>167 <artifactId>tomcat-jasper-el</artifactId>168 <version>${tomcat.version}</version>169 <scope>test</scope>170 </dependency>171 <dependency>172 <groupId>org.apache.tomcat</groupId>173 <artifactId>tomcat-jsp-api</artifactId>174 <version>${tomcat.version}</version>175 <scope>test</scope>176 </dependency>177 <dependency>178 <groupId>com.neovisionaries</groupId>179 <artifactId>nv-websocket-client</artifactId>180 <version>2.6</version>181 <scope>test</scope>182 </dependency>183 184 <dependency>185 <groupId>org.apache.tomcat.embed</groupId>186 <artifactId>tomcat-embed-core</artifactId>187 <version>8.5.20</version>188 <scope>test</scope>189 </dependency>190 <dependency>191 <groupId>org.apache.tomcat</groupId>192 <artifactId>tomcat-websocket</artifactId>193 <version>8.5.20</version>194 <scope>test</scope>195 </dependency>196 197 <dependency>198 <groupId>org.python</groupId>199 <artifactId>jython-standalone</artifactId>200 <version>2.7.0</version>201 201 <scope>test</scope> 202 202 </dependency> … … 237 237 </resources> 238 238 </configuration> 239 </execution> 240 </executions> 241 </plugin> 242 <plugin> 243 <groupId>org.apache.maven.plugins</groupId> 244 <artifactId>maven-enforcer-plugin</artifactId> 245 <version>3.0.0-M2</version> 246 <executions> 247 <execution> 248 <id>enforce</id> 249 <configuration> 250 <rules> 251 <dependencyConvergence /> 252 </rules> 253 </configuration> 254 <goals> 255 <goal>enforce</goal> 256 </goals> 239 257 </execution> 240 258 </executions> -
src/main/java/geniusweb/profilesserver/DefaultProfilesFactory.java
r1 r7 110 110 available.put(domain, new LinkedList<>()); 111 111 } 112 notify Change(new DomainChangeEvent(null, domain));112 notifyListeners(new DomainChangeEvent(null, domain)); 113 113 } 114 114 … … 130 130 131 131 for (Profile prof : removedprofiles) { 132 notify Change(new ProfileChangeEvent(prof, null));133 } 134 notify Change(new DomainChangeEvent(domain, null));132 notifyListeners(new ProfileChangeEvent(prof, null)); 133 } 134 notifyListeners(new DomainChangeEvent(domain, null)); 135 135 } 136 136 … … 166 166 profiles.add(profile); 167 167 } 168 notify Change(new ProfileChangeEvent(oldprofile, profile));168 notifyListeners(new ProfileChangeEvent(oldprofile, profile)); 169 169 170 170 } … … 188 188 profilelist.remove(profile); 189 189 } 190 notify Change(new ProfileChangeEvent(profile, null));190 notifyListeners(new ProfileChangeEvent(profile, null)); 191 191 192 192 }
Note:
See TracChangeset
for help on using the changeset viewer.