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

io.digdag.spi.AuthenticatedUser Maven / Gradle / Ivy

There is a newer version: 0.10.5.1
Show newest version
package io.digdag.spi;

import io.digdag.client.config.Config;
import org.immutables.value.Value;

@Value.Immutable
public interface AuthenticatedUser
{
    int getSiteId();

    @Value.Default
    default boolean isAdmin()
    {
        return false;
    }

    Config getUserInfo();

    // this context will not be stored on database instead of userInfo, which is stored as part of wf revision.
    Config getUserContext();

    static ImmutableAuthenticatedUser.Builder builder()
    {
        return ImmutableAuthenticatedUser.builder();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy