Class R140401000XWIKI15460DataMigration
- java.lang.Object
-
- com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
-
- org.xwiki.notifications.filters.migration.R140401000XWIKI15460DataMigration
-
- All Implemented Interfaces:
DataMigration
,HibernateDataMigration
@Component @Singleton @Named("R140401000XWIKI15460") @Unstable public class R140401000XWIKI15460DataMigration extends AbstractHibernateDataMigration
Cleanup the notification filters preferences remaining on the main wiki from previously removed sub-wikis and users. Note: this class is namedR131007000XWIKI1546
in branch13.10.7+
. This class also coversXWIKI-18397
to prevent having an almost identical migration executed again.- Since:
- 14.5, 14.4.1, 13.10.7
- Version:
- $Id: aa5b1e5a0ee00f8fe8862956877bb3fa65027b86 $
- See Also:
- XWIKI-15460: Notification filter preferences are not cleaned when a wiki is deleted, XWIKI-18397: Notification filter preferences are never cleaned for deleted users
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
componentManager, manager
-
-
Constructor Summary
Constructors Constructor Description R140401000XWIKI15460DataMigration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
XWikiDBVersion
getVersion()
protected void
hibernateMigrate()
boolean
shouldExecute(XWikiDBVersion startupVersion)
-
Methods inherited from class com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
getCurrentDBVersion, getLiquibaseChangeLog, getName, getPreHibernateLiquibaseChangeLog, getStore, getXWikiContext, migrate
-
-
-
-
Method Detail
-
getVersion
public XWikiDBVersion getVersion()
-
getDescription
public String getDescription()
-
shouldExecute
public boolean shouldExecute(XWikiDBVersion startupVersion)
- Specified by:
shouldExecute
in interfaceDataMigration
- Overrides:
shouldExecute
in classAbstractHibernateDataMigration
-
hibernateMigrate
protected void hibernateMigrate() throws DataMigrationException
- Specified by:
hibernateMigrate
in classAbstractHibernateDataMigration
- Throws:
DataMigrationException
-
-