congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ThreadLocalUtils.put
Code IndexAdd Tabnine to your IDE (free)

How to use
put
method
in
org.hswebframework.web.ThreadLocalUtils

Best Java code snippets using org.hswebframework.web.ThreadLocalUtils.put (Showing top 8 results out of 315)

origin: hs-web/hsweb-framework

public static void setCurrentPersonId(String id) {
  ThreadLocalUtils.put(PersonnelAuthenticationHolder.CURRENT_USER_ID_KEY, id);
}
origin: hs-web/hsweb-framework

static void doPaging(int pageIndex, int pageSize) {
  ThreadLocalUtils.put(threadLocalKey, new Pager() {
    @Override
    public int pageIndex() {
      return pageIndex;
    }
    @Override
    public int pageSize() {
      return pageSize;
    }
  });
}
origin: hs-web/hsweb-framework

  public static void setCurrentUserId(String id) {
    ThreadLocalUtils.put(AuthenticationHolder.CURRENT_USER_ID_KEY, id);
  }
}
origin: hs-web/hsweb-framework

public static UserToken setCurrent(UserToken token) {
  ThreadLocalUtils.put(UserToken.class.getName(), token);
  return token;
}
origin: hs-web/hsweb-framework

public static MethodInterceptorHolder setCurrent(MethodInterceptorHolder holder) {
  return ThreadLocalUtils.put(MethodInterceptorHolder.class.getName(), holder);
}
origin: org.hswebframework.web/hsweb-commons-dao-mybatis

static void doPaging(int pageIndex, int pageSize) {
  ThreadLocalUtils.put(threadLocalKey, new Pager() {
    @Override
    public int pageIndex() {
      return pageIndex;
    }
    @Override
    public int pageSize() {
      return pageSize;
    }
  });
}
origin: org.hswebframework.web/hsweb-system-organizational-authorization

public static void setCurrentPersonId(String id) {
  ThreadLocalUtils.put(PersonnelAuthenticationHolder.CURRENT_USER_ID_KEY, id);
}
origin: org.hswebframework.web/hsweb-boost-aop

public static MethodInterceptorHolder setCurrent(MethodInterceptorHolder holder) {
  return ThreadLocalUtils.put(MethodInterceptorHolder.class.getName(), holder);
}
org.hswebframework.webThreadLocalUtilsput

Javadoc

设置一个值到ThreadLocal

Popular methods of ThreadLocalUtils

  • get
    从ThreadLocal中获取值,并指定一个当值不存在的提供者
  • remove
    删除参数对应的值
  • getAndRemove
    获取一个值后然后删除掉

Popular in Java

  • Making http requests using okhttp
  • startActivity (Activity)
  • setScale (BigDecimal)
  • runOnUiThread (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now