generated from GenomicDataInfrastructure/oss-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df946f0
commit 6d1aadb
Showing
12 changed files
with
107 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SPDX-FileCopyrightText: 2024 PNED G.I.E. | ||
|
||
SPDX-License-Identifier: Apache-2.0 |
119 changes: 50 additions & 69 deletions
119
src/main/java/io/github/genomicdatainfrastructure/daam/api/ApplicationCommandApiImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,98 +1,79 @@ | ||
// SPDX-FileCopyrightText: 2024 PNED G.I.E. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package io.github.genomicdatainfrastructure.daam.api; | ||
import java.io.File; | ||
import java.util.List; | ||
|
||
import io.github.genomicdatainfrastructure.daam.services.CreateApplicationService; | ||
import io.github.genomicdatainfrastructure.daam.model.AddApplicationEvent; | ||
import io.github.genomicdatainfrastructure.daam.model.AddedAttachments; | ||
import io.github.genomicdatainfrastructure.daam.model.CreateApplication; | ||
import io.github.genomicdatainfrastructure.daam.model.RemoveMember; | ||
import io.github.genomicdatainfrastructure.daam.model.SaveFormsAndDuos; | ||
import io.github.genomicdatainfrastructure.daam.model.UpdateDatasets; | ||
import io.github.genomicdatainfrastructure.daam.services.CreateApplicationService; | ||
import jakarta.ws.rs.core.Response; | ||
import java.io.File; | ||
import java.util.List; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@RequiredArgsConstructor | ||
public class ApplicationCommandApiImpl implements ApplicationCommandApi { | ||
|
||
private final CreateApplicationService createApplicationService; | ||
private final CreateApplicationService createApplicationService; | ||
|
||
@Override | ||
public Response acceptApplicationTermsV1(String id) { | ||
throw new UnsupportedOperationException( | ||
"Unimplemented method 'acceptApplicationTermsV1'" | ||
); | ||
} | ||
@Override | ||
public Response acceptApplicationTermsV1(String id) { | ||
throw new UnsupportedOperationException("Unimplemented method 'acceptApplicationTermsV1'"); | ||
} | ||
|
||
@Override | ||
public List<AddedAttachments> addAttachmentToApplicationV1(String id, File body) { | ||
throw new UnsupportedOperationException( | ||
"Unimplemented method 'addAttachmentToApplicationV1'" | ||
); | ||
} | ||
@Override | ||
public List<AddedAttachments> addAttachmentToApplicationV1(String id, File body) { | ||
throw new UnsupportedOperationException("Unimplemented method 'addAttachmentToApplicationV1'"); | ||
} | ||
|
||
@Override | ||
public Response addEventToApplicationV1(String id, AddApplicationEvent addApplicationEvent) { | ||
throw new UnsupportedOperationException( | ||
"Unimplemented method 'addEventToApplicationV1'" | ||
); | ||
} | ||
@Override | ||
public Response addEventToApplicationV1(String id, AddApplicationEvent addApplicationEvent) { | ||
throw new UnsupportedOperationException("Unimplemented method 'addEventToApplicationV1'"); | ||
} | ||
|
||
@Override | ||
public Response cancelApplicationV1(String id) { | ||
throw new UnsupportedOperationException( | ||
"Unimplemented method 'cancelApplicationV1'" | ||
); | ||
} | ||
@Override | ||
public Response cancelApplicationV1(String id) { | ||
throw new UnsupportedOperationException("Unimplemented method 'cancelApplicationV1'"); | ||
} | ||
|
||
@Override | ||
public Response copyApplicationAsNewV1(String id) { | ||
throw new UnsupportedOperationException( | ||
"Unimplemented method 'copyApplicationAsNewV1'" | ||
); | ||
} | ||
@Override | ||
public Response copyApplicationAsNewV1(String id) { | ||
throw new UnsupportedOperationException("Unimplemented method 'copyApplicationAsNewV1'"); | ||
} | ||
|
||
@Override | ||
public Response createApplicationV1(CreateApplication createApplication) { | ||
createApplicationService.createRemsApplication(createApplication); | ||
return Response.noContent().build(); | ||
} | ||
@Override | ||
public Response createApplicationV1(CreateApplication createApplication) { | ||
createApplicationService.createRemsApplication(createApplication); | ||
return Response.noContent().build(); | ||
} | ||
|
||
@Override | ||
public Response inviteMemberToApplicationV1(String id) { | ||
throw new UnsupportedOperationException( | ||
"Unimplemented method 'inviteMemberToApplicationV1'" | ||
); | ||
} | ||
@Override | ||
public Response inviteMemberToApplicationV1(String id) { | ||
throw new UnsupportedOperationException("Unimplemented method 'inviteMemberToApplicationV1'"); | ||
} | ||
|
||
@Override | ||
public Response removeMemberFromApplicationV1(String id, RemoveMember removeMember) { | ||
throw new UnsupportedOperationException( | ||
"Unimplemented method 'removeMemberFromApplicationV1'" | ||
); | ||
} | ||
@Override | ||
public Response removeMemberFromApplicationV1(String id, RemoveMember removeMember) { | ||
throw new UnsupportedOperationException("Unimplemented method 'removeMemberFromApplicationV1'"); | ||
} | ||
|
||
@Override | ||
public Response saveApplicationFormsAndDuosV1(String id, SaveFormsAndDuos saveFormsAndDuos) { | ||
throw new UnsupportedOperationException( | ||
"Unimplemented method 'saveApplicationFormsAndDuosV1'" | ||
); | ||
} | ||
@Override | ||
public Response saveApplicationFormsAndDuosV1(String id, SaveFormsAndDuos saveFormsAndDuos) { | ||
throw new UnsupportedOperationException("Unimplemented method 'saveApplicationFormsAndDuosV1'"); | ||
} | ||
|
||
@Override | ||
public Response submitApplicationV1(String id) { | ||
throw new UnsupportedOperationException( | ||
"Unimplemented method 'submitApplicationV1'" | ||
); | ||
} | ||
@Override | ||
public Response submitApplicationV1(String id) { | ||
throw new UnsupportedOperationException("Unimplemented method 'submitApplicationV1'"); | ||
} | ||
|
||
@Override | ||
public Response updateDatasetsOfApplicationV1(String id, List<UpdateDatasets> updateDatasets) { | ||
throw new UnsupportedOperationException( | ||
"Unimplemented method 'updateDatasetsOfApplicationV1'" | ||
); | ||
} | ||
@Override | ||
public Response updateDatasetsOfApplicationV1(String id, List<UpdateDatasets> updateDatasets) { | ||
throw new UnsupportedOperationException("Unimplemented method 'updateDatasetsOfApplicationV1'"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
src/test/java/io/github/genomicdatainfrastructure/daam/api/ApplicationCommandApiImplIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
// SPDX-FileCopyrightText: 2024 PNED G.I.E. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package io.github.genomicdatainfrastructure.daam.api; | ||
|
||
import io.quarkus.test.junit.QuarkusIntegrationTest; | ||
|
||
@QuarkusIntegrationTest | ||
public class ApplicationCommandApiImplIT extends ApplicationCommandApiImplTest { | ||
|
||
} | ||
public class ApplicationCommandApiImplIT extends ApplicationCommandApiImplTest {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
src/test/java/io/github/genomicdatainfrastructure/daam/api/ApplicationQueryApiImplIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
// SPDX-FileCopyrightText: 2024 PNED G.I.E. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package io.github.genomicdatainfrastructure.daam.api; | ||
|
||
import io.quarkus.test.junit.QuarkusIntegrationTest; | ||
|
||
@QuarkusIntegrationTest | ||
public class ApplicationQueryApiImplIT extends ApplicationQueryApiImplTest { | ||
|
||
} | ||
public class ApplicationQueryApiImplIT extends ApplicationQueryApiImplTest {} |
1 change: 1 addition & 0 deletions
1
src/test/java/io/github/genomicdatainfrastructure/daam/api/ApplicationQueryApiImplTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.