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

com.softicar.platform.common.core.user.CurrentBasicUser Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
package com.softicar.platform.common.core.user;

import com.softicar.platform.common.core.singleton.Singleton;

/**
 * References the currently active {@link IBasicUser}.
 *
 * @author Oliver Richers
 */
public class CurrentBasicUser {

	private static final Singleton VALUE = new Singleton().setInheritByIdentity();

	/**
	 * Returns the currently active {@link IBasicUser} or null.
	 *
	 * @return the current user (may be null)
	 */
	public static IBasicUser get() {

		return VALUE.get();
	}

	public static void set(IBasicUser user) {

		VALUE.set(user);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy