This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/causeway.git
The following commit(s) were added to refs/heads/master by this push:
new c9c00a1bcf CAUSEWAY-3671 : removes spurious supporting methods for
Object_createdByCommand
c9c00a1bcf is described below
commit c9c00a1bcf89d04835aab92fc7e65db7a9183a40
Author: danhaywood <[email protected]>
AuthorDate: Wed Jan 17 10:47:09 2024 +0000
CAUSEWAY-3671 : removes spurious supporting methods for
Object_createdByCommand
---
.../applib/contributions/Object_createdByCommand.java | 16 +---------------
1 file changed, 1 insertion(+), 15 deletions(-)
diff --git
a/extensions/security/audittrail/applib/src/main/java/org/apache/causeway/extensions/audittrail/applib/contributions/Object_createdByCommand.java
b/extensions/security/audittrail/applib/src/main/java/org/apache/causeway/extensions/audittrail/applib/contributions/Object_createdByCommand.java
index 416f6231d2..8e20675dee 100644
---
a/extensions/security/audittrail/applib/src/main/java/org/apache/causeway/extensions/audittrail/applib/contributions/Object_createdByCommand.java
+++
b/extensions/security/audittrail/applib/src/main/java/org/apache/causeway/extensions/audittrail/applib/contributions/Object_createdByCommand.java
@@ -50,6 +50,7 @@ import lombok.val;
/**
* @since 2.0 {@index}
*/
+@SuppressWarnings("CdiManagedBeanInconsistencyInspection")
@Action(
commandPublishing = Publishing.DISABLED,
domainEvent = Object_createdByCommand.ActionDomainEvent.class,
@@ -86,20 +87,6 @@ public class Object_createdByCommand {
? commandIfAny.get()
: domainObject;
}
- @MemberSupport public List<String> choices0Act() {
- val domainClass = domainObject.getClass();
- val logicalTypeIfAny =
metaModelService.lookupLogicalTypeByClass(domainClass);
- if(logicalTypeIfAny.isEmpty()) {
- // not expected, due to hide guard
- return Collections.emptyList();
- }
- val propertyFeatureIds =
applicationFeatureRepository.propertyIdsFor(logicalTypeIfAny.get());
- return
propertyFeatureIds.stream().map(ApplicationFeatureId::getLogicalMemberName).collect(Collectors.toList());
- }
- @MemberSupport public String default0Act() {
- val choices = choices0Act();
- return choices.size() == 1 ? choices.get(0): null;
- }
@MemberSupport public boolean hideAct() {
val domainClass = domainObject.getClass();
BeanSort beanSort = metaModelService.sortOf(domainClass,
MetaModelService.Mode.RELAXED);
@@ -107,7 +94,6 @@ public class Object_createdByCommand {
}
@Inject MetaModelService metaModelService;
- @Inject ApplicationFeatureRepository applicationFeatureRepository;
@Inject AuditTrailEntryRepository auditTrailEntryRepository;
@Inject CommandLogEntryRepository commandLogEntryRepository;
@Inject BookmarkService bookmarkService;