SIF3: Provider Exercise - Java

Slides:



Advertisements
Similar presentations
Presented by: AU Assets Evolution of the SIF Common Framework Joerg Huber.
Advertisements

Struts Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
The map and reduce functions in MapReduce are easy to test in isolation, which is a consequence of their functional style. For known inputs, they produce.
OO Programming in Java Objectives for today: Overriding the toString() method Polymorphism & Dynamic Binding Interfaces Packages and Class Path.
Presented by: SIF 3.0 REST Framework Melbourne Developer’s Workshop November 2013 Joerg Huber.
SAM 2007 v4 The Student Experience Including SAM Projects, SAM Exams and SAM Training.
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Presented by: SIF3: First Consumer - Java Joerg Huber SIF3 Consumer: Get Students Exercise.
Presented by: SIF 3.0 REST URL Structure Components of the SIF3 REST URL Joerg Huber.
Object-Oriented Enterprise Application Development Tomcat 3.2 Configuration Last Updated: 03/30/2001.
Presented by: SIF3 REST Framework Joerg Huber Open-Source SIF3 Development Framework Developed by Systemic Pty Ltd Sponsored by.
Tomcat Configuration A Very, Very, Very Brief Overview.
Microsoft ® Official Course Monitoring and Troubleshooting Custom SharePoint Solutions SharePoint Practice Microsoft SharePoint 2013.
Arvind Gupta Professional Software Developer C#.net Portfolio  N-tier layered application  Defining a class object  Use of iComparable, iEnumerable.
Struts 2.0 an Overview ( )
UNIT-V The MVC architecture and Struts Framework.
Eric Westfall – Indiana University Jeremy Hanson – Iowa State University Building Applications with the KNS.
Presented by: SIF3: Provider Exercise - Java Joerg Huber SIF3 Provider Exercise: SchoolInfo Provider.
Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are.
Java: Chapter 1 Computer Systems Computer Programming II.
Presented by: SIF 3.0 Concepts SIF 3.x Concepts & Terms Joerg Huber.
© 2006 IBM Corporation IBM WebSphere Portlet Factory Architecture.
+ A Short Java RMI Tutorial Usman Saleem
Lecturer: Prof. Piero Fraternali, Teaching Assistant: Alessandro Bozzon, Advanced Web Technologies: Struts–
Presented by: SIF3: Providers Joerg Huber SIF3 Providers: Source of Truth.
1 Overview of the Application Hosting Environment Stefan Zasada University College London.
Presented by: SIF3 Framework Install - Java Joerg Huber Install & Verify Instructions and Exercise.
Presented by: SIF3: Events Joerg Huber SIF3 Events & Live Demo.
Overview of the Automated Build & Deployment Process Johnita Beasley Tuesday, April 29, 2008.
Presented by: SIF 3.0 Environment Management Consumer Environments Direct Environments Java Joerg Huber.
XmlBlackBox The presentation Alexander Crea June the 15st 2010 The presentation Alexander Crea June the 15st 2010
Presented by: SIF 3.0 Environments, Zones & Contexts Environments, Zones, Contexts and their Relationship Joerg Huber.
Copyright © 2007 InSTech Joint Laboratory All rights reserved. 1 Consideration on Persistence of WiseMan FuDan-Hitachi InSTech (Innovative Software Technology)
Presented by: SIF3: Multi-Object CRUD Joerg Huber SIF3 Consumer: Multi-Object CRUD Exercise.
Modern Programming Language. Web Container & Web Applications Web applications are server side applications The most essential requirement.
Javascript Overview. What is Javascript? May be one of the most popular programming languages ever Runs in the browser, not on the server All modern browsers.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio Training - Extension Points:
Integrating Crystal Reports with SIGNZ (V3.59, July 2008) Integrating Crystal Reports with SIGNZ (V3.59, July 2008)
Building KFS using KNS Presented by James SmithJustin Beltran University of ArizonaUniversity of California, Irvine.
A S P. Outline  The introduction of ASP  Why we choose ASP  How ASP works  Basic syntax rule of ASP  ASP’S object model  Limitations of ASP  Summary.
Solvency II Tripartite template V2 and V3 Presentation of the conversion tools proposed by FundsXML France.
Office 365 Development July 2014.
1D0-570 CIW CIW v5 Security Professional
CSE 103 Day 20 Jo is out today; I’m Carl
Understanding SOAP and REST calls The types of web service requests
Output files generation
Google Web Toolkit Tutorial
Writing simple Java Web Services using Eclipse
Data Virtualization Tutorial… CORS and CIS
Java Servlets.
Chapter 2: System Structures
SIF 3.0 Concepts Workshop Idea13 Joerg Huber.
Skill Based Assessment
Service Paths & Query By Example (QBE): Query Mechanism
Skill Based Assessment
Exception Handling Chapter 9.
Chapter 6 Methods: A Deeper Look
SIF 3.x Concepts & Terms, xPress & RicOne API
Packages and Interfaces
UNIT-5.
The Model Layer What is Model?
Java Server Pages (JSP)
Introduction to Classes and Objects
Exploring the Power of EPDM Tasks - Working with and Developing Tasks in EPDM By: Marc Young XLM Solutions
Units with – James tedder
SIF3: First Consumer - Java
Service Paths & Query By Example (QBE): Query Mechanism
Rational Publishing Engine RQM Multi Level Report Tutorial
SIF 3.0 Concepts SIF 3.x Concepts & Terms Joerg Huber.
SIF3 REST Framework Open-Source SIF3 Development Framework
Presentation transcript:

