
io.bdeploy.jersey.JerseyScopeService Maven / Gradle / Ivy
package io.bdeploy.jersey;
import java.util.List;
import org.jvnet.hk2.annotations.Service;
import io.bdeploy.jersey.ws.change.msg.ObjectScope;
@Service
public class JerseyScopeService {
private final ThreadLocal> scopes = new ThreadLocal<>();
private final ThreadLocal users = new ThreadLocal<>();
public void setScope(List scope, String user) {
this.scopes.set(scope);
this.users.set(user);
}
public List getScope() {
return this.scopes.get();
}
public ObjectScope getObjectScope() {
return new ObjectScope(this.scopes.get());
}
public String getUser() {
return this.users.get();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy