How to use the Liferay Portal Client Example

A few days ago, I made ​​a simple example of using the Liferay Client Library. The project is based on Maven. Below are shown the steps needed to perform a test. I remember that the operations performed by the sample program are:

  • Performs login on Liferay;
  • Retrieves the CompanyID based on the virtualhost;
  • Retrieve UserId of the user to ScreenName and CompanyID;
  • Retrieves the GroupId of the site Guest;
  • Performs the upload of a document on the Document Library site Guest.

List 1. Clone repository and build the package

List 2. Run the portal client example

List 3. Show the performed tasks.

Figure 1 - List View of the Document Library

Figure 1 – List View of the Document Library

Figure 2 - Detail View of the document inserted by SOAP Services

Figure 2 – Detail View of the document inserted by SOAP Services

Antonio Musarra

I began my journey into the world of computing from an Olivetti M24 PC (http://it.wikipedia.org/wiki/Olivetti_M24) bought by my father for his work. Day after day, quickly taking control until … Now doing business consulting for projects in the enterprise application development using web-oriented technologies such as J2EE, Web Services, ESB, TIBCO, PHP.

Potrebbero interessarti anche...