Class DependencyManagementServiceImpl
java.lang.Object
org.wso2.carbon.mediation.dependency.mgt.services.DependencyManagementServiceImpl
- All Implemented Interfaces:
DependencyManagementService
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetDependents(int tenantId, int type, String key) Find all the configuration objects dependent on a specified configuration object.getDependents(int type, String key) Find all the configuration objects dependent on a specified configuration object in the super tenant super tenant SynapseConfiguration.booleanhasActiveDependents(int tenantId, int type, String key) Check whether the specified object has any dependent objects.booleanhasActiveDependents(int type, String key) Check whether the specified object has any dependent objects in super tenant SynapseConfiguration.booleanhasDependents(int tenantId, int type, String key) Check whether the specified object has any dependent objects.booleanhasDependents(int type, String key) Check whether the specified object has any dependent objects in super tenant SynapseConfiguration.protected voidsetDependencyTracker(int tenantId, DependencyTracker tracker)
-
Constructor Details
-
DependencyManagementServiceImpl
public DependencyManagementServiceImpl() -
DependencyManagementServiceImpl
-
-
Method Details
-
setDependencyTracker
-
hasDependents
Description copied from interface:DependencyManagementServiceCheck whether the specified object has any dependent objects. This also includes non-active (type UNKNOWN) objects which may still have a dependency on the given object.- Specified by:
hasDependentsin interfaceDependencyManagementService- Parameters:
tenantId- Tenant IDtype- Type of the objectkey- Name (ID) of the object- Returns:
- true if the object has at least one dependent and false otherwise
-
hasActiveDependents
Description copied from interface:DependencyManagementServiceCheck whether the specified object has any dependent objects. This does not include non-active (type UNKNOWN) objects which may still have a dependency on the given object.- Specified by:
hasActiveDependentsin interfaceDependencyManagementService- Parameters:
tenantId- Tenant IDtype- Type of the objectkey- Name (ID) of the object- Returns:
- true if the object has at least one active dependent and false otherwise
-
getDependents
Description copied from interface:DependencyManagementServiceFind all the configuration objects dependent on a specified configuration object. This method also returns the non-active (type UNKNOWN) configuration objects which are dependent on the specified object.- Specified by:
getDependentsin interfaceDependencyManagementService- Parameters:
tenantId- Tenant IDtype- integer value representing the type of the objectkey- name of the object- Returns:
- an array of dependent objects or null if there are no dependents
-
hasDependents
Description copied from interface:DependencyManagementServiceCheck whether the specified object has any dependent objects in super tenant SynapseConfiguration. This also includes non-active (type UNKNOWN) objects which may still have a dependency on the given object.- Specified by:
hasDependentsin interfaceDependencyManagementService- Parameters:
type- Type of the objectkey- Name (ID) of the object- Returns:
- true if the object has at least one dependent and false otherwise
-
hasActiveDependents
Description copied from interface:DependencyManagementServiceCheck whether the specified object has any dependent objects in super tenant SynapseConfiguration. This does not include non-active (type UNKNOWN) objects which may still have a dependency on the given object.- Specified by:
hasActiveDependentsin interfaceDependencyManagementService- Parameters:
type- Type of the objectkey- Name (ID) of the object- Returns:
- true if the object has at least one active dependent and false otherwise
-
getDependents
Description copied from interface:DependencyManagementServiceFind all the configuration objects dependent on a specified configuration object in the super tenant super tenant SynapseConfiguration. This method also returns the non-active (type UNKNOWN) configuration objects which are dependent on the specified object.- Specified by:
getDependentsin interfaceDependencyManagementService- Parameters:
type- integer value representing the type of the objectkey- name of the object- Returns:
- an array of dependent objects or null if there are no dependents
-