You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2022/08/11 20:05:33 UTC

[isis] branch master updated (c15f4c99c9 -> 920b43bd9f)

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


 discard c15f4c99c9 ISIS-3119: have ValueSemanticsBasedOnIdStringifierEntityAgnostic implement Renderer and Parser
     new 920b43bd9f ISIS-3119: have ValueSemanticsBasedOnIdStringifierEntityAgnostic implement Renderer and Parser

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (c15f4c99c9)
            \
             N -- N -- N   refs/heads/master (920b43bd9f)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../datanucleus/valuetypes/CaseComposedIdKey.java  | 49 ----------------------
 .../CaseComposedIdKeyValueSemantics.java           | 22 ----------
 2 files changed, 71 deletions(-)
 delete mode 100644 persistence/jdo/datanucleus/src/main/java/org/apache/isis/persistence/jdo/datanucleus/valuetypes/CaseComposedIdKey.java
 delete mode 100644 persistence/jdo/datanucleus/src/main/java/org/apache/isis/persistence/jdo/datanucleus/valuetypes/CaseComposedIdKeyValueSemantics.java


[isis] 01/01: ISIS-3119: have ValueSemanticsBasedOnIdStringifierEntityAgnostic implement Renderer and Parser

Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git

commit 920b43bd9f4b64273ee7a7ee095b96a730955fa4
Author: Andi Huber <ah...@apache.org>
AuthorDate: Fri Aug 12 00:05:21 2022 +0200

    ISIS-3119: have ValueSemanticsBasedOnIdStringifierEntityAgnostic
    implement Renderer and Parser
---
 ...emanticsBasedOnIdStringifierEntityAgnostic.java | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/api/applib/src/main/java/org/apache/isis/applib/value/semantics/ValueSemanticsBasedOnIdStringifierEntityAgnostic.java b/api/applib/src/main/java/org/apache/isis/applib/value/semantics/ValueSemanticsBasedOnIdStringifierEntityAgnostic.java
index e0d589f1ea..9838100e42 100644
--- a/api/applib/src/main/java/org/apache/isis/applib/value/semantics/ValueSemanticsBasedOnIdStringifierEntityAgnostic.java
+++ b/api/applib/src/main/java/org/apache/isis/applib/value/semantics/ValueSemanticsBasedOnIdStringifierEntityAgnostic.java
@@ -34,6 +34,8 @@ import lombok.experimental.Accessors;
 public abstract class ValueSemanticsBasedOnIdStringifierEntityAgnostic<T>
 extends ValueSemanticsAbstract<T>
 implements
+    Renderer<T>,
+    Parser<T>,
     IdStringifier.EntityAgnostic<T> {
 
     @Getter @Accessors(makeFinal = true)
@@ -72,4 +74,28 @@ implements
         return composeFromString(decomposition, this::destring, ()->null);
     }
 
+    // -- RENDERER
+
+    @Override
+    public String titlePresentation(final Context context, final T value) {
+        return value == null ? "" : enstring(value);
+    }
+
+    // -- PARSER
+
+    @Override
+    public String parseableTextRepresentation(final Context context, final T value) {
+        return enstring(value);
+    }
+
+    @Override
+    public T parseTextRepresentation(final Context context, final String text) {
+        return destring(text);
+    }
+
+    @Override
+    public int typicalLength() {
+        return 255;
+    }
+
 }