com.silverpeas.pdcSubscription.ejb
Interface PdcSubscriptionBm

All Known Implementing Classes:
PdcSubscriptionBmEJB

public interface PdcSubscriptionBm


Method Summary
 void checkAxisOnDelete(int axisId, String axisName)
          Implements PDCSubscription check for axis deletion.
 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
 void checkValueOnDelete(int axiId, String axisName, List<String> oldPath, List<String> newPath, List<Value> pathInfo)
          Implements PDCSubscription check for value deletion.
 int createPDCSubscription(PDCSubscription subscription)
           
 List<PDCSubscription> getPDCSubscriptionByUserId(int userId)
           
 PDCSubscription getPDCSubsriptionById(int id)
           
 void removePDCSubscriptionById(int id)
           
 void removePDCSubscriptionById(int[] ids)
           
 void updatePDCSubscription(PDCSubscription subscription)
           
 

Method Detail

getPDCSubscriptionByUserId

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

getPDCSubsriptionById

PDCSubscription getPDCSubsriptionById(int id)

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 axiId,
                        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


Copyright © 2016 Silverpeas. All Rights Reserved.