cancel
Showing results for 
Search instead for 
Did you mean: 

Reading value of portal system property through Java code

0 Kudos

Hello All,

I have a requirement to read value of one property/attribute of a System (defined in /irj/portal->System Administration->System Landscape). How can I achieve the same through Java code?

I am working on 7.3 version of portal.

Thanks,

Tarun

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos
0 Kudos

Hi Jun,

Thanks for the reply. But in the links you have shared, there is use of standard methods defined in ISystem(like getAliases() or getSystemId()).

The property, for which I want to read the value, is actually a custom property. Is there any other method where I can pass property name as an argument(something like String getProperty(String propertyName)).

Thanks,

Tarun

junwu
Active Contributor
0 Kudos

That's your problem., why to customize the system object?

there are lot of ways to add configurable information to your application. you  just choose the wrong one.

0 Kudos

Hello Jun,

As per the business requirement, it is necessary to add one custom parameter to system object. I am able to add the parameter but not able to retrieve its value using Java code.

Thanks,

Tarun

former_member189842
Participant
0 Kudos

Hi Jain,, after getting the system object try

system.getAttribute("customParameterID"); (replace customParameterID with your own)