Package io.goobi.viewer.modules
Interface IModule
- All Superinterfaces:
IndexAugmenter
IModule interface.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAny clean-up the module might want to do when resetting the currently loaded record.intdeleteUserContributions(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.Returns available quartz types.default Optional<IURLBuilder> getURLBuilder.getVersion.getWidgets(String type) Generic widget URLs than can be used from virtually anywhere.Contributions widget_usage.xhtml.booleanisLoaded()isLoaded.intmoveUserContributions(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
Stringobject.
-
getName
String getName()getName.
- Returns:
- a
Stringobject.
-
getVersion
String getVersion()getVersion.
- Returns:
- a
Stringobject.
-
getVersionJson
String getVersionJson()- Returns:
- JSON object with version data
-
isLoaded
boolean isLoaded()isLoaded.
- Returns:
- a boolean.
-
getConfiguration
AbstractConfiguration getConfiguration()Module configuration object.- Returns:
- a
AbstractConfigurationobject.
-
getCmsMenuContributions
URLs for the CMS menu.- Returns:
- a
Mapobject.
-
getSidebarContributions
URLs to sidebar widgets.- Returns:
- a
Listobject.
-
getWidgetUsageContributions
Contributions widget_usage.xhtml.- Returns:
- List of HTML component URLs.
-
getAdminContributions
URLs to widgets containing admin menu links.- Returns:
- a
Listobject.
-
getWidgets
Generic widget URLs than can be used from virtually anywhere. The URLs are configured in the config file. -
getTaskTypes
Returns available quartz types.- Returns:
- List
-
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
IURLBuilderfor this module, if any. If this module should not alter url building, an empty optional should be returned
-