-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added position to bookmark * feat: fix log and remove modifiers * fix: assertion
- Loading branch information
1 parent
c3c9b79
commit 2325ee2
Showing
10 changed files
with
129 additions
and
88 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
32 changes: 17 additions & 15 deletions
32
docs/modules/onecx-bookmark-svc/pages/onecx-bookmark-svc.adoc
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,63 +1,65 @@ | ||
|
||
:summaryTableId: onecx-bookmark-svc | ||
[.configuration-legend] | ||
icon:lock[title=Fixed at build time] Configuration property fixed at build time - All other configuration properties are overridable at runtime | ||
[.configuration-reference.searchable, cols="80,.^10,.^10"] | ||
|=== | ||
|
||
h|[[onecx-bookmark-svc_configuration]]link:#onecx-bookmark-svc_configuration[Configuration property] | ||
|
||
h|[.header-title]##Configuration property## | ||
h|Type | ||
h|Default | ||
|
||
a| [[onecx-bookmark-svc_onecx-bookmark-default-enabled]]`link:#onecx-bookmark-svc_onecx-bookmark-default-enabled[onecx.bookmark.default.enabled]` | ||
|
||
a| [[onecx-bookmark-svc_onecx-bookmark-default-enabled]] [.property-path]##`onecx.bookmark.default.enabled`## | ||
|
||
[.description] | ||
-- | ||
Enable or disable default bookmark | ||
|
||
|
||
ifdef::add-copy-button-to-env-var[] | ||
Environment variable: env_var_with_copy_button:+++ONECX_BOOKMARK_DEFAULT_ENABLED+++[] | ||
endif::add-copy-button-to-env-var[] | ||
ifndef::add-copy-button-to-env-var[] | ||
Environment variable: `+++ONECX_BOOKMARK_DEFAULT_ENABLED+++` | ||
endif::add-copy-button-to-env-var[] | ||
--|boolean | ||
-- | ||
|boolean | ||
|`false` | ||
|
||
|
||
a| [[onecx-bookmark-svc_onecx-bookmark-default-url]]`link:#onecx-bookmark-svc_onecx-bookmark-default-url[onecx.bookmark.default.url]` | ||
|
||
a| [[onecx-bookmark-svc_onecx-bookmark-default-url]] [.property-path]##`onecx.bookmark.default.url`## | ||
|
||
[.description] | ||
-- | ||
Default bookmark URL | ||
|
||
|
||
ifdef::add-copy-button-to-env-var[] | ||
Environment variable: env_var_with_copy_button:+++ONECX_BOOKMARK_DEFAULT_URL+++[] | ||
endif::add-copy-button-to-env-var[] | ||
ifndef::add-copy-button-to-env-var[] | ||
Environment variable: `+++ONECX_BOOKMARK_DEFAULT_URL+++` | ||
endif::add-copy-button-to-env-var[] | ||
--|string | ||
-- | ||
|string | ||
|`https://github.com/onecx` | ||
|
||
|
||
a| [[onecx-bookmark-svc_onecx-bookmark-product-item-id]]`link:#onecx-bookmark-svc_onecx-bookmark-product-item-id[onecx.bookmark.product-item-id]` | ||
|
||
a| [[onecx-bookmark-svc_onecx-bookmark-product-item-id]] [.property-path]##`onecx.bookmark.product-item-id`## | ||
|
||
[.description] | ||
-- | ||
Default bookmark URL | ||
|
||
|
||
ifdef::add-copy-button-to-env-var[] | ||
Environment variable: env_var_with_copy_button:+++ONECX_BOOKMARK_PRODUCT_ITEM_ID+++[] | ||
endif::add-copy-button-to-env-var[] | ||
ifndef::add-copy-button-to-env-var[] | ||
Environment variable: `+++ONECX_BOOKMARK_PRODUCT_ITEM_ID+++` | ||
endif::add-copy-button-to-env-var[] | ||
--|string | ||
-- | ||
|string | ||
|`PRODUCT_BASE_DOC_URL` | ||
|
||
|=== | ||
|=== | ||
|
||
|
||
:!summaryTableId: |
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
56 changes: 28 additions & 28 deletions
56
src/main/java/org/tkit/onecx/bookmark/rs/internal/log/InternalLogParam.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,34 +1,34 @@ | ||
// package org.tkit.onecx.bookmark.rs.internal.log; | ||
package org.tkit.onecx.bookmark.rs.internal.log; | ||
|
||
// import java.util.List; | ||
import java.util.List; | ||
|
||
// import jakarta.enterprise.context.ApplicationScoped; | ||
import jakarta.enterprise.context.ApplicationScoped; | ||
|
||
// import org.tkit.quarkus.log.cdi.LogParam; | ||
import org.tkit.quarkus.log.cdi.LogParam; | ||
|
||
// import gen.org.tkit.onecx.bookmark.rs.internal.model.BookmarkSearchCriteriaDTO; | ||
// import gen.org.tkit.onecx.bookmark.rs.internal.model.CreateBookmarkDTO; | ||
// import gen.org.tkit.onecx.bookmark.rs.internal.model.UpdateBookmarkDTO; | ||
import gen.org.tkit.onecx.bookmark.rs.internal.model.BookmarkSearchCriteriaDTO; | ||
import gen.org.tkit.onecx.bookmark.rs.internal.model.CreateBookmarkDTO; | ||
import gen.org.tkit.onecx.bookmark.rs.internal.model.UpdateBookmarkDTO; | ||
|
||
// @ApplicationScoped | ||
// public class InternalLogParam implements LogParam { | ||
@ApplicationScoped | ||
public class InternalLogParam implements LogParam { | ||
|
||
// @Override | ||
// public List<Item> getClasses() { | ||
// return List.of( | ||
// item(10, CreateBookmarkDTO.class, x -> { | ||
// CreateBookmarkDTO d = (CreateBookmarkDTO) x; | ||
// return CreateBookmarkDTO.class.getSimpleName() + "[" + d.getProductName() + "," + d.getItemId() + "]"; | ||
// }), | ||
// item(10, UpdateBookmarkDTO.class, x -> { | ||
// UpdateBookmarkDTO d = (UpdateBookmarkDTO) x; | ||
// return UpdateBookmarkDTO.class.getSimpleName() + "[" + d.getProductName() + "," + d.getItemId() + "]"; | ||
// }), | ||
// item(10, BookmarkSearchCriteriaDTO.class, x -> { | ||
// BookmarkSearchCriteriaDTO d = (BookmarkSearchCriteriaDTO) x; | ||
// return BookmarkSearchCriteriaDTO.class.getSimpleName() + "[" + d.getPageNumber() + "," | ||
// + d.getPageSize() | ||
// + "]"; | ||
// })); | ||
// } | ||
// } | ||
@Override | ||
public List<Item> getClasses() { | ||
return List.of( | ||
item(10, CreateBookmarkDTO.class, x -> { | ||
CreateBookmarkDTO d = (CreateBookmarkDTO) x; | ||
return CreateBookmarkDTO.class.getSimpleName() + "[" + d.getProductName() + "," + d.getAppId() + "]"; | ||
}), | ||
item(10, UpdateBookmarkDTO.class, x -> { | ||
UpdateBookmarkDTO d = (UpdateBookmarkDTO) x; | ||
return UpdateBookmarkDTO.class.getSimpleName() + "[" + d.getDisplayName() + "]"; | ||
}), | ||
item(10, BookmarkSearchCriteriaDTO.class, x -> { | ||
BookmarkSearchCriteriaDTO d = (BookmarkSearchCriteriaDTO) x; | ||
return BookmarkSearchCriteriaDTO.class.getSimpleName() + "[" + d.getPageNumber() + "," | ||
+ d.getPageSize() | ||
+ "]"; | ||
})); | ||
} | ||
} |
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.