Skip to main content
10-Marble
July 6, 2015
Question

Mashup session parameters in Java

  • July 6, 2015
  • 2 replies
  • 2481 views

Hi,

How can we set the session parameter value for a mashup before showing the mashup in a Custom Java Extension?

Thanks and Regards,

Jyothi

    2 replies

    1-Visitor
    July 6, 2015

    What is the use case for this?

    To be able to set the right session parameter, it has to be within the User Session Context, so if you are trying to set it server side, it still has to be invoked through that particular user's session.

    Earliest timing you can use would be the Mashup loaded event and you can use the services within the CurrentSessionInfo Resource to set the Session parameter.

    jrajesh10-MarbleAuthor
    10-Marble
    July 6, 2015

    What I want to do is:

    1) Take the username and password from the user.

    2) Based on these, set a specific value somewhere

    3) Be able to access this value when I load the Mashup.

    1-Visitor
    July 6, 2015

    You won't be able to retrieve the User's password.

    I think the easier way to go would be either using the User Extensions or Use Groups.

    User Extensions if they have to be unique values, and please note that Server side, using the CurrentSessionInfo Resource you can get the CurrentUser (user who is logged in)

    Groups if a set of Users all will receive the same value (then from CurrentUser, derive the group to derive the value)

    I believe the system provides what you need without the necessity of creating a custom extension.

    1-Visitor
    May 25, 2016

    @Rajesh by any chance did you resolve this issue? If so how?

    We have similar use case. Appreciate your response.

    Thanks

    Pavan