Skip to content

Commit

Permalink
chore(deps): update parent to 0.23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejpetras committed Dec 4, 2023
1 parent bb51787 commit 51d5bef
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.github.onecx</groupId>
<artifactId>onecx-quarkus3-parent</artifactId>
<version>0.22.0</version>
<version>0.23.0</version>
</parent>

<artifactId>onecx-theme-svc</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import jakarta.inject.Inject;
import jakarta.transaction.Transactional;
import jakarta.validation.ConstraintViolationException;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.core.Response;

import org.jboss.resteasy.reactive.RestResponse;
Expand All @@ -23,7 +22,6 @@
import io.github.onecx.theme.rs.exim.v1.mappers.ExportImportMapperV1;

@LogService
@Path("/exim/v1/themes")
@ApplicationScoped
@Transactional(Transactional.TxType.NOT_SUPPORTED)
public class ExportImportRestControllerV1 implements ThemesExportImportApi {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package io.github.onecx.theme.rs.exim.v1.log;

import java.util.List;

import jakarta.enterprise.context.ApplicationScoped;

import org.tkit.quarkus.log.cdi.LogParam;

import gen.io.github.onecx.theme.rs.exim.v1.model.EximExportRequestDTOV1;

@ApplicationScoped
public class ExportImportLogParam implements LogParam {

@Override
public List<Item> getClasses() {
return List.of(
item(10, EximExportRequestDTOV1.class, x -> x.getClass().getSimpleName()));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
import jakarta.transaction.Transactional;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.core.Response;

import org.tkit.quarkus.log.cdi.LogService;
Expand All @@ -13,7 +12,6 @@
import io.github.onecx.theme.rs.external.v1.mappers.ThemeMapper;

@LogService
@Path("/v1/themes")
@ApplicationScoped
@Transactional(Transactional.TxType.NOT_SUPPORTED)
public class ThemesRestControllerV1 implements ThemesV1Api {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
import jakarta.inject.Inject;
import jakarta.transaction.Transactional;
import jakarta.validation.ConstraintViolationException;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.core.Context;
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.core.UriInfo;

import org.jboss.resteasy.reactive.RestResponse;
import org.jboss.resteasy.reactive.server.ServerExceptionMapper;
import org.tkit.quarkus.jpa.exceptions.ConstraintException;
import org.tkit.quarkus.log.cdi.LogService;

import gen.io.github.onecx.theme.rs.internal.ThemesInternalApi;
import gen.io.github.onecx.theme.rs.internal.model.*;
Expand All @@ -23,7 +23,7 @@
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Path("/internal/themes") // remove this after quarkus fix ServiceExceptionMapper for impl classes
@LogService
@ApplicationScoped
@Transactional(value = NOT_SUPPORTED)
public class ThemesRestController implements ThemesInternalApi {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package io.github.onecx.theme.rs.internal.log;

import java.util.List;

import jakarta.enterprise.context.ApplicationScoped;

import org.tkit.quarkus.log.cdi.LogParam;

import gen.io.github.onecx.theme.rs.internal.model.CreateThemeDTO;
import gen.io.github.onecx.theme.rs.internal.model.ThemeSearchCriteriaDTO;
import gen.io.github.onecx.theme.rs.internal.model.UpdateThemeDTO;

@ApplicationScoped
public class ThemesLogParam implements LogParam {

@Override
public List<Item> getClasses() {
return List.of(
item(10, CreateThemeDTO.class, x -> x.getClass().getSimpleName() + ":" + ((CreateThemeDTO) x).getName()),
item(10, ThemeSearchCriteriaDTO.class, x -> {
ThemeSearchCriteriaDTO d = (ThemeSearchCriteriaDTO) x;
return ThemeSearchCriteriaDTO.class.getSimpleName() + "[" + d.getPageNumber() + "," + d.getPageSize() + "]";
}),
item(10, UpdateThemeDTO.class, x -> x.getClass().getSimpleName() + ":" + ((UpdateThemeDTO) x).getName()));
}
}

0 comments on commit 51d5bef

Please sign in to comment.