SIF3: Provider Exercise - Java SchoolInfo Provider Joerg Huber

Setting the Scene Decide on Data Model Decide on SIF Object(s) – i.e. SchoolInfo CRUD only DIRECT Environment Environment Management Considerations No Events Immediate Request/Response Training Course SIF3: Provider Exercise January 19

Data Model Classes (as with Consumer) The SIF3 Framework has a library with the SIF AU 1.3 data model (sifDataModel_au1.3.jar). Generated based on SIF AU 1.3 XSD. Has methods to marshal/unmarshal to/from XML Classes are named as the SIF Object: Single Student: SchoolInfoType Student List: SchoolCollectionType Refer to “First Consumer” presentation for more details on Data Model Classes. Training Course SIF3: Provider Exercise January 19

Core Object Provider Classes The following is a list of core classes required for developing an Object Provider. Details will follow as part of the exercise. BaseProvider (CRUD) or BaseEventProvider (CRUD & Events) Each SIF Object used in the final provider must extend one of these two classes. Forces a number of methods to be implemented ProviderServletContext Initialises & frees up resources of a provider when webapp (provider) is started or shutdown. Already implemented. Developer does not need to do anything here (configured in web.xml) Training Course SIF3: Provider Exercise January 19

Steps developing an Object Provider For each SIF Object used in the provider write a separate class extending BaseProvider or BaseEventProvider Implement abstract and/or interface methods => May want to look into StudentPersonalProvider Link marshal/unmarshal with provider Ensures that SIF3 Framework produces correct XML Use DataModelUnmarshalFactory & DataModelMarshalFactory from sifDataModel_au1.3.jar! Link SIF Object Class with each provider Implement getSingleObjectClassInfo and getMultiObjectClassInfo methods to return appropriate ModelObjectInfo (see demo code) Use predefined constants Training Course SIF3: Provider Exercise January 19

Steps developing an Object Provider (cont.) Note: You can read some SchoolInfo objects from a file (refer to SIF3 Training Exercises - Java.docx – Exercise 3 for details) CRUD Operations Attempt to implement createSingle() Deal with “useAdvisory” parameter. Attempt to implement retrieve() Deal with “paging” Null out other methods. Training Course SIF3: Provider Exercise January 19

Steps developing an Object Provider (cont.) Configure the following in the provider.properties file: List each provider class as a comma separated list in the “provider.classes” property Set the package name of the consumer classes in the “provider.basePackageName” property. As part of this training most of the above should be pre-set. Refer to Developer’s Guide for much more details on how to develop a provider. Training Course SIF3: Provider Exercise January 19

Run Object Provider Deploy your Object Provider to your web- or application container. Deploy = Stop/Start your web- or application server. If you load schools from the supplied XML file you should see a log entry indicating 2 schools are loaded. If not check weather the property provider.school.file.location in the provider.properties file points to a valid location. Within your IDE you should be able to run the DemoConsumer class. It is an executable. Comment out SchoolConsumer methods. Observe the output on the command line… Training Course SIF3: Provider Exercise January 19