WSO2 Governance Registry UI customization - wso2

Folks,
I'd like to have something like the following in our service registry.
I'd like to add a field to the UI that when I click on it in the UI, it does a select from the database and creates a popup with the data returned from that database select.
is this possible?
For instance, I'd like to have a button on the UI page for a service that when clicked, goes to the database and gets all "METHODS" of the service (I would have previously populated customized database fields after analyzing the service definition, and this button would execute a customized select statement to pull the required data out of the db).

I am not entirely clear about what your requirements is but i think this might help take look at the doc for RXT[1] and see if you can solve your requirement with that :).
[1] http://docs.wso2.org/wiki/pages/viewpage.action?pageId=22185121
Thanks,
Pulasthi

Related

Real time data report in powerbi service

We have a react app where i want to embed a powerbi service report.
That report (kept in powerbi service) data will update the user interact with our react app's database.
I know there is a way-
if we connect that report with an SQL database source, and everytime that database source is refreshed, we will hit a powerbi provided 'refresh report api' and the updated data will be reflected in the embedded report..
But I want to know if there is any other more elegant way to achieve the same?
Alternative way-
also if there is a way to create a new report inside powerbi service just by hitting a powerbi endpoint with given json, and then embed that newly created report inside our application. that will be better.
as far as i have seen there docs they have apis to clone, delete, update a report but not to create one?
in case you know please let me know.
Thanks in advance.
my another related question is here for more reference - Create a report in powerbi service through APIs in React
also this community discuss - https://community.powerbi.com/t5/Service/Create-a-report-in-powerbi-service-through-APIs-in-React/m-p/3055794
If you use a DirectQuery model the report will generate queries to your database when the user interacts with a report. There will be no "refresh".

Sitecore DMS custom visitor classification

I am trying to implement custom visitor classification.
I defined my custom types in master database under and published them
/sitecore/system/Settings/Analytics/Visitor Identifications
And I set the visitor classification upon login using api call
Sitecore.Analytics.Tracker.Visitor.SetVisitorClassification(member.MemberType, member.MemberType, false);
But I was still getting my visits in visit detail report as Anonymous, upon digging I found that [VisitorClassifications] table in analytics database still doesn't have my custom Visitor Identifications.
Is there something I need to do get the custom "Visitor Identifications" I already defined in sitecore in to analytics database ? I wonder if making manual entry in to that database is the right way ? Would I break something ?
Open Control Panel and click on 'Analytics' Link.
Then you can find a link called 'Update Visitor Classification'
This will launch a wizard. It says, 'This wizard will help you : Update visitor classifications in the Analytics database.'
Try this. I think this should help you.

how to customize publish action - sitecore

I created a user in sitecore with 2 roles assigned to him i.e author and publisher
When this user who is both author and publisher creates any content he shouldn't be able to publish it.
Can i overwrite the publish action? check on the user who submitted the content and the roles he is assigned to and restrict him with a popup message or something like that? Any help is appreciated.
Thanks.
Follow the below steps to write custom publish actions
For customizing the publish action, Write a c# class and inherit
Sitecore.Shell.Applications.Dialogs.Publish.PublishForm.There
are override methods like ActivePageChanged and OnNext. You can
basically overwrite those classes and write your own alerts with
Sitecore.Web.UI.Sheer.SheerResponse like shown below.
SheerResponse.Alert("The current item will not be published.Please
select both staging and web database to publish the HOME item.");
Copy the Publish.xml file from (your
siteroot/)/sitecore\shell\Applications\Dialogs\Publish.
Create "sitecore\shell\Override\Applications\Dialogs\publish" in root of website
Paste publish.xml in the following folder in root of your site "sitecore\shell\Override\Applications\Dialogs\publish"
Open publish.xml file and modify the Wizard tag
CodeBeside="Sitecore.Shell.Applications.Dialogs.Publish.PublishForm,Sitecore.Cli
ent"
to
CodeBeside="your Class Name with name space here,your Assembly name"
Here is screenshot of how publishoverride form should look like

Liferay web service

I use Liferay 6.1.1-ce-ga2 bundled with Tomcat server and Oracle 10g database.
My goal is to insert some content, as Journal Article, and display them in an Asset Publisher (with a structure and template, already working).
I used JournalArticleServiceSoap.addArticle(...) with the right fields (groupid, structureid, templateid, ...). The contents are "correctly" inserted in the database and I can see them inside web contents from administrator content panel. The contents have also "Approved" as status. This is done by setting:
serviceContext.setWorkflowAction(WorkflowConstants.ACTION_PUBLISH)
However, I can't see the inserted contents displayed with the other contents in the Asset Publisher, until I open it again for edition and click on publish button (even without changing nothing). Then the content is published as expected. The problem is the number of contents. It is about 600 so I can't to this action for each one.
I do not understand what is the matter and how to figure it out? In other words, what do I have to do to make the web-content inserted by web service display automatically in Asset Publisher?
Or, what does the "Publish" do exactly so I can try to reproduce programmatically with SOAP service (or SQL after insertion)?
Thank you in advance for your help.
I've also posted the same question in Liferay' forum: Problem to display JournalArticle inserted by SOAP web service
you can try to log the database accessing from Liferay and see what will be changed after you save article manualy. Herefor set the logging level of hibernate to info or debug.
are you setting serviceContext like this?
ServiceContext serviceContext = new ServiceContext();
serviceContext.setAddGuestPermissions(true);
serviceContext.setAddGroupPermissions(true);
serviceContext.setScopeGroupId(groupId);
serviceContext.setWorkflowAction(WorkflowConstants.ACTION_PUBLISH);
You must setting serviceContext Like This:
ServiceContext serviceContext = new ServiceContext();
//serviceContext.setAddGuestPermissions(true);
//serviceContext.setAddGroupPermissions(true);
serviceContext.setScopeGroupId(groupId);
serviceContext.setWorkflowAction(1);
serviceContext.setIndexingEnabled(true);
serviceContext.setIndexingEnabled(true); is Very Important.
The following code is not must requeired.
serviceContext.setAddGuestPermissions(true);
serviceContext.setAddGroupPermissions(true);

List of Values in ADF service interface

I got a ADF Business Components Model Project. In some View Objects I defined a List of Values for the Attributes, and also set a Label in the UI Hints tab of some Attributes.
When I run the Application Module every thing works fine.
Now I want to expose this (and some other) View Objects via web service. So I added a Service Interface to the Application Module, where I set how the View Objects should be exposed. I also checked the Generate Control Hints Operation Check box.
In the next step I create a Web Service Data Control with the WSDL of my service. Then when I drop the result of a, for example, findByViewCriteria-method, to a jsf page, and choose ADF Form, I got neither the option for a Choice component, nor are the labels like I configured them.
Does any one have a idea, what am I missing? How do I enable the LOV and UI Hints in my web service?
The Web service won't have LOV defined on it just because those are defined in the ADF BC layer.
So what you need to do is to add a list to the parameter you are passing to a Web service.
Similar to this:
https://blogs.oracle.com/shay/entry/adding_lov_to_non_database
Shays answer was very helpful (as always), though I want to share how I eventually solved this in my case.
As he pointed out
The Web service won't have LOV defined on it just because those are defined in the ADF BC layer.
So I dropped the attribute, as selectOneChoise to the page. Important thing to note is, that only the result of a find-method can be used as a List Data Source, the result of a getByKey-method results in an error.