Skip to content
Snippets Groups Projects
Commit f793fd7b authored by OZGCloud's avatar OZGCloud
Browse files

fix search vorgang

parent e56cada4
Branches
Tags
No related merge requests found
......@@ -9,7 +9,7 @@ import java.util.Objects;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.stereotype.Service;
import de.ozgcloud.apilib.errorhandling.NotFoundException;
import de.ozgcloud.apilib.common.errorhandling.NotFoundException;
import de.ozgcloud.apilib.file.dummy.DummyOzgCloudFileService;
import de.ozgcloud.apilib.vorgang.OzgCloudAntragsteller;
import de.ozgcloud.apilib.vorgang.OzgCloudEingang;
......
......@@ -6,6 +6,7 @@ import org.mapstruct.factory.Mappers;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;
import de.itvsh.ozg.pluto.vorgang.GrpcFilterBy;
import de.itvsh.ozg.pluto.vorgang.GrpcFindVorgangRequest;
import de.itvsh.ozg.pluto.vorgang.GrpcFindVorgangRequest.GrpcOrderBy;
import de.itvsh.ozg.pluto.vorgang.GrpcFindVorgangWithEingangRequest;
......@@ -57,6 +58,7 @@ public class GrpcOzgCloudVorgangService implements OzgCloudVorgangService {
GrpcFindVorgangRequest buildSearchRequest(@NonNull String searchString, Page page) {
return GrpcFindVorgangRequest.newBuilder()
.setFilterBy(GrpcFilterBy.newBuilder().build())
.setSearchBy(searchString)
.setOffset(page.getOffset())
.setLimit(page.getLimit())
......
......@@ -6,7 +6,6 @@ import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;
import de.ozgcloud.apilib.alfa.AlfaService;
import de.ozgcloud.apilib.file.OzgCloudFileId;
import de.ozgcloud.apilib.file.OzgCloudFileService;
import de.ozgcloud.apilib.vorgang.OzgCloudVorgangId;
import de.ozgcloud.apilib.vorgang.OzgCloudVorgangService;
......@@ -14,7 +13,7 @@ import de.ozgcloud.apilib.vorgang.OzgCloudVorgangService;
@Component
class DemoRunner implements ApplicationListener<ContextRefreshedEvent> {
private static final OzgCloudVorgangId VORGANG_ID = OzgCloudVorgangId.from("64bfd6597a08cf6e8a5185c6");
private static final OzgCloudVorgangId VORGANG_ID = OzgCloudVorgangId.from("64dde1bd0ffe733638cc7d2a");
@Autowired
private OzgCloudVorgangService vorgangService;
......@@ -25,9 +24,9 @@ class DemoRunner implements ApplicationListener<ContextRefreshedEvent> {
@Override
public void onApplicationEvent(ContextRefreshedEvent event) {
System.out.println(vorgangService.getById(VORGANG_ID));
System.out.println(vorgangService.search("Deutschland"));
System.out.println(fileService.getFile(OzgCloudFileId.from("630363d5b5816c0d8efd6f19")));
System.out.println(vorgangService.getById(VORGANG_ID));
alfaService.addAktenNotiz(VORGANG_ID, "Hello World!");
}
......
ozgcloud:
vorgang-manager:
address: static://127.0.0.1:9090
negotiation-type: plaintext
# address: static://127.0.0.1:9090
address: nordfriesland-pluto-grpc.test.by.ozg-cloud.de:443
negotiation-type: tls
file-manager:
address: ${ozgcloud.vorgang-manager.address}
negotiation-type: plaintext
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment