WS-PGRADE + ASM Basic hands-on Zoltán Farkas, MTA SZTAKI

Slides:



Advertisements
Similar presentations
Struts Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Advertisements

Site Collection, Sites and Sub-sites
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
1 of 6 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Building a Deployment The following screens demonstrate how to: 1. Create a new OpenHRE™ tailor-made deployment using a remote (sample) deployment Standard.
JSF Portlet Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
The basics of the Online Portal
Business Optix Library Service – Workflow
Welcome! WebJunction CQ Training - Creating an Event Listing Why & How Welcome.
Microsoft Office 2007 Access 2007 Chapter 9 Administering a Database System.
Creating a Website. Unit Objectives Plan a website Create a folder for website management Set up a website Add a folder to a website Save a web page Copy.
June 18, Agenda Welcome Updates and Reminders New CT.gov Site eGovernment Applications Questions & Comments.
CloudBroker integration to WS- PGRADE/gUSE Zoltán Farkas MTA SZTAKI LPDS
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
Vendor Module Screens. Screen 1 - Vendor Material This feature allows VENDOR to enter PO and list all the material from that vendor. This will help vendor.
1/28/2010 Network Plus Windows Networking Network Identification Identifies name and type of network. Installed adapters –Performed during Windows installation.
Home Media Network Hard Drive Training for Update to 2.0 By Erik Collett Revised for Firmware Update.
SharePoint You must use Internet Explorer Single click only on links and buttons There are two handouts 1.Importing a Web Part into SharePoint 2.Adding.
There are lots of wikis out there… But I like…. A how-to for the classroom.
CIS 205—Web Design & Development Dreamweaver Chapter 1.
Microsoft FrontPage 2003 Illustrated Complete Finalizing a Web Site.
SCI-BUS is supported by the FP7 Capacities Programme under contract nr RI Creating the Autodock gateway from WS-PGRADE/gUSE and making it cloud-enabled.
1. 2 Introductions  Name?  What do you want to get out of this session?  To follow along with this presentation go to
Dreamweaver MX. 2 Overview of Templates n Templates represent a web page design or _______ that will be common to multiple pages. n There are two situations.
ASM Hands-on. What will we learn? ● How to install an ASM-based web-application in gUSE ● How to develop ASM-related parts of an interface for – Importing.
An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester.
LDAP Authentication Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
Application Specific Module Tutorial Akos Balasko 02/07/
How to Use Facebook This guide will help you navigate around the social networking site, Facebook.
Microsoft Access 2010 Chapter 10 Administering a Database System.
Bloomer User Notes Installing and Running a Bloomer Installation Jack Park Latest: Project Home:
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
Packaging for Voracity Solutions Control Panel David Turner.
An Introduction to Designing, Executing and Sharing Workflows with Taverna Katy Wolstencroft myGrid University of Manchester IMPACT/Taverna Hackathon 2011.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 41 JavaServer Face.
South Dakota Library Network MetaLib Management Basics Categories Administration South Dakota Library Network 1200 University, Unit 9672 Spearfish, SD.
Hubnet Training One Health Network South East Asia Network Overview | Public and Members-only Pages; Communicating and Publishing using Blogs and News.
Basic Portlet Copyright © 2000 – 2007 Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
SCI-BUS is supported by the FP7 Capacities Programme under contract nr RI Accessing Cloud Systems from WS-PGRADE/gUSE Zoltán Farkas MTA SZTAKI LPDS.
Application Specific Module Tutorial Zoltán Farkas, Ákos Balaskó 03/27/
Intoduction to Andriod studio Environment With a hello world program.
Creating Web Pages with Links, Images, and Embedded Style Sheets
Interstage BPM v11.2 1Copyright © 2010 FUJITSU LIMITED CREATING A SIMPLE PROCESS.
FHA Training Module 1 This document reflects current policy related to this topic. Its content is approved for use in all external and internal FHA-related.
SCI-BUS is supported by the FP7 Capacities Programme under contract nr RI CloudBroker usage Zoltán Farkas MTA SZTAKI LPDS
Convert generic gUSE Portal into a science gateway Akos Balasko.
Convert generic gUSE Portal into a science gateway Akos Balasko.
How to use Drupal Awdhesh Kumar (Team Leader) Presentation Topic.
Chapter 5 Using a Template to Create a Resume and Sharing a Finished Document Microsoft Word 2013.
Core LIMS Training: Entering Experimental Data – Simple Data Entry.
Objectives Create a folder in Google Drive.
Setting up Categories, Grading Preferences and Entering Grades
Getting Started 27-September-2012
CARA 3.10 Major New Features
About SharePoint Server 2007 My Sites
LMEvents SharePoint Portal How-to Guide
Core LIMS Training: Advanced Administration
Welcome to Research Wave/IACUC
Quickr Places & Templates Introduction
Basic hands-on Zoltán Farkas, MTA SZTAKI
Microsoft FrontPage 2003 Illustrated Complete
Multi-host Internet Access Portal (MIAP) Enhancement Guide
Configuring Internet-related services
تنظیم مودم D-Link به حالت NAT
Add Image and Title to Individual Page
Create a Portlet Project in RAD
Microsoft PowerPoint 2007 – Unit 2
Shelly Cashman: Microsoft Word 2016
Local Review is a web site used by state industry projections analysts to obtain, from local area experts, information about economic activity and any.
Presentation transcript:

