Sunday, December 28, 2014

Hybris:000-Kickstart

Hi Friends,

For the past few months, I have been observing there is significant traction towards few technologies like Hybris eCommerce and Adobe AEM. It looks out the combination of Hybris and AEM works very well where AEM on Top of Hybris. So I was queries to know what are the interaction points that Hybris allows to integrate with 3rd party content management systems.

Learning Resources:
---------------------

I observed that there is limited or almost no learning resources available in public for Hybris. The only source looks out to be https://wiki.hybris.com. To access this wiki.hybris.com one needs to be partner or customer of the hybris.


System Requirements:
--------------------------

To work with Hybris, you need to have 
* 64 bit Windows
* Java 7
* 8 GB RAM. 


Target version
--------------
At the time of authoring v5.5.1 is the latest build I see...I am trying this exercise with this version

Licence:
---------
For your information, the version available to download from hybris wiki is trial version for 30 days. To continue using it you need to re-initialize DB i.e you would loose your information. 

Wednesday, October 16, 2013

Customizing UI elements of the Authoring Template


Wow, its quite useful feature!!!. Now we have a ability to change the UI of the authoring field using custom JSP.


Benefits:-

1. Change the UI look and feel as per customer input
2. Restriction on the input value
3. Opportunity to write business logic on fly


Steps to do:-

1. Edit authoring template
2. Go to Default Content Properties
3. Click on "page icon"(properties) next to the field for which you need to customize the UI
4. Give the JSP path in the Custom JSP field. For ex: "/jsp/html/customUIField.jsp"
5. Place the custom jsp at "/wcm/wp_profile/installedApps/node/PA_WCM_Authoring_UI.ear/ilwwcm-authoring.war/jsp/html"

Ref: http://publib.boulder.ibm.com/infocenter/wpdoc/v6r0/index.jsp?topic=/com.ibm.wp.zos.doc/wcm/wcm_dev_custom_jsp.html

Tuesday, October 15, 2013

WCM API online reference


WCM API online reference

http://public.dhe.ibm.com/software/dw/lotus/portal_javadoc/80/wcm/api-javadoc/index.html

Saturday, October 12, 2013

workspace.getById() throws AuthorisationException

Recently came across a requirement to migrate JSP component scripts from 6.1 to 8. In the process of migration found that workspace.getById() WCM API call is not functioning. 

Looking at the logs one could see following kind of error

com.aptrix.pluto.security.AuthorisationException: IWKPY1015X: 
Unauthorised access by {{employeenumber=11111111,ou=people,ou=b2e,ou=ebusiness, 8ef21840-54a0-102c-96c8-950414f94614, fi, Type: User}, 4, {false, {userAccess={}}, {editorAccess={}}, {managerAccess={}}, [all_auth_portal_users%all_auth_portal_users_group_id, anonymous_user%anonymous_user_id, all_users%all_users_group_id


The surprising thing is this happens in-spite of giving "Anonymous user access" 
When looked at the details found following 

In Websphere Portal 8, WCM API calls from custom JSPs by default relies on "Contributor" access to the target content. 

If one wants to override this rule could place following call just before the getById() call.

workspace.useUserAccess(true)


Ref: https://www-304.ibm.com/support/docview.wss?uid=swg21399507


Monday, July 22, 2013

Multilingual Plugin Installation

Hi All,

Recently I had a opportunity to work on MLS plugin that is packaged with WPS. From V7 on-wards it is packaged with the portal. In this blog just I will highlight how to install it.

How to install

1. Go to wkplc.properties(Its located at wp_profile/ConfigEngine/properties) and check WasPassword  and PortalAdminPwd are set.

2. Go to wp_profile/ConfigEngine and run following commands

3. ConfigEngine.bat register-wcm-mls

4. ConfigEngine.bat deploy-wcm-mls

5. Restart Portal


Refer Official documentation: http://infolib.lotus.com/resources/portal/8.0.0/doc/en_us/PT800ACD022/8001/wcm/wcm_mls_install.html

Wednesday, July 3, 2013

JSP Element in Authoring Template


In WPSv8 we have a option to add JSP Element type in the Authoring Template.

Following is the path where .jsp files needs to be placed.

C:\IBM8\WebSphere\wp_profile\installedApps\Cell\PA_WCM_Authoring_UI.ear\ilwwcm-authoring.war\jsp\html 


Friday, June 7, 2013

MongoDB HTTP Interface

I wondered does MongoDB has REST interface (This thought came to be while i was going through CouchDB Futon). Found something interesting with mongoDB also

1. Start your mongod process with command "mongod --rest"

2. Hit http://localhost:28017 in you browser
     ->It should list you some system admin data.

     ->It should have given list of databases as a JSON response. For example I had bellow

{ "databases" : [ 
    { "name" : "blog",
      "sizeOnDisk" : 218103808,
      "empty" : false }, 
    { "name" : "course",
      "sizeOnDisk" : 218103808,
      "empty" : false }, 
    { "name" : "m101",
      "sizeOnDisk" : 218103808,
      "empty" : false }, 
    { "name" : "mydb",
      "sizeOnDisk" : 218103808,
      "empty" : false }, 
    { "name" : "pcat",
      "sizeOnDisk" : 218103808,
      "empty" : false }, 
    { "name" : "school",
      "sizeOnDisk" : 218103808,
      "empty" : false }, 
    { "name" : "students",
      "sizeOnDisk" : 218103808,
      "empty" : false }, 
    { "name" : "test",
      "sizeOnDisk" : 218103808,
      "empty" : false }, 
    { "name" : "local",
      "sizeOnDisk" : 1,
      "empty" : true } ],
  "totalSize" : 1744830464 }

4. You could see list of commands supported over REST at the following location

5. To  lists all documents under "posts" collection in "blog" database

6. To see a specific document in posts collection with query {author="narayan"}

Following link gives some comprehensive note on this HTTP interface. Read and benefit!!!

http://docs.mongodb.org/ecosystem/tools/http-interfaces/