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 Details

    • DependencyManagementServiceImpl

      public DependencyManagementServiceImpl()
    • DependencyManagementServiceImpl

      public DependencyManagementServiceImpl(DependencyTracker tracker)
  • Method Details

    • 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 interface DependencyManagementService
      Parameters:
      tenantId - Tenant ID
      type - Type of the object
      key - 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 interface DependencyManagementService
      Parameters:
      tenantId - Tenant ID
      type - Type of the object
      key - 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 interface DependencyManagementService
      Parameters:
      tenantId - Tenant ID
      type - integer value representing the type of the object
      key - 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 interface DependencyManagementService
      Parameters:
      type - Type of the object
      key - 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 interface DependencyManagementService
      Parameters:
      type - Type of the object
      key - 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 interface DependencyManagementService
      Parameters:
      type - integer value representing the type of the object
      key - name of the object
      Returns:
      an array of dependent objects or null if there are no dependents