andi-huber commented on code in PR #3516:
URL: https://github.com/apache/causeway/pull/3516#discussion_r3218575556
##########
api/applib/src/main/java/org/apache/causeway/applib/services/metamodel/MetaModelService.java:
##########
@@ -166,13 +166,61 @@ enum Mode {
*
* @param config - restricts/filters to a subsets of the metamodel.
*/
- MetamodelDto exportMetaModel(final Config config);
+ MetamodelDto exportMetaModel(Config config);
/**
* Can be used to create object relation diagrams (e.g. Plantuml).
*
* @param filter by {@link BeanSort} and {@link LogicalType} what to
include in the resulting graph
*/
- ObjectGraph exportObjectGraph(final @NonNull BiPredicate<BeanSort,
LogicalType> filter);
+ ObjectGraph exportObjectGraph(@NonNull BiPredicate<BeanSort, LogicalType>
filter);
+
+ /**
+ * Stream of {@link Identifier} representing the <i>Actions</i> of given
domainType, including mixed-in ones,
+ * but excluding <i>Actions</i>, that are only available for PROTOTYPING.
+ * @since 4.0
+ */
+ Stream<Identifier> streamActions(@Nullable Class<?> domainType);
+
+ /**
+ * Stream of {@link Identifier} representing the <i>Properties</i> of
given domainType, including mixed-in ones.
+ * @since 4.0
+ */
+ Stream<Identifier> streamProperties(@Nullable Class<?> domainType);
+
+ /**
+ * Stream of {@link Identifier} representing the <i>Collections</i> of
given domainType, including mixed-in ones.
+ * @since 4.0
+ */
+ Stream<Identifier> streamCollections(@Nullable Class<?> domainType);
+
+ /**
+ * Stream of {@link Identifier} representing the <i>Columns</i> of given
domainType and <i>Member</i> of interest.
+ *
+ * <p> Where columns returned are those that are in principle available.
Also those are returned in no particular order.
+ *
+ * <p> If domainType is null returns an empty {@link Stream}.
+ *
+ * <p> Otherwise, if memberIdentifier is null returns <i>Columns</i> for
the standalone table of element-type == domainType.
+ *
+ * @since 4.0
+ */
+ Stream<Identifier> streamAvailableAssociationsForColumnRendering(@Nullable
Class<?> domainType, @Nullable Identifier memberIdentifier);
Review Comment:
Not totally happy with that yet, as
1. distinction between PARENTED and STANDALONE could be more explicit
(separate methods)
2. column-order-txt feature supports identifier wildcards, which could be
reflected by leaving the memberId empty here
(same applies to the next method below)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]