Added hidden path for reserved operations
This commit is contained in:
parent
2453a56f19
commit
47331ea209
|
@ -61,6 +61,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||||
@RequestHeader(name = "Content-Type", description = "application/json") })
|
@RequestHeader(name = "Content-Type", description = "application/json") })
|
||||||
public class ProfiledDocuments {
|
public class ProfiledDocuments {
|
||||||
|
|
||||||
|
public static final String HIDDEN_PATH = "hidden";
|
||||||
private ProfiledMongoManager manager;
|
private ProfiledMongoManager manager;
|
||||||
private EventManager eventManager = EventManager.getInstance(); // as singleton
|
private EventManager eventManager = EventManager.getInstance(); // as singleton
|
||||||
|
|
||||||
|
@ -229,6 +230,8 @@ public class ProfiledDocuments {
|
||||||
* @param id the id
|
* @param id the id
|
||||||
* @param force the force
|
* @param force the force
|
||||||
* @return the boolean
|
* @return the boolean
|
||||||
|
*
|
||||||
|
* Added by Francesco M.
|
||||||
*/
|
*/
|
||||||
@DELETE
|
@DELETE
|
||||||
@Produces(MediaType.APPLICATION_JSON)
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
|
@ -246,10 +249,11 @@ public class ProfiledDocuments {
|
||||||
* @return the boolean
|
* @return the boolean
|
||||||
*
|
*
|
||||||
* @Ignore means excluded by API doc
|
* @Ignore means excluded by API doc
|
||||||
|
* Updated by Francesco M.
|
||||||
*/
|
*/
|
||||||
@DELETE
|
@DELETE
|
||||||
@Produces(MediaType.APPLICATION_JSON)
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
@Path("{" + InterfaceConstants.Parameters.PROJECT_ID + "}")
|
@Path("{" + InterfaceConstants.Parameters.PROJECT_ID + "}"+"/"+HIDDEN_PATH)
|
||||||
@Ignore
|
@Ignore
|
||||||
public Boolean delete(@PathParam(InterfaceConstants.Parameters.PROJECT_ID) String id,
|
public Boolean delete(@PathParam(InterfaceConstants.Parameters.PROJECT_ID) String id,
|
||||||
@DefaultValue("false") @QueryParam(InterfaceConstants.Parameters.FORCE) Boolean force, @QueryParam(InterfaceConstants.Parameters.IGNORE_ERRORS) Boolean ignoreErrors) {
|
@DefaultValue("false") @QueryParam(InterfaceConstants.Parameters.FORCE) Boolean force, @QueryParam(InterfaceConstants.Parameters.IGNORE_ERRORS) Boolean ignoreErrors) {
|
||||||
|
@ -327,6 +331,8 @@ public class ProfiledDocuments {
|
||||||
* @param force the force
|
* @param force the force
|
||||||
* @param path the path must be passed as text in the body
|
* @param path the path must be passed as text in the body
|
||||||
* @return the project
|
* @return the project
|
||||||
|
*
|
||||||
|
* Added by Francesco M
|
||||||
*/
|
*/
|
||||||
@RequestHeaders({
|
@RequestHeaders({
|
||||||
@RequestHeader(name = "Authorization", description = "VRE Bearer token, see https://dev.d4science.org/how-to-access-resources"),
|
@RequestHeader(name = "Authorization", description = "VRE Bearer token, see https://dev.d4science.org/how-to-access-resources"),
|
||||||
|
@ -351,6 +357,7 @@ public class ProfiledDocuments {
|
||||||
* @return the project
|
* @return the project
|
||||||
*
|
*
|
||||||
* @Ignore means that is excluded by API doc
|
* @Ignore means that is excluded by API doc
|
||||||
|
* Updated by Francesco M.
|
||||||
*/
|
*/
|
||||||
@RequestHeaders({
|
@RequestHeaders({
|
||||||
@RequestHeader(name = "Authorization", description = "VRE Bearer token, see https://dev.d4science.org/how-to-access-resources"),
|
@RequestHeader(name = "Authorization", description = "VRE Bearer token, see https://dev.d4science.org/how-to-access-resources"),
|
||||||
|
@ -358,7 +365,7 @@ public class ProfiledDocuments {
|
||||||
@POST
|
@POST
|
||||||
@Consumes(MediaType.APPLICATION_JSON)
|
@Consumes(MediaType.APPLICATION_JSON)
|
||||||
@Produces(MediaType.APPLICATION_JSON)
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
@Path("/" + InterfaceConstants.Methods.DELETE_FILES_PATH + "/{" + InterfaceConstants.Parameters.PROJECT_ID + "}")
|
@Path("/" + InterfaceConstants.Methods.DELETE_FILES_PATH +"/"+HIDDEN_PATH+"/{" + InterfaceConstants.Parameters.PROJECT_ID + "}")
|
||||||
@Ignore
|
@Ignore
|
||||||
public Project deleteFileSet(@PathParam(InterfaceConstants.Parameters.PROJECT_ID) String id,
|
public Project deleteFileSet(@PathParam(InterfaceConstants.Parameters.PROJECT_ID) String id,
|
||||||
@DefaultValue("false") @QueryParam(InterfaceConstants.Parameters.FORCE) Boolean force,
|
@DefaultValue("false") @QueryParam(InterfaceConstants.Parameters.FORCE) Boolean force,
|
||||||
|
|
Loading…
Reference in New Issue