Interface PdcSubscriptionService
-
- All Known Implementing Classes:
DefaultPdcSubscriptionService
public interface PdcSubscriptionService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 succeedvoid
checkValueOnDelete(int axisId, 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 checkedcomponentId
- component where classify event occuressilverObjectid
- 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 checkedaxisName
- the name of the axisoldPath
- old path that would be removed soonnewPath
- new path. That will be places instead of old for this axispathInfo
- 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 checkedaxisName
- the name of the axis
-
-