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.
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.
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.
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.
2 answers
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
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