Interface PdcUtilizationService

  • All Known Implementing Classes:
    DefaultPdcUtilizationService

    public interface PdcUtilizationService
    A service in the PdC engine to filter the PdC's axis per application instance. It defines a constraining view onto the PdC for a given application instance so that each classification of the contributions in the application is done onto this view of the PdC.
    • Method Detail

      • getUsedAxis

        UsedAxis getUsedAxis​(String usedAxisId)
                      throws PdcException
        Returns data of an used axis defined by usedAxisId
        Parameters:
        usedAxisId - - id of the usedAxis
        Returns:
        an UsedAxis
        Throws:
        PdcException
      • getUsedAxisByInstanceId

        List<UsedAxis> getUsedAxisByInstanceId​(String instanceId)
                                        throws PdcException
        Returns all the axis used by a given Job'Peas instance
        Parameters:
        instanceId - - the id of the Job'Peas
        Returns:
        a List of UsedAxis
        Throws:
        PdcException
      • addUsedAxis

        int addUsedAxis​(UsedAxis usedAxis,
                        String treeId)
                 throws PdcException
        Add an UsedAxis
        Parameters:
        usedAxis - - the UsedAxis to add
        treeId -
        Returns:
        - 0 si, pour une même instance de Job'Peas, il n'existe pas déjà un axe avec comme valeur de base un ascendant ou un descendant - 1 sinon
        Throws:
        PdcException
      • updateUsedAxis

        int updateUsedAxis​(UsedAxis usedAxis,
                           String treeId)
                    throws PdcException
        Update an UsedAxis
        Parameters:
        usedAxis - - the UsedAxis to update
        treeId -
        Returns:
        - 0 si, pour une même instance de Job'Peas, il n'existe pas déjà un axe avec comme valeur de base un ascendant ou un descendant - 1 sinon
        Throws:
        PdcException
      • deleteUsedAxis

        void deleteUsedAxis​(String usedAxisId)
                     throws PdcException
        Delete an used axis
        Parameters:
        usedAxisId - - the id of the used axis to delete
        Throws:
        PdcException
      • deleteUsedAxis

        void deleteUsedAxis​(Collection<String> usedAxisIds)
                     throws PdcException
        Delete a collection of used axis
        Parameters:
        usedAxisIds - - the ids of the used axis to delete
        Throws:
        PdcException
      • deleteUsedAxisByAxisId

        void deleteUsedAxisByAxisId​(Connection con,
                                    String axisId)
                             throws PdcException
        Delete used axis based on a particular axis
        Parameters:
        con -
        axisId - - the axis id
        Throws:
        PdcException