Package io.goobi.viewer.modules
Interface IModule
- All Superinterfaces:
IndexAugmenter
IModule interface.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Any clean-up the module might want to do when resetting the currently loaded record.int
deleteUserContributions
(User user) Removes content created by the given user.URLs to widgets containing admin menu links.URLs for the CMS menu.Module configuration object.getId()
getId.URLs to widgets containing navigation menu links.getName()
getName.URLs to sidebar widgets.default Optional<IURLBuilder>
getURLBuilder.getVersion.getWidgets
(String type) Generic widget URLs than can be used from virtually anywhere.Contributions widget_usage.xhtml.boolean
isLoaded()
isLoaded.int
moveUserContributions
(User fromUser, User toUser) Moves all content created by the given user to a different user.Methods inherited from interface io.goobi.viewer.modules.interfaces.IndexAugmenter
augmentReIndexPage, augmentReIndexRecord
-
Method Details
-
getId
String getId()getId.
- Returns:
- a
String
object.
-
getName
String getName()getName.
- Returns:
- a
String
object.
-
getVersion
String getVersion()getVersion.
- Returns:
- a
String
object.
-
getVersionJson
String getVersionJson()- Returns:
- JSON object with version data
-
isLoaded
boolean isLoaded()isLoaded.
- Returns:
- a boolean.
-
getConfiguration
AbstractConfiguration getConfiguration()Module configuration object.- Returns:
- a
AbstractConfiguration
object.
-
getCmsMenuContributions
URLs for the CMS menu.- Returns:
- a
Map
object.
-
getSidebarContributions
URLs to sidebar widgets.- Returns:
- a
List
object.
-
getWidgetUsageContributions
Contributions widget_usage.xhtml.- Returns:
- List of HTML component URLs.
-
getAdminContributions
URLs to widgets containing admin menu links.- Returns:
- a
List
object.
-
getWidgets
Generic widget URLs than can be used from virtually anywhere. The URLs are configured in the config file. -
augmentResetRecord
boolean augmentResetRecord()Any clean-up the module might want to do when resetting the currently loaded record.- Returns:
- true if successful; false otherwise
-
deleteUserContributions
Removes content created by the given user.- Parameters:
user
- User whose content to delete- Returns:
- Number of deleted contributions
-
moveUserContributions
Moves all content created by the given user to a different user.- Parameters:
fromUser
- Source usertoUser
- Destination user- Returns:
- Number of updated rows
-
getURLBuilder
getURLBuilder.
- Returns:
- the
IURLBuilder
for this module, if any. If this module should not alter url building, an empty optional should be returned
-