on 06-06-2008 9:49 AM
To get an IUser object the following code can be used:
IWDClientUser wduser = WDClientUser.getCurrentUser();
IUser result = wduser.getSAPUser();
The IUser has several methods like getCIty() & getEmail(). Is it possible to retrieve custom attributes for this object?
What does the method getTransientAttribute() do?
Thanks
Hi,
Object getTransientAttribute(String namespace,String name)
Generic get method to access additional transient attributes.
These attributes are contained in separate namespaces, and
are accessible via their names. Attributes that are in no
distinct namespace are formally located in the namespace
null.
Note: the transient attributes are instance specific.
Parameters:
namespace - namespace the attribute is in (may be null)
name - name of the attribute
Returns:
the values of the respective attribute, or null if this namespace
or attribute within this namespace does not exist
regards
Surender Dahiya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Its very good to know that u can read javadocs.Transient attributes are those which we use to indicate to the Java virtual machine that the indicated variable is not part of the persistent state of the object.
i.e attributes that u dont want to save it.
for further refference u can read javadocs as u already know how to read them.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.