Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
aykarthik
Posts: 187
Registered: ‎08-13-2008
My Device: Not Specified

How to retrieve the ITPolicy settings from BES server?

Hi Guys,

 

How to retrieve the ITPolicy settings from BES server?

 

 

Thanks in advance.

Please use plain text.
Administrator
MSohm
Posts: 14,241
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: How to retrieve the ITPolicy settings from BES server?

You can use the ITPolicy class to read in custom IT Policy items.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
aykarthik
Posts: 187
Registered: ‎08-13-2008
My Device: Not Specified

Re: How to retrieve the ITPolicy settings from BES server?

For exapmle i am using

 

ITPolicy.getInteger(int group, int id, int defaultValue); to get the IT policy setting. Here i need to know what to pass for group and id? 

 

For e.g,

In "Security policy group" we set "Allow Internal Connections" to false.

 

How to get these policy settings?

 

Thanks

 

Please use plain text.
Administrator
MSohm
Posts: 14,241
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: How to retrieve the ITPolicy settings from BES server?

This class is designed to be used for custom IT Policies that are created specifically for an application (where you would set these values).  While it is possible to access the IT Policy values of the IT Policies that come with a BlackBerry Enterprise Server using this class, we do not publicly document the required IDs.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.