The java class com.liferay.portalweb.portal.util RuntimeVariables provides a way to store and retrieve runtime variables in liferay portal. These variables can be accessed throughout the portal during the current session.
In this example, we are storing a variable 'username' with value 'user1' using the put method of the RuntimeVariables class. Later, we retrieve the variable value using the get method and store it in a string variable.
In this example, we are storing an arraylist object 'items' using the put method. We retrieve this object using the get method and store it in an arraylist variable 'items'. Later, we add an element to the arraylist.
The package library for this class is com.liferay.portalweb.portal.util. This class belongs to the Liferay Portal platform.
Java RuntimeVariables - 30 examples found. These are the top rated real world Java examples of com.liferay.portalweb.portal.util.RuntimeVariables extracted from open source projects. You can rate examples to help us improve the quality of examples.