Codota Logo
ThreadLocalUserContext.clear
Code IndexAdd Codota to your IDE (free)

How to use
clear
method
in
org.projectforge.framework.persistence.user.api.ThreadLocalUserContext

Best Java code snippets using org.projectforge.framework.persistence.user.api.ThreadLocalUserContext.clear (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: micromata/projectforge

/**
 * If given user is null, {@link #clear()} is called.
 *
 * @param user
 */
public final static void setUser(UserGroupCache userGroupCache, final PFUserDO user)
{
 if (user == null) {
  clear();
  return;
 }
 final UserContext userContext = new UserContext(user, userGroupCache);
 setUserContext(userContext);
}
origin: micromata/projectforge

public void logout()
{
 PFUserDO user = userContext != null ? userContext.getUser() : null;
 if (user != null) {
  log.info("User logged out: " + user.getShortDisplayName());
  user = null;
 }
 ThreadLocalUserContext.clear();
 userContext = null;
 super.clear();
 super.invalidateNow();
}
origin: micromata/projectforge

private void internalShutdown()
{
 log.info("Shutdown...");
 upAndRunning = false;
 try {
  final UserContext internalSystemAdminUserContext = UserContext
    .__internalCreateWithSpecialUser(DatabaseService
      .__internalGetSystemAdminPseudoUser(), getUserGroupCache());
  ThreadLocalUserContext.setUserContext(internalSystemAdminUserContext); // Logon admin user.
  databaseUpdater.shutdownDatabase();
 } finally {
  ThreadLocalUserContext.clear();
 }
 log.info("Shutdown completed.");
}
origin: micromata/projectforge

ThreadLocalUserContext.clear();
MDC.remove("ip");
MDC.remove("session");
origin: micromata/projectforge

ThreadLocalUserContext.clear();
org.projectforge.framework.persistence.user.apiThreadLocalUserContextclear

Popular methods of ThreadLocalUserContext

  • getUser
  • getLocalizedString
  • getTimeZone
  • getUserId
  • getLocale
    If context user's locale is null and the given defaultLocale is not null, then the context user's cl
  • getDateTimeZone
  • setUser
    If given user is null, #clear() is called.
  • getLocalizedMessage
  • getUserContext
  • setUserContext
  • getCalendarFirstDayOfWeek
    The first day of the week, configured at the given user, if not configured ConfigXml#getFirstDayOfWe
  • getJodaFirstDayOfWeek
  • getCalendarFirstDayOfWeek,
  • getJodaFirstDayOfWeek

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • startActivity (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now