Package org.alfresco.repo.module
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:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDependencyId()Get the ID of the module that this dependency describes.StringgetVersionString()booleanisValidDependency(ModuleDetails moduleDetails)Check if a module satisfies the dependency requirements.StringtoString()
-
-
-
Method Detail
-
getDependencyId
public String getDependencyId()
Description copied from interface:ModuleDependencyGet 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:
getDependencyIdin interfaceModuleDependency- Returns:
- Returns the ID of the module that this depends on
-
getVersionString
public String getVersionString()
- Specified by:
getVersionStringin interfaceModuleDependency- Returns:
- Returns a string representation of the versions supported
-
isValidDependency
public boolean isValidDependency(ModuleDetails moduleDetails)
Description copied from interface:ModuleDependencyCheck if a module satisfies the dependency requirements.- Specified by:
isValidDependencyin interfaceModuleDependency- Parameters:
moduleDetails- the module details of the dependency. This must be the details of the module with the correctID. This may be null in which case false will always be returned.- Returns:
- Returns true if the module satisfies the dependency requirements.
-
-