Skip to content

Commit

Permalink
Merge pull request #316 from icatproject/miredot-jakarta
Browse files Browse the repository at this point in the history
Update miredot
  • Loading branch information
ajkyffin authored Mar 14, 2024
2 parents a1ec12a + 831ce07 commit 1953429
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 25 deletions.
7 changes: 6 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
<plugin>
<groupId>com.qmino</groupId>
<artifactId>miredot-plugin</artifactId>
<version>2.4.1-Java11</version>
<version>2.4.4-Java11</version>
<executions>
<execution>
<id>miredot</id>
Expand Down Expand Up @@ -192,6 +192,11 @@
<PARTIAL_RESOURCE_OVERLAP>failbuild</PARTIAL_RESOURCE_OVERLAP>
</checks>
</analysis>
<restModel>
<restFramework>
<name>jakarta</name>
</restFramework>
</restModel>
</configuration>
</plugin>

Expand Down
48 changes: 24 additions & 24 deletions src/main/java/org/icatproject/exposed/ICATRest.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private void checkRoot(String sessionId) throws IcatException {
/**
* Create one or more entities
*
* @summary Write
* @title Write
*
* @param sessionId
* a sessionId of a user which takes the form
Expand Down Expand Up @@ -209,7 +209,7 @@ public String write(@Context HttpServletRequest request, @FormParam("sessionId")
/**
* Clone an entity
*
* @summary Clone
* @title Clone
*
* @param sessionId
* a sessionId of a user which takes the form
Expand Down Expand Up @@ -253,7 +253,7 @@ public String cloneEntity(@Context HttpServletRequest request, @FormParam("sessi
/**
* Delete entities as a json string.
*
* @summary delete
* @title delete
*
* @param sessionId
* a sessionId of a user which takes the form
Expand Down Expand Up @@ -333,7 +333,7 @@ private EntityBaseBean getOne(JsonObject entity, int offset) throws IcatExceptio
/**
* Export data from ICAT
*
* @summary Export Metadata
* @title Export Metadata
*
* @param jsonString
* what to export which takes the form
Expand Down Expand Up @@ -372,7 +372,7 @@ public Response exportData(@QueryParam("json") String jsonString) throws IcatExc
* This call is primarily for testing. Authorization is not done so you must
* be listed in rootUserNames to use this call.
*
* @summary Execute line of jpql
* @title Execute line of jpql
*
* @param sessionId
* a sessionId of a user listed in rootUserNames
Expand Down Expand Up @@ -438,7 +438,7 @@ public String getJpql(@QueryParam("sessionId") String sessionId, @QueryParam("qu
/**
* Return all that can be returned when not authenticated
*
* @summary Properties
* @title Properties
*
* @return a json string
*
Expand Down Expand Up @@ -484,7 +484,7 @@ public String getProperties() throws IcatException {
/**
* Return information about a session
*
* @summary Session
* @title Session
*
* @param sessionId
* a sessionId of a user which takes the form
Expand Down Expand Up @@ -517,7 +517,7 @@ public String getSession(@PathParam("sessionId") String sessionId) throws IcatEx
* unexpired session. This call should be used for a user logged in using an
* authentication plugin configured to not return the mnemonic.
*
* @summary LoggedIn
* @title LoggedIn
*
* @param userName
* the name of the user (without mnemonic)
Expand All @@ -539,7 +539,7 @@ public String isLoggedIn1(@PathParam("userName") String userName) {
* Returns after specified number of seconds - returning elapsed time in
* milliseconds
*
* @summary Sleep
* @title Sleep
*
* @param seconds
* how many seconds to wait before returning
Expand Down Expand Up @@ -569,7 +569,7 @@ public String sleep(@PathParam("seconds") Long seconds) {
* unexpired session. This call should be used for a user logged in using an
* authentication plugin configured to return the mnemonic.
*
* @summary LoggedIn
* @title LoggedIn
*
* @param mnemonic
* the mnemomnic used to identify the authentication plugin
Expand All @@ -593,7 +593,7 @@ public String isLoggedIn2(@PathParam("mnemonic") String mnemonic, @PathParam("us
/**
* return the version of the icat server
*
* @summary Version
* @title Version
*
* @return json string of the form: <samp>{"version":"4.4.0"}</samp>
*/
Expand Down Expand Up @@ -653,7 +653,7 @@ public String getVersion() {
* file.</dd>
* </dl>
*
* @summary import metadata
* @title import metadata
*
* @throws IcatException
* when something is wrong
Expand Down Expand Up @@ -841,7 +841,7 @@ private void jsonise(Object result, JsonGenerator gen) throws IcatException {
/**
* Login to create a session
*
* @summary Login
* @title Login
*
* @param request
* @param jsonString
Expand Down Expand Up @@ -913,7 +913,7 @@ public String login(@Context HttpServletRequest request, @FormParam("json") Stri
/**
* Logout from a session
*
* @summary Logout
* @title Logout
*
* @param sessionId
* a sessionId of a user which takes the form
Expand All @@ -932,7 +932,7 @@ public void logout(@Context HttpServletRequest request, @PathParam("sessionId")
/**
* perform a lucene search
*
* @summary lucene search
* @title lucene search
*
* @param sessionId
* a sessionId of a user which takes the form
Expand Down Expand Up @@ -1120,7 +1120,7 @@ public String lucene(@Context HttpServletRequest request, @QueryParam("sessionId
* This is an internal call made by one icat instance to another in the same
* cluster
*
* @summary markPublicTablesStale
* @title markPublicTablesStale
*/
@POST
@Path("gatekeeper/markPublicTablesStale")
Expand All @@ -1138,7 +1138,7 @@ public void gatekeeperMarkPublicTablesStale(@Context HttpServletRequest request)
* This is an internal call made by one icat instance to another in the same
* cluster
*
* @summary markPublicTablesStale
* @title markPublicTablesStale
*/
@POST
@Path("gatekeeper/markPublicStepsStale")
Expand All @@ -1153,7 +1153,7 @@ public void gatekeeperMarkPublicStepsStale(@Context HttpServletRequest request)
/**
* Stop population of the lucene database if it is running.
*
* @summary Lucene Clear
* @title Lucene Clear
*
* @param sessionId
* a sessionId of a user listed in rootUserNames
Expand All @@ -1171,7 +1171,7 @@ public void luceneClear(@QueryParam("sessionId") String sessionId) throws IcatEx
/**
* Forces a commit of the lucene database
*
* @summary Lucene Commit
* @title Lucene Commit
*
* @param sessionId
* a sessionId of a user listed in rootUserNames
Expand All @@ -1189,7 +1189,7 @@ public void luceneCommit(@FormParam("sessionId") String sessionId) throws IcatEx
/**
* Return a list of class names for which population is going on
*
* @summary lucene GetPopulating
* @title lucene GetPopulating
*
* @param sessionId
* a sessionId of a user listed in rootUserNames
Expand Down Expand Up @@ -1217,7 +1217,7 @@ public String luceneGetPopulating(@QueryParam("sessionId") String sessionId) thr
* Call for testing only. The call will take the time specified and then
* returns.
*
* @summary wait
* @title wait
*
* @param sessionId
* a sessionId of a user listed in rootUserNames
Expand All @@ -1240,7 +1240,7 @@ public void waitMillis(@FormParam("sessionId") String sessionId, @FormParam("ms"
/**
* Clear and repopulate lucene documents for the specified entityName
*
* @summary Lucene Populate
* @title Lucene Populate
*
* @param sessionId
* a sessionId of a user listed in rootUserNames
Expand All @@ -1263,7 +1263,7 @@ public void lucenePopulate(@FormParam("sessionId") String sessionId, @PathParam(
/**
* Refresh session
*
* @summary Refresh
* @title Refresh
*
* @param sessionId
* a sessionId of a user which takes the form
Expand All @@ -1284,7 +1284,7 @@ public void refresh(@Context HttpServletRequest request, @PathParam("sessionId")
* This includes the functionality of both search and get calls in the SOAP
* web service.
*
* @summary search/get
* @title search/get
*
* @param sessionId
* a sessionId of a user which takes the form
Expand Down

0 comments on commit 1953429

Please sign in to comment.