
io.digdag.spi.AuthenticatedUser Maven / Gradle / Ivy
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