|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.pdcSubscription.ejb.PdcSubscriptionBmEJB
public class PdcSubscriptionBmEJB
Constructor Summary | |
---|---|
PdcSubscriptionBmEJB()
|
Method Summary | |
---|---|
void |
checkAxisOnDelete(int axisId,
String axisName)
Remote inteface method Implements PDCSubscription check for axis deletion. |
protected boolean |
checkSubscriptionRemove(PDCSubscription subscription,
int axisId,
List<String> oldPath,
List<String> newPath)
|
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 |
protected boolean |
checkValueInPath(String value,
List<String> pathList)
Checks if values provided presented in provided path. |
void |
checkValueOnDelete(int axisId,
String axisName,
List<String> oldPath,
List<String> newPath,
List<Value> pathInfo)
Implements PDCSubscription check for value deletion. |
protected boolean |
checkValues(Criteria criteria,
Value searchValue)
|
protected boolean |
checkValuesRemove(String originalPath,
List<String> oldPath,
List<String> newPath)
|
int |
createPDCSubscription(PDCSubscription subscription)
Remote interface method |
List<PDCSubscription> |
getPDCSubscriptionByUserId(int userId)
Remote interface method |
PDCSubscription |
getPDCSubsriptionById(int id)
Remote interface method |
protected boolean |
isCorrespondingSubscription(PDCSubscription subscription,
List<? extends Value> classifyValues)
|
void |
removePDCSubscriptionById(int id)
Remote interface method |
void |
removePDCSubscriptionById(int[] ids)
Remote interface method |
void |
updatePDCSubscription(PDCSubscription subscription)
Remote interface method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PdcSubscriptionBmEJB()
Method Detail |
---|
public List<PDCSubscription> getPDCSubscriptionByUserId(int userId)
getPDCSubscriptionByUserId
in interface PdcSubscriptionBm
userId
-
PDCSubscriptions
finded by id providedpublic PDCSubscription getPDCSubsriptionById(int id)
getPDCSubsriptionById
in interface PdcSubscriptionBm
id
-
public int createPDCSubscription(PDCSubscription subscription)
createPDCSubscription
in interface PdcSubscriptionBm
subscription
-
public void updatePDCSubscription(PDCSubscription subscription)
updatePDCSubscription
in interface PdcSubscriptionBm
subscription
- public void removePDCSubscriptionById(int id)
removePDCSubscriptionById
in interface PdcSubscriptionBm
id
- public void removePDCSubscriptionById(int[] ids)
removePDCSubscriptionById
in interface PdcSubscriptionBm
ids
- public void checkAxisOnDelete(int axisId, String axisName)
checkAxisOnDelete
in interface PdcSubscriptionBm
axisId
- the axis to be checkedaxisName
- the name of the axispublic void checkValueOnDelete(int axisId, String axisName, List<String> oldPath, List<String> newPath, List<Value> pathInfo)
checkValueOnDelete
in interface PdcSubscriptionBm
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 structurepublic void checkSubscriptions(List<? extends Value> classifyValues, String componentId, int silverObjectid)
checkSubscriptions
in interface PdcSubscriptionBm
classifyValues
- Linst of ClassifyValues to be checkedcomponentId
- component where classify event occuressilverObjectid
- object that was classifiedprotected boolean checkSubscriptionRemove(PDCSubscription subscription, int axisId, List<String> oldPath, List<String> newPath)
subscription
- PDCSubscription to checkaxisId
- id of the axis value of which should be removedoldPath
- list of original axis paths (before deletion)newPath
- list new axis path to be places instead of old path
protected boolean checkValuesRemove(String originalPath, List<String> oldPath, List<String> newPath)
originalPath
- oldPath
- newPath
-
protected boolean checkValueInPath(String value, List<String> pathList)
protected boolean isCorrespondingSubscription(PDCSubscription subscription, List<? extends Value> classifyValues)
subscription
- classifyValues
-
protected boolean checkValues(Criteria criteria, Value searchValue)
criteria
- searchValue
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |