You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by ah...@apache.org on 2023/06/21 12:27:01 UTC
[causeway-app-referenceapp] branch master updated: reinstate Calendar View for CausewayCalendarEventEntity
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/causeway-app-referenceapp.git
The following commit(s) were added to refs/heads/master by this push:
new 82e4237 reinstate Calendar View for CausewayCalendarEventEntity
82e4237 is described below
commit 82e4237cee56e71371849f16be89a26a3315442a
Author: Andi Huber <ah...@apache.org>
AuthorDate: Wed Jun 21 14:26:56 2023 +0200
reinstate Calendar View for CausewayCalendarEventEntity
---
.../cal/persistence/CausewayCalendarEventEntity.java | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/domain/src/main/java/demoapp/dom/featured/causewayext/cal/persistence/CausewayCalendarEventEntity.java b/domain/src/main/java/demoapp/dom/featured/causewayext/cal/persistence/CausewayCalendarEventEntity.java
index 0ee658d..075cf29 100644
--- a/domain/src/main/java/demoapp/dom/featured/causewayext/cal/persistence/CausewayCalendarEventEntity.java
+++ b/domain/src/main/java/demoapp/dom/featured/causewayext/cal/persistence/CausewayCalendarEventEntity.java
@@ -21,17 +21,18 @@ package demoapp.dom.featured.causewayext.cal.persistence;
import javax.inject.Named;
import org.apache.causeway.applib.annotation.DomainObject;
+import org.apache.causeway.extensions.fullcalendar.applib.CalendarEventable;
+import org.apache.causeway.extensions.fullcalendar.applib.value.CalendarEvent;
import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription;
import demoapp.dom._infra.values.ValueHolder;
import demoapp.dom.featured.causewayext.cal.holder.CausewayCalendarEventHolder2;
-import org.apache.causeway.extensions.fullcalendar.applib.value.CalendarEvent;
-
@Named("demo.CausewayCalendarEventEntity") // shared permissions with concrete sub class
@DomainObject
public abstract class CausewayCalendarEventEntity
implements
+ CalendarEventable,
HasAsciiDocDescription,
CausewayCalendarEventHolder2,
ValueHolder<CalendarEvent> {
@@ -41,4 +42,14 @@ implements
return getReadOnlyProperty();
}
+ @Override
+ public String getCalendarName() {
+ return "Sample";
+ }
+
+ @Override
+ public CalendarEvent toCalendarEvent() {
+ return value();
+ }
+
}