- Timestamp:
- 10/06/20 13:12:24 (4 years ago)
- Location:
- src/main/java/geniusweb/profilesserver
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/geniusweb/profilesserver/AutoUpdatingProfilesRepository.java
r16 r19 367 367 * {@link FileWatcher}. 368 368 * 369 * @param file 369 * @param file the file/dir to watch 370 370 * @return a class that watches for file changes below the given file. 371 371 */ … … 380 380 * @return the root dir of the repo. This is the 'database' where all known 381 381 * profiles are stored. 382 * @throws URISyntaxException383 382 */ 384 383 protected Path getRootDir() { -
src/main/java/geniusweb/profilesserver/DefaultProfilesRepository.java
r16 r19 33 33 * all currently available profiles and domains. Invariant for this class: 34 34 * All {@link Domain}s in this map have a unique name that matches the 35 * directory name and file name on the file system below {@link #dir}. All36 * profile values in the map their {@link Profile#getDomain()} match with37 * the domain key in the map.35 * directory name and file name on the file system below the given 36 * directory. All profile values in the map their 37 * {@link Profile#getDomain()} match with the domain key in the map. 38 38 */ 39 39 protected final Map<Domain, List<Profile>> available = new ConcurrentHashMap<>(); -
src/main/java/geniusweb/profilesserver/Jackson.java
r8 r19 9 9 * 10 10 * <b> This class should is private to the profiles server and should not be 11 * used by others. 11 * used by others.</b> 12 12 */ 13 13 public class Jackson { -
src/main/java/geniusweb/profilesserver/ProfilesRepository.java
r16 r19 22 22 23 23 /** 24 * @param simple profilename of the form "domainname/profileX" (no25 * extendsions).26 * @return profile with the given name and the given domain, or null if no27 * such domain or profile exists.24 * @param profilename simple profile name of the form "domainname/profileX" 25 * (no extendsions). 26 * @return {@link Profile} with the given name and the given domain, or null 27 * if no such domain or profile exists. 28 28 * 29 29 */ -
src/main/java/geniusweb/profilesserver/events/ProfileChangeEvent.java
r1 r19 7 7 8 8 /** 9 * 10 * @param type the {@link ModificationType} of this event. 11 * 12 * @param old the profile before the change. Null if it was added. 13 * @param new the profile after the change. Null if it was removed 9 * @param oldprof the profile before the change. Null if it was added. 10 * @param newprof the profile after the change. Null if it was removed 14 11 */ 15 12 public ProfileChangeEvent(Profile oldprof, Profile newprof) { -
src/main/java/geniusweb/profilesserver/websocket/GetProfileSocket.java
r16 r19 41 41 * 42 42 * <p> 43 * Query string: the websocket allows query strings. 44 * <ul> 45 * <li>partial</li> a query key that is assigned a natural number N (0 or 46 * larger). If set, the profile is converted into a Partial Profile with the 47 * given number of points. If N>0, the maximum utility bid is included .If N>1, 48 * the minimum utility bid is included. The other bids are picked at random. 49 * This filtering mechanism only works if the profile is {@link LinearAdditive} 50 * space. The reservation bid is passed through unmodified. 43 * Query strings: the websocket allows query strings. Allowed: 44 * <table> 45 * <caption>Query strings for GetprofileSocket</caption> 46 * <tr> 47 * <th>query name</th> 48 * <th>description</th> 49 * </tr> 50 * <tr> 51 * <td>partial=N</td> 52 * <td>a query key that is assigned a natural number N (0 or larger). If set, 53 * the profile is converted into a Partial Profile with the given number of 54 * points. If N>0, the maximum utility bid is included .If N>1, the 55 * minimum utility bid is included. The other bids are picked at random. This 56 * filtering mechanism only works if the profile is {@link LinearAdditive} 57 * space. The reservation bid is passed through unmodified.</td> 58 * </tr> 59 * </table> 51 60 */ 52 61 @ServerEndpoint("/websocket/get/{domain}/{profile}")
Note:
See TracChangeset
for help on using the changeset viewer.