Monday, May 9, 2016

WSO2GREG-5.1.0 Store Extension Model


WSO2GREG-5.0.0 onwards, Store is build on top of WSO2 Enterprise Store code base. It has extension capabilities which are defined in https://docs.wso2.com/display/ES200/Working+with+the+ES+Extension+Model
There is a small deviation from above documentation when it is applied to Governance Center since some of the original Store code components mentioned in above documentation has been already overridden in Governance Center. However the pattern is similar as in the above documentation.
Below Image Explains the directory structure of expendable components for Governance Center-Store customizations.


  1. Asset extensions are available in this [GREG_HOME]/repository/deployment/server/jaggeryapps/store/extensions/assets/ location
  2. All the app extensions are organized in this folder [GREG_HOME]/repository/deployment/server/jaggeryapps/store/extensions/app/.
    1. Working with App extensions are described in https://docs.wso2.com/display/ES200/Introduction+to+App+Extensions
  3. You can add a new folder here to add a new app extension following the guide https://docs.wso2.com/display/ES200/Creating+the+Shell+of+an+App+Extension
  4. The default behaviour of asset types is defined here [GREG_HOME]/repository/deployment/server/jaggeryapps/store/extensions/assets/default
    1. https://docs.wso2.com/display/ES200/Introduction+to+Asset+Extensions
  5. All the default UI components are organized in this [GREG_HOME]/repository/deployment/server/jaggeryapps/store/themes/store folder.
  6. In GREG Store this [GREG_HOME]/repository/deployment/server/jaggeryapps/store/extensions/app/greg-store-defaults directory is used to override behaviour in 4. And 5. as a special case.
  7. We use the RXT shortname as defined in the definition. You may add a new asset extension with the singular name of RXT type to override the default behaviour 4, 5 and 6 by following the guide https://docs.wso2.com/display/ES200/Creating+the+Shell+of+an+Asset+Extension
    1. Here the priority will be given in the order of (7) >> (6) >> (5+4)
  8. This [GREG_HOME]/repository/deployment/server/jaggeryapps/store/extensions/assets/restservice is a sample of out of the box available asset extension.


No comments:

Post a Comment

Designed ByBlogger Templates