Class ModuleDetailsImpl.ModuleDependencyImpl

java.lang.Object
org.alfresco.repo.module.ModuleDetailsImpl.ModuleDependencyImpl
All Implemented Interfaces:
Serializable, ModuleDependency
Enclosing class:
ModuleDetailsImpl

public static final class ModuleDetailsImpl.ModuleDependencyImpl extends Object implements ModuleDependency
Author:
Derek Hulley
See Also:
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDependencyId

      public String getDependencyId()
      Description copied from interface: ModuleDependency
      Get the ID of the module that this dependency describes. The dependency may be upon specific versions or a range of versions. Nevertheless, the module given by the returned ID will be required in one version or another.
      Specified by:
      getDependencyId in interface ModuleDependency
      Returns:
      Returns the ID of the module that this depends on
    • getVersionString

      public String getVersionString()
      Specified by:
      getVersionString in interface ModuleDependency
      Returns:
      Returns a string representation of the versions supported
    • isValidDependency

      public boolean isValidDependency(ModuleDetails moduleDetails)
      Description copied from interface: ModuleDependency
      Check if a module satisfies the dependency requirements.
      Specified by:
      isValidDependency in interface ModuleDependency
      Parameters:
      moduleDetails - the module details of the dependency. This must be the details of the module with the correct ID. This may be null in which case false will always be returned.
      Returns:
      Returns true if the module satisfies the dependency requirements.