Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

need a service a client can call to get server parameters

thanks to some help, I now have by server side parameters defined and configurable as part of the advanced properties on the Jazz server (ccm)

two of those parameters are needed by the web and rich clients as well.
I haven't found a direct api to access these kinds of parameters.

looking thru the source, I think I could create a 'service' that the client could interact with..

anyone have a sample service they created and the client access to same?

thanks for any info..

----
to store parameters on the server, you need to add parameters to your plugin extension definition.

you need to tell the system that you HAVE parameters
by adding a section to your plugin xml.
    

<extension
point="com.ibm.team.repository.common.components">
<component id="idididididi"
name="nnnnnnnn">
</component>
</extension>


if your id string matches one of this already specified, then your parms will show up in that section too..

then in your plugins prereq section you need a definition for the parameters,
also see the link below.
            

<prerequisites>
<configurationProperties>
<configurationProperty
accessPolicy="OPEN"
default="120"
name="sfdc.sessiontime"
description="the number of minutes defined for the Salesforce Org connection timeout"
displayableName="salesforce session timeout"
required="true"
type="INTEGER"
updatePolicy="NO_RESTART_REQUIRED">
</configurationProperty>


then u can access those parameters by calling
getIntegerConfigProperty("sfdc.sessiontime");
where the property name matches the parm 'name' in each section.

there are 4 types of parms,
string, int, boolean and long

as documented here
https://jazz.net/wiki/bin/view/Main/ConfigurationStory

you can also provide a validator method to check when these parms are edited at the server UI.

0 votes



2 answers

Permanent link
and I have the server side 'service' running, and callable from the server..
spent 3 days wasted using the samples which really don't apply anymore,
sure wish there was a good design doc and reference material on how this thing works... people send me links to the library and wiki, but I can't find these docs on my own.. I try to reverse navigate, but the links are not found in the material I see..

But, now I need to make a client call work..
/com/ibm/team/repository/service/internal/RepositoryRemoteService

is such a client accessible service. I just can't find where it is setup
and how to get a reference to it (from the client position I am in, in
com.ibm.team.workitem.client)

anyone have any clues?

thanks

Sam

0 votes


Permanent link
Ok, solved.. thanks for the help.., net was missing a plugin.xml for the interface plugin.

see https://jazz.net/forums/viewtopic.php?p=64382#64382

Sam

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,939

Question asked: Sep 06 '11, 12:14 a.m.

Question was seen: 4,818 times

Last updated: Sep 06 '11, 12:14 a.m.

Confirmation Cancel Confirm