Package org.alfresco.repo.module
Class ModuleDetailsImpl.ModuleDependencyImpl
- java.lang.Object
-
- org.alfresco.repo.module.ModuleDetailsImpl.ModuleDependencyImpl
-
- All Implemented Interfaces:
java.io.Serializable,ModuleDependency
- Enclosing class:
- ModuleDetailsImpl
public static final class ModuleDetailsImpl.ModuleDependencyImpl extends java.lang.Object implements ModuleDependency
- Author:
- Derek Hulley
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDependencyId()Get the ID of the module that this dependency describes.java.lang.StringgetVersionString()booleanisValidDependency(ModuleDetails moduleDetails)Check if a module satisfies the dependency requirements.java.lang.StringtoString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getDependencyId
public java.lang.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 java.lang.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.
-
-