Package se.datadosen.jalbum
Class Widgets
java.lang.Object
se.datadosen.jalbum.Widgets
Utility class to simplify widget usage for skins
- Since:
- 12.3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRemoteWidgets
(AlbumObject rootFolder) Gets the widgets that applies to the current album from the serverstatic boolean
hasWidgets
(AlbumObject rootFolder, AlbumBean engine) Determine if current album has widgets added to it Will try to use cached data.
-
Constructor Details
-
Widgets
public Widgets()
-
-
Method Details
-
hasWidgets
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
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
-