WS-PGRADE + ASM Basic hands-on Zoltán Farkas, MTA SZTAKI

Outline What we will do Development environment Modification steps Deployment of the new ASM portlet Try it out!

Topic of the hands-on I. Modify an existing, simple ASM portlet: –Remove some features, –Present some features in a different way –Add some error handling Necessary modifications in: –Java, JSP and XML files Application of the ASM portlet: –Add two integers –One coming through a file –One coming through command line

Topic of the hands-on II.

Development Environment Ubuntu VM in VirtualBox: –2G RAM –NAT network gUSE automatically started NetBeans contains the starting project: –ASM_Sample

Modification Step 1 – Copy the application Really simple! In NetBeans: –Right-click on the ASM_Sample project –Select “Copy” –Enter a new project name, e.g. MyASM_Sample –Click “Copy”

Modification Step 1 – Copy the application Really simple! In NetBeans: –Right-click on the ASM_Sample project –Select “Copy” –Enter a new project name, e.g. MyASM_Sample –Click “Copy”

Modification Step 2 – Rename files and classes Expand “Source packages” Expand “hu.sztaki.lpds...” Right-click on “ASM_SamplePortlet.java” Select “Refactor”/“Rename” Enter a new class name, e.g. “MyASM_SamplePortlet” (You can apply rename of comments, if you like) Click “Refactor”

Modification Step 2 – Rename files and classes Expand “Source packages” Expand “hu.sztaki.lpds...” Right-click on “ASM_SamplePortlet.java” Select “Refactor”/“Rename” Enter a new class name, e.g. “MyASM_SamplePortlet” (You can apply rename of comments, if you like) Click “Refactor”

Modification Step 3 – Modify portlet layout I. Expand “Web Pages” Expand “jsp” Expand “asm_sample” Open “asm_sample.jsp”

Modification Step 3 – Modify portlet layout I. Expand “Web Pages” Expand “jsp” Expand “asm_sample” Open “asm_sample.jsp”

Modification Step 3 – Modify portlet layout II. Remove “Get Input”: –Search for the “div_getinput” div –Remove it (along with its parent )!

Modification Step 3 – Modify portlet layout II. Remove “Get Inputs” Search for the “div_getinputs” div Remove it (along with its parent )!

Modification Step 3 – Modify portlet layout III. Modify “Set Input” to “Set Inputs”: –Search for the “doSetInput” hidden input action

Modification Step 3 – Modify portlet layout III. Modify “Set Input” to “Set Inputs”: –Update as follows:

Modification Step 3 – Modify portlet layout IV. Remove “Upload”: –Search for the “Upload” button –Remove it (along with its parent )!

Modification Step 3 – Modify portlet layout V. Add an error message: –Append the following to the end of the JSP file:

Modification Step 4 – Modify portlet class I. Necessary modifications: –Read additional input and update workflow's input file with it –Report error message if inputs are not integers Open “MyASM_SamplePortlet.java” Check out the “doSetInput” method

Modification Step 4 – Modify portlet class II. Original version

Modification Step 4 – Modify portlet class III. Updated version Define input file's port number Get input file's content Input validation Update Input Port

Modification Step 5 – Modify XML files Expand “Configuration Files” Open “web.xml” Select the “XML” view Modify any occurences of “ASM_Sample” to the name of your new project (e.g. “MyASM_Sample”)

Modification Step 5 – Modify XML files Expand “Configuration Files” Open “web.xml” Select the “XML” view Modify any occurences of “ASM_Sample” to the name of your new project (e.g. “MyASM_Sample”)

Modification Step 5 – Modify XML files Expand “Configuration Files” Open “portlet.xml” Select the “XML” view Change the “portlet-class” tag to the name of the class you renamed “ASM_SamplePortlet” to You are welcome to change any of the “portlet-info” sub-tags

Modification Step 5 – Modify XML files Expand “Configuration Files” Open “portlet.xml” Select the “XML” view Change the “portlet-class” tag to the name of the class you renamed “ASM_SamplePortlet” to You are welcome to change any of the “portlet-info” sub-tags

Deploy it to Liferay-based gUSE Sign in as a user with admin roles (default username is : password is : test )

Deploy it to Liferay-based gUSE Navigate to Plugin Installer panel by clicking Manage -> Control Panel, and by selecting Plugins Installation from the menu in the left hand-side, finally clicking install More Portlets button and upload File link.

Adjusting it as a new component (just once) As admin, please go to Settings menu and select Internal Services

Adjusting it as a new component (just once) Click to New button and set the followings: Type of Component: portal Service group: gUSE URL of Component: URL to initialize Component: Public URL of Component: State: active Then click to Save button!

Adjusting it as a new component (just once) Click to copy component Properties tab Set as Source component and as Destination one, then click to copy

Adjusting it as a new component Finally initialize the whole portal again by calling (in some cases portal restart required.)

Creating new menuitem for it (just once)

Adding the portlet under this menu (just once) Click to „Add” and select „more” The newly developed portlet should be available under undefined group. Finally click to „add” in the row of the portlet