You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by mi...@apache.org on 2013/12/06 09:30:01 UTC
svn commit: r1548415 -
/incubator/olingo/site/trunk/content/doc/tutorials/basicread.mdtext
Author: mibo
Date: Fri Dec 6 08:30:01 2013
New Revision: 1548415
URL: http://svn.apache.org/r1548415
Log:
Removed FunctionImport
Modified:
incubator/olingo/site/trunk/content/doc/tutorials/basicread.mdtext
Modified: incubator/olingo/site/trunk/content/doc/tutorials/basicread.mdtext
URL: http://svn.apache.org/viewvc/incubator/olingo/site/trunk/content/doc/tutorials/basicread.mdtext?rev=1548415&r1=1548414&r2=1548415&view=diff
==============================================================================
--- incubator/olingo/site/trunk/content/doc/tutorials/basicread.mdtext (original)
+++ incubator/olingo/site/trunk/content/doc/tutorials/basicread.mdtext Fri Dec 6 08:30:01 2013
@@ -144,8 +144,6 @@ In this paragraph you will implement the
private static final String ASSOCIATION_SET = "Cars_Manufacturers";
- private static final String FUNCTION_IMPORT = "NumberOfCars";
-
- Implement `MyEdmProvider.getSchemas`. This method is used to retrieve the complete structural information on order to build the `$metadata` file and the service document. The implementation makes use of other getter of this class for simplicity reasons. If a very performant way of building the whole structural information was required, other implementation strategies could be used.
##### Sample Code
@@ -183,10 +181,6 @@ In this paragraph you will implement the
associationSets.add(getAssociationSet(ENTITY_CONTAINER, ASSOCIATION_CAR_MANUFACTURER, ENTITY_SET_NAME_MANUFACTURERS, ROLE_1_2));
entityContainer.setAssociationSets(associationSets);
- List<FunctionImport> functionImports = new ArrayList<FunctionImport>();
- functionImports.add(getFunctionImport(ENTITY_CONTAINER, FUNCTION_IMPORT));
- entityContainer.setFunctionImports(functionImports);
-
entityContainers.add(entityContainer);
schema.setEntityContainers(entityContainers);
@@ -360,24 +354,7 @@ In this paragraph you will implement the
return null;
}
-
-- `MyEdmProvider.getFunctionImport(String entityContainer, String name)`
-
-##### Sample Code
-
-
- :::java
- public FunctionImport getFunctionImport(String entityContainer, String name) throws ODataException {
- if (ENTITY_CONTAINER.equals(entityContainer)) {
- if (FUNCTION_IMPORT.equals(name)) {
- return new FunctionImport().setName(name)
- .setReturnType(new ReturnType().setTypeName(ENTITY_TYPE_1_1).setMultiplicity(EdmMultiplicity.MANY))
- .setHttpMethod("GET");
- }
- }
- return null;
- }
-
+#### Conclusion
After the implementation of the Edm Provider the web application can be executed to show the Service Document and the Metadata Document.