Hi Ralf, thank you very much for the clarification!
@ Francesco: This means for us: 1. Delete the get boundFunction and getBoundAction method. 2. Maybe introduce a getActions method which delivers all unbound Actions for this this name. Same goes fur Functions. Best Regards, Christian -----Original Message----- From: Handl, Ralf [mailto:ralf.ha...@sap.com] Sent: Montag, 7. April 2014 10:24 To: dev@olingo.apache.org Subject: RE: [DISCUSS] EdmEntityContainer: getActionImport(String) / getFunctionImport(String) Hi Christian and Francesco, There's no way to import a single function overload, the FunctionImport element imports all overloads into the entity container. It also only allows importing unbound function overloads, see http://docs.oasis-open.org/odata/odata/v4.0/os/part3-csdl/odata-v4.0-os-part3-csdl.html#_Toc372794000. The ActionImport element also only imports an unbound action. Unbound actions currently cannot have overloads, because overloads must have the same binding parameter, and unbound actions don't have one, see http://docs.oasis-open.org/odata/odata/v4.0/os/part3-csdl/odata-v4.0-os-part3-csdl.html#_Toc372793963. Thanks! --Ralf -----Original Message----- From: Amend, Christian [mailto:christian.am...@sap.com] Sent: Monday, 7. April 2014 10:13 To: dev@olingo.apache.org Subject: FW: [DISCUSS] EdmEntityContainer: getActionImport(String) / getFunctionImport(String) Hi Francesco, I have forwarded this message to the dev list :) ActionImports and FunctionImports have an operation specified by FullQualified Name. The Overloading happens based on Parameters when they are called. So giving back a list of ActionImports would not make sense but rather adding a method at the ActionImport like this List<EdmAction> getActions(). This way a client can decide which Action he wants to invoke. Same goes for FunctionImport. As far as I know there is no way to bind a single Action directly to an ActionImport again same goes for Functions and FunctionImports. As for the methods getBoundAction/getUnbound at the ActionImport I have to look into this. As far as I know only unbound Actions can serve for an Action Import. I don`t know who introduced this methods. For Functions I will have to look into this as well. Best Regards, Christian -----Original Message----- From: Francesco Chicchiriccò [mailto:ilgro...@apache.org] Sent: Montag, 7. April 2014 09:42 To: d...@olingo.incubator.apache.org Subject: Re: [DISCUSS] EdmEntityContainer: getActionImport(String) / getFunctionImport(String) On 07/04/2014 09:24, Francesco Chicchiriccò wrote: > Hi all, > as part of OLINGO-234 I am now considering some scenarios where action > and / or functions are overloaded. > > I have just noticed that the EdmEntityContainer container has the > following two methods: > > EdmActionImport getActionImport(String name); > EdmFunctionImport getFunctionImport(String name); > > I would have expected, though, something like as > > List<EdmActionImport> getActionImport(String name); > List<EdmFunctionImport> getFunctionImport(String name); > > > Am I wrong? I have also just noticed that both EdmActionImport and EdmFunctionImport have methods like as getUnboundFunction() / getUnboundAction() - getBoundFunction() / getBoundAction() (they actually used to have plain getAction() / getFunction()): this suggests that from a single ActionImport / FunctionImport one can get to all actions / functions with given name. Isn't there a way to bound an ActionImport / FunctionImport to a single Action / Function? -- Francesco Chicchiriccò Tirasa - Open Source Excellence http://www.tirasa.net/ Involved at The Apache Software Foundation: member, Syncope PMC chair, Cocoon PMC, Olingo PMC http://people.apache.org/~ilgrosso/