Liferay session variables

These tests check that Liferay session variables are available in Rails.

These variables are accessible in Java JSR286 portlets from the Liferay API. When the Rails-portlet receives a request where the URL contains keywords %UID% or %GID%, these are replaced by the values received from the Liferay API. Rails receives a request with the actual UID number and GID numbers, respectively. The page (Layout in the database) where the portlet is has defined this Group.

<%#= link_to 'UID', url_for(:action => :session_variables)+'/uid/%UID%' -%>
<%#= link_to 'UID debug', url_for(:action => :session_variables)+'/uid/10000' -%>
<% if @uid -%> Received UID: <%= @uid %> <% else -%> No UID found! <% end -%>

<%#= link_to 'GID', url_for(:action => :session_variables)+'/gid/%GID%' -%>
<%#= link_to 'GID debug', url_for(:action => :session_variables)+'/gid/20000' -%>
<% if @gid -%> Received GID: <%= @gid %> <% else -%> No GID found! <% end -%>

<%#= link_to 'Reset', :action => :session_variables -%>