Interface PdcSubscriptionService

    • Method Detail

      • getPDCSubscriptionByUserId

        List<PdcSubscription> getPDCSubscriptionByUserId​(int userId)
        Parameters:
        userId -
        Returns:
        a list of PDCSubscriptions finded by id provided
      • createPDCSubscription

        int createPDCSubscription​(PdcSubscription subscription)
        Parameters:
        subscription -
        Returns:
        new autogenerated PdcSubscription id
      • updatePDCSubscription

        void updatePDCSubscription​(PdcSubscription subscription)
      • removePDCSubscriptionById

        void removePDCSubscriptionById​(int id)
      • removePDCSubscriptionById

        void removePDCSubscriptionById​(int[] ids)
      • checkSubscriptions

        void checkSubscriptions​(List<? extends Value> classifyValues,
                                String componentId,
                                int silverObjectid)
        This method check is any subscription that match criterias provided and sends notification if succeed
        Parameters:
        classifyValues - Linst of ClassifyValues to be checked
        componentId - component where classify event occures
        silverObjectid - object that was classified
      • checkValueOnDelete

        void checkValueOnDelete​(int axisId,
                                String axisName,
                                List<String> oldPath,
                                List<String> newPath,
                                List<Value> pathInfo)
        Implements PdcSubscription check for value deletion. It deletes all references to the path containing this value from PdcSubscription module DB
        Parameters:
        axisId - the axis to be checked
        axisName - the name of the axis
        oldPath - old path that would be removed soon
        newPath - new path. That will be places instead of old for this axis
        pathInfo - should contains PdcBm.getFullPath data structure
      • checkAxisOnDelete

        void checkAxisOnDelete​(int axisId,
                               String axisName)
        Implements PdcSubscription check for axis deletion. It deletes all references to this axis from PdcSubscription module DB
        Parameters:
        axisId - the axis to be checked
        axisName - the name of the axis