All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.labkey.remoteapi.security.WhoAmIResponse Maven / Gradle / Ivy

Go to download

The client-side library for Java developers is a separate JAR from the LabKey Server code base. It can be used by any Java program, including another Java web application.

There is a newer version: 6.2.0
Show newest version
package org.labkey.remoteapi.security;

import org.json.JSONObject;
import org.labkey.remoteapi.CommandResponse;

public class WhoAmIResponse extends CommandResponse
{
    public WhoAmIResponse(String text, int statusCode, String contentType, JSONObject json)
    {
        super(text, statusCode, contentType, json);
    }

    public Number getUserId()
    {
        return getProperty("id");
    }

    public String getEmail()
    {
        return getProperty("email");
    }

    public String getDisplayName()
    {
        return getProperty("displayName");
    }

    public boolean isImpersonated()
    {
        return getProperty("impersonated");
    }

    public String getCSRF()
    {
        return getProperty("CSRF");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy