Class Widgets

java.lang.Object
se.datadosen.jalbum.Widgets

public class Widgets extends Object
Utility class to simplify widget usage for skins
Since:
12.3
  • Constructor Details

    • Widgets

      public Widgets()
  • Method Details

    • hasWidgets

      public static boolean hasWidgets(AlbumObject rootFolder, AlbumBean engine)
      Determine if current album has widgets added to it Will try to use cached data. If no cached data is found, performs an online check. Result is cached If not online, will assume that widgets exists Will return false if not signed in or if widget injection has been switched off
      Parameters:
      rootFolder -
      engine -
      Returns:
      boolean telling if current album has widgets or not
    • getRemoteWidgets

      public static List<Widget> getRemoteWidgets(AlbumObject rootFolder) throws IOException
      Gets the widgets that applies to the current album from the server
      Parameters:
      rootFolder - Get widgets that applies to this album or general default widgets if null
      Returns:
      Widget list
      Throws:
      IOException