private void catalogueActions(final Map<Method, ObjectMember> membersByMethod) { final List<ObjectAction> userActions = getObjectActions(ActionType.USER, Contributed.INCLUDED); for (int i = 0; i < userActions.size(); i++) { final ObjectAction userAction = userActions.get(i); final List<Facet> facets = userAction.getFacets(ImperativeFacet.FILTER); for (final Facet facet : facets) { final ImperativeFacet imperativeFacet = ImperativeFacetUtils.getImperativeFacet(facet); for (final Method imperativeFacetMethod : imperativeFacet.getMethods()) { membersByMethod.put(imperativeFacetMethod, userAction); } } } }
private void cataloguePropertiesAndCollections(final Map<Method, ObjectMember> membersByMethod) { final Filter<ObjectAssociation> noop = Filters.anyOfType(ObjectAssociation.class); final List<ObjectAssociation> fields = getAssociations(noop); for (int i = 0; i < fields.size(); i++) { final ObjectAssociation field = fields.get(i); final List<Facet> facets = field.getFacets(ImperativeFacet.FILTER); for (final Facet facet : facets) { final ImperativeFacet imperativeFacet = ImperativeFacetUtils.getImperativeFacet(facet); for (final Method imperativeFacetMethod : imperativeFacet.getMethods()) { membersByMethod.put(imperativeFacetMethod, field); } } } }