About the constructor of RAMSession
There are two constructors of RAMSession after RAM 7.2
Constructor Summary
RAMSession(java.lang.String ramLocation, java.lang.String userName, java.lang.String password)
Connect to a Rational Asset Manager Server
RAMSession(java.lang.String ramLocation, java.lang.String userName, java.lang.String password, java.lang.String onBehalfOfUserId)
Connect to a Rational Asset Manager Server A repository admin may set the onBehalfOfUser to any userid when set all API calls will be made as if they were made by the set User.
But I found little introduction about the onBehalfOfUserId contructor, why add this contructor and how to utilize it in enterprise applications?
Constructor Summary
RAMSession(java.lang.String ramLocation, java.lang.String userName, java.lang.String password)
Connect to a Rational Asset Manager Server
RAMSession(java.lang.String ramLocation, java.lang.String userName, java.lang.String password, java.lang.String onBehalfOfUserId)
Connect to a Rational Asset Manager Server A repository admin may set the onBehalfOfUser to any userid when set all API calls will be made as if they were made by the set User.
But I found little introduction about the onBehalfOfUserId contructor, why add this contructor and how to utilize it in enterprise applications?
One answer
The onBehalfOfUserId is a uid for some user.
When you create a session withonBehalfOfUserId , the session will be for that user id in terms of activity, usage, lic. etc.
you can only use the on behalf id, if you are using an administrator id. This enable you to connect to RAM using a uid, without the need to know the passwd for that id.
If you are using a front end application, you can use RAM api to connect to it, on behalf of that user.
When you create a session with
you can only use the on behalf id, if you are using an administrator id. This enable you to connect to RAM using a uid, without the need to know the passwd for that id.
If you are using a front end application, you can use RAM api to connect to it, on behalf of that user.