Class DependencyManagementServiceImpl
- java.lang.Object
-
- org.wso2.carbon.mediation.dependency.mgt.services.DependencyManagementServiceImpl
-
- All Implemented Interfaces:
DependencyManagementService
public class DependencyManagementServiceImpl extends Object implements DependencyManagementService
-
-
Constructor Summary
Constructors Constructor Description DependencyManagementServiceImpl()
DependencyManagementServiceImpl(DependencyTracker tracker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationObject[]
getDependents(int tenantId, int type, String key)
Find all the configuration objects dependent on a specified configuration object.ConfigurationObject[]
getDependents(int type, String key)
Find all the configuration objects dependent on a specified configuration object in the super tenant super tenant SynapseConfiguration.boolean
hasActiveDependents(int tenantId, int type, String key)
Check whether the specified object has any dependent objects.boolean
hasActiveDependents(int type, String key)
Check whether the specified object has any dependent objects in super tenant SynapseConfiguration.boolean
hasDependents(int tenantId, int type, String key)
Check whether the specified object has any dependent objects.boolean
hasDependents(int type, String key)
Check whether the specified object has any dependent objects in super tenant SynapseConfiguration.protected void
setDependencyTracker(int tenantId, DependencyTracker tracker)
-
-
-
Constructor Detail
-
DependencyManagementServiceImpl
public DependencyManagementServiceImpl()
-
DependencyManagementServiceImpl
public DependencyManagementServiceImpl(DependencyTracker tracker)
-
-
Method Detail
-
setDependencyTracker
protected void setDependencyTracker(int tenantId, DependencyTracker tracker)
-
hasDependents
public boolean hasDependents(int tenantId, int type, String key)
Description copied from interface:DependencyManagementService
Check 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:
hasDependents
in 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
public boolean hasActiveDependents(int tenantId, int type, String key)
Description copied from interface:DependencyManagementService
Check 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:
hasActiveDependents
in 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
public ConfigurationObject[] getDependents(int tenantId, int type, String key)
Description copied from interface:DependencyManagementService
Find 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:
getDependents
in 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
public boolean hasDependents(int type, String key)
Description copied from interface:DependencyManagementService
Check 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:
hasDependents
in 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
public boolean hasActiveDependents(int type, String key)
Description copied from interface:DependencyManagementService
Check 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:
hasActiveDependents
in 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
public ConfigurationObject[] getDependents(int type, String key)
Description copied from interface:DependencyManagementService
Find 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:
getDependents
in 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
-
-