Getting RTC stream name from Project explorer or Navigator - eclipse

Is there any API or way in which we can get the RTC stream name from the Project explorer or Navigator view selection in eclipse.
I am creating a RTC util which needs some basic inputs like stream name or project (that user select on navigator), which in turn communicates with RTC in doing our project related activies.
Project explorer / Navigator shows the users local repository name, but i am unable go get those, these two views provide the file as IFile or IResource(IFolder, IProject.. etc) or ICompliationUnits.
which gives only the path of the file.
So Is there anyway where i can get those stream name from those project/file that user select.
Thanks in advance.

I finally found with little exploration. here it goes.
Once the Project (created) or loaded throught RTC,
Projects get the additionals details added to its lable, like RTC component and Respository they came from.
Since the Project explorer view is a tree viewer, cast the selection to TreeSelection and using the getText() method, get the complete display name of that tree item.
Which by parsing gives the user repository name.
Using that as a repository name, query the RTC for user "WORKSPACE" and get the user repository connection and get its flow target (both delivery and accept), which is mostly where there user repository created from.
And this solves my probelm as i want only the current delivery flowtarget (no matter where the user repository created from).
get the source repository of the

Related

Extract project and Report level metadata from obiee12c

As we have below command to extract all the projects/reports from obiee12c analytics
exportServiceInstance( '/oraclehome/user_projects/domains/bi','mycompany.facility', '/workDir', '/scratch/exportDir')
This command provided extracts all metadata information of every projects and folders and report present in analytics as a archived bar file.Is there any other way were I can get metadata information of particular report or project which I need and not all the projects as a bar file or any?
OBIEE comes with several client tool with the "Catalog Manager" being the admin tool of choice for handling catalog-related tasks like yours. It exists as a GU and a command line both so you can also automate/script repetitive tasks like reporting on your reporting objects.
Have a look at the official documentation as it's too much text to just post into an answer here and you may come across things you want or need in there which go beyond your initial question here:
https://docs.oracle.com/middleware/12211/biee/BIESG/GUID-E804B1AF-B792-4929-BE47-33CA0F668715.htm#BIESG340
I you only need the reports you can export your reports folder directly from the catalog in OBI web interface or using "Catalog Manager" as suggested by #Chris.
For the repository you can connect Online to your server then from file -> Copy As
Note : exporting the service instance is used for environment migration, it's easier to move all what you need with one bar file (for example having DEV PROD environments).

how to go to a specific folder directly from jasper server community edition main menu bar custom menu item

I added new menu for main menu bar in Jasper Server Community Edition.then I want to set a direct link for my custom folders in that custom menu items.
When I go to two folders URL is same for both.It is also equal to Repository URL that I shown below as common url.
common url is :-
http://localhost:8080/jasperserver/flow.html?_flowId=searchFlow
How can I find folder specific url in jasper server?
Although not documented, the samples in the Repository HTTP API use the folderUri URL parameter for navigating inside repository folders:
http://<host>:<port>/<context>/flow.html?_flowId=searchFlow&folderUri=/public/Samples/Reports
I have tried this in latest JasperReports Server(v7.1) and it works properly.
One important thing I have noticed is that the value for this parameter is case-sensitive. You could obtain the right value by performing these steps:
Right-click the Repository folder for which you need the path
Select the Properties... option
Copy the Path value from the pop-up dialog

New file in template is not accessed

