On 07/04/2014 10:12, Amend, Christian wrote:
Hi Francesco,

I have forwarded this message to the dev list :)

Ouch, sorry, the old incubator address is still in my client's history: fortunately it still works :-)

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.

It was me that introduced those methods when trying to proxy V3 FunctionImport to more complex V4 action handling. Anyway you are right, only unbound Actions and Functions can be advertised via ActionImport / FunctionImport so I am going to fix this soon by reverting to former getAction() / getFunction().
Sorry for the noise.

Regards.

-----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/

Reply via email to