Class PortletWindow

java.lang.Object
io.meeds.appcenter.storage.PortletWindow

public class PortletWindow extends Object
A portlet window's preferences as committed, within a task of PortletWindowStorage.callOnWindow(java.lang.String, java.util.function.Function<io.meeds.appcenter.storage.PortletWindow, T>, java.lang.Runnable): read and written on the storage's thread, in the task's request, under the window's lock.
  • Method Details

    • getStorageId

      public String getStorageId()
      Returns:
      the window's storage id
    • getPreferences

      public Map<String,String> getPreferences()
      Returns:
      the window's preferences as its row holds them, by name
    • savePreferences

      public void savePreferences(Map<String,String> values)
      Sets preferences over the committed ones, the others kept.
      Parameters:
      values - the preferences to set, by name