Class VersionManagerImpl
java.lang.Object
ru.cg.webbpm.studio.core.impl.migrations.VersionManagerImpl
- All Implemented Interfaces:
VersionManager
- Author:
- krylov
-
Constructor Summary
ConstructorsConstructorDescriptionVersionManagerImpl
(ApplicationInfo applicationInfo, DependencyManager dependencyManager, List<FileWithVersionsIO<? extends HasVersions>> ioComponents) -
Method Summary
Modifier and TypeMethodDescriptiongetCurrentVersions
(HasVersions object) Returns current versions for the object, i.e. studio and those packages only that the object depends upon.boolean
isCompatible
(HasVersions object) Checks that an object is compatibleboolean
isUpToDate
(HasVersions object) Checks that an object is up to dateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ru.cg.webbpm.studio.core.api.migrations.VersionManager
requireCompatible
-
Constructor Details
-
VersionManagerImpl
@Autowired public VersionManagerImpl(ApplicationInfo applicationInfo, DependencyManager dependencyManager, @Lazy List<FileWithVersionsIO<? extends HasVersions>> ioComponents)
-
-
Method Details
-
isUpToDate
Description copied from interface:VersionManager
Checks that an object is up to date- Specified by:
isUpToDate
in interfaceVersionManager
- Parameters:
object
- object with versions to check- Returns:
- true if up to date, false if outdated
-
isCompatible
Description copied from interface:VersionManager
Checks that an object is compatible- Specified by:
isCompatible
in interfaceVersionManager
- Parameters:
object
- object with versions to check- Returns:
- true if compatible, false if otherwise
-
getCurrentVersions
Description copied from interface:VersionManager
Returns current versions for the object, i.e. studio and those packages only that the object depends upon. SeeFileWithVersionsIO.getUsedPackages(HasVersions)
- Specified by:
getCurrentVersions
in interfaceVersionManager
- Parameters:
object
- the object- Returns:
- current studio version and package versions for those packages used by the object
-
getCurrentVersions
- Specified by:
getCurrentVersions
in interfaceVersionManager
- Returns:
- current studio and packages versions
-