I am trying to display results in a web page. I want to link this from the waterfall page of buildbot. But when I useclick , the required web page does not open. I have placed this new web page in the templates directory. Is there something more that needs to be done?
Since the results you want to display are produced by one of your builds,
the waterfall web templates are not relevant, since they are templates
for the whole waterfall, including all builds, whether or not they
are builds that produce these particular results.
If you wish to provide links to some files generated by a build, you select
a buildstep in the build, or create one for the purpose, that will provide
those links within its status box in the waterfall display (e.g. in the
way that a ShellCommand buildstep provides a link to its stdio log).
For example, you might just add a final step to the build with the description
Report or Publish.
You must write a customized BuildStep class to execute the step that you select
or create. Your customized BuildStep class must be derived from LoggingBuildStep,
or from a class, such as ShellCommand, that is already derived from LoggingBuildStep.
The necessary customization is to override the createSummary method with
your own implementation, and in that implementation call the addURL method to adds URL(s)
to the file(s) you want to publish to the buildstep's status box. You can add as
many URLs as you like. Here is an outline example:
class ReportingStep(ShellCommand):
...
command = ['upload','report',to','some','server']
...
def createSummary(self,log):
...
url = "url/to/the/report/on/the/server"
self.addURL("Report", url)
Now, when ReportingStep completes, its status box will contain
a link labelled Report to the report that the step has uploaded to the server.
Google "buildbot buildstep createSummary" for more leads.
What if my files are saved locally and for now I just want the user to have a link to download the zipped files?
From what I understand, the above customization will help provide an external url.
The user clicks a link that is served from your buildmaster. If your
build just saves these files locally, then they're saved on the buildslave.
So unless your buildslave is on the same machine as the buildmaster then the link has to be URL to an "external" file.
On the other hand, if your buildstep uploads the file to the buildmaster,
then the link can be a link to local file - local on the buildmaster, which
is serving the link.
If your buildslave is on the same machine as your buildmaster, then obviously
you don't need to do any uploading:
addURL("Report",file:///path/to/the/zipfile.zip)
But remember, if you want the content at these links to be persistent then
/path/to/the/zipfile.zip had better not be somewhere that gets clobbered
by every build.

Upload in Alfresco Repository

I'm new to Alfresco. What i'm trying to do is to upload a file through REST API in a folder that i have created using Alfresco Web Administration Interface. I have a few problems:
1) I can see a set of folders, but how are them managed by Alfresco? As far as i know, those folders doesn't really exists physically, they are virtual. How does Alfresco manage the folders structure and files?
2) I have seen many examples on the _REST API use to upload a file. Anyway, the destination is set by something like this
workspace://SpacesStore/aae3b33fd-23d4-4091-ae64-44a8e332091341
I can't understand: What exactly is a SpaceStore? And, does the last-part-code refers to a specific folder? How can i get those codes relative to the folder i see in the Alfresco Web Admin Interface?
1) I can see a set of folders, but how are them managed by Alfresco?
As far as i know, those folders doesn't really exists physically, they
are virtual. How does Alfresco manage the folders structure and files?
Alfresco is an implementation of the Java Content Repository (JCR), this means that all the contents are managed using a logic structure similar to a graph of nodes. Storing and manipolating content must be done using the repository API, that's why you don't see anything at a storage level.
Each content in Alfresco is a node connected to at least another node: the parent.
The storage of Alfresco is based on two components:
File system for storing binaries and search indexes
Database for storing the backup of metadata and associations
The way how Alfresco stores contents is not important for you because you typically want to access using the Alfresco API. You can create your own logic structure in the repository using any type of folders tree and content associations.
2) I have seen many examples on the _REST API use to upload a file.
Anyway, the destination is set by something like this
workspace://SpacesStore/aae3b33fd-23d4-4091-ae64-44a8e332091341 I
can't understand: What exactly is a SpaceStore? And, does the
last-part-code refers to a specific folder?
A repository typically consists of a set of JCR workspaces, the SpacesStore is one of the workspaces in Alfresco and it is the logic partition of contents in their latest version.
Alfresco also contains other workspaces:
userStore: contains person nodes
archiveStore: contains removed nodes
version2Store: contains the version history of nodes
How can i get those codes relative to the folder i see in the Alfresco
Web Admin Interface?
That code is the node reference that is the unique identifier for each node in the repository and as you can see it consists of three parts:
workspace: the store protocol
SpacesStore: the store identifier
uuid: the UUID related to the node
The store reference consists of the store protocol appended with the store identifier and it is the identifier of the workspace where the node lives. The UUID specify the content inside the workspace.
These node references are the ID for nodes and you can see all these informations using the Node Browser inside the Alfresco Explorer | Administration Console trying to navigate your repository starting from the Company Home.
Hope this helps.

How to track/handle changes made by other users to source contorl shared emf resource

Our project saves the model in xml resource file. The xml resource tags get listed as nodes in project explorer. This project is part of source control and been worked upon by multiple users. I am able to handle all enotifications and take appropriate actions when user performs the changes in his workspace. Though when other users change the model file, and the new synced file is obtained in other workspace, I get only notification that xml file was modified. What exact model changes were done is not received.
Things work fine if user closes and open the project.Though this is not the right solution. I tried doing resource.unload followed by resource.load.This didn't make any difference. How can I achieve the desired result programmaticaly?
EMF Compare should be able to help you in comparing two files, but I'm not sure if it integrates well with SCMs.