Monday, June 12, 2017
Deploy your own Enterprise Store part 3
Deploy your own Enterprise Store part 3
I will discuss about few UI modifications you can do to make your own Music Store(or whatever) from what you have deployed, using WSO2 ES while following previous blog posts.You can find previous posts from [1] and [2].
At the moment we have our own mp3 asset type plus few other default asset types (gadget, site, e-book) in the ES.
First Im going to hide all default asset types from the Store UI, there are number of ways to accomplish this task.
1. Get a fresh WSO2-ES pack and remove all default asset rxts , asset types from store-tenant.json, publisher-tenant.json files while adding our new mp3 asset.
2. By modifying /_system/config/store/configs/store.json in our registry. You can find this under Resources > Browse > _system > config >store > configs in our management console https://localhost:9443/admin/carbon/admin/login.jsp.
Under content menu you can update store.json with the following content by pressing Edit as text. We are going to remove all default asset types from the config.
Just save it and browse our store http://localhost:9763/store/{
"assets": [
"mp3"
],
"assetsPageSize": 12,
"commentsPageSize": 10,
"userSpace": "/_system/governance/users",
"roles": {
"Internal/store": {
"/permission/admin/login": [
"ui.execute"
]
}
},
"userRoles": [
"Internal/store"
],
"permissions": {
"login": {
"/permission/admin/login": [
"ui.execute"
]
}
},
"paths": {
"RXT_EXTENSION_PATH": "/config/ext/"
}
}
You can update the icon-sprite.png resides under repository/deployment/server/jaggeryapps/store/extensions/assets/mp3/resources/ with a suitable one for our MP3 store.
Without writing a single line of code we can configure our simple digital asset store by using WSO2 ES :)
[1]. http://udarakr.blogspot.com/2013/11/deploy-your-own-enterprise-store-part-1.html
[2]. http://udarakr.blogspot.com/2013/11/deploy-your-own-enterprise-store-part-2.html
download more info
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment