- Timestamp:
- 02/23/15 12:47:30 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/rest/DebugResource.java
r5892 r6015 44 44 45 45 /** 46 * 46 * The class is used only by "admin" and "developer" principals; these account types are set in "principal" table. 47 47 * @author olhsha 48 48 */ … … 53 53 public static final String developer = "developer"; 54 54 55 55 /** 56 * 57 * @return an arbitrary UUID string. 58 */ 56 59 @GET 57 60 @Produces(MediaType.TEXT_PLAIN) 58 61 @Path("uuid") 59 public String generateUUID() throws IOException{62 public String generateUUID(){ 60 63 return (Helpers.generateUUID()).toString(); 61 64 } 62 65 66 /** 67 * 68 * @return An {@link AnnotationInfoList}-element containing the list of {@link AnnotationInfo} objects of ALL the annotations, 69 * with the latest (youngest) annotation on the top. 70 * @throws IOException if sending the error fails. 71 */ 63 72 @GET 64 73 @Produces(MediaType.TEXT_XML) … … 82 91 83 92 84 93 /** 94 * 95 * @param n # of strings. 96 * @return the latest n strings of the dasish database log file. 97 * @throws IOException if sending the error fails. 98 */ 85 99 @GET 86 100 @Produces(MediaType.TEXT_PLAIN) … … 102 116 } 103 117 118 /** 119 * 120 * @return the remote ID of the logged in user. 121 */ 104 122 @GET 105 123 @Produces(MediaType.TEXT_PLAIN) … … 110 128 } 111 129 112 ///// 130 /** 131 * 132 * @param n # of strings 133 * @return the last n strings of the dasish server logger (non-SQL-request logs). 134 * @throws IOException if sending the error fails. 135 */ 113 136 @GET 114 137 @Produces(MediaType.TEXT_PLAIN) … … 130 153 } 131 154 132 ////////////////////////////////// 155 /** 156 * 157 * @param principalId the external UUID of a principal whose account type must be updated, 158 * @param account the new account type (admin, developer, user). 159 * @return a message if the account has been updated or not. 160 * @throws IOException if sending the error fails. 161 */ 133 162 @PUT 134 163 @Produces(MediaType.TEXT_XML) … … 157 186 } 158 187 159 ////////////////////////////////// 188 /** 189 * 190 * @param resource a type of resource (annotation, target, cached representation, principal, notebook). 191 * @param oldExternalId the old external UUID of the resource. 192 * @param newExternalId the new UUID of the resource 193 * @return the message if the "newExternalIdentifier" has replaced the "oldExternalIdentifier" or not, 194 * @throws IOException is sending the error fails. 195 */ 160 196 @PUT 161 197 @Produces(MediaType.TEXT_XML)
Note: See TracChangeset
for help on using the changeset viewer.