You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As with KmeliaService#sendPublicationInBasket, the method
KmeliaService#deletePublication is now private to the implementor.
Add a new method in KmeliaService:
deletePublication(PublicationPK pubPK, String userId). This business
method is dedicated to be used by SendInKmelia workflow action handlers
to remove a publication that was published by a workflow in a Kmelia
instance. But this method can be also used by others business services.
The method now checks the user for which the deletion is invoked has the
right to perform the action. Then, if the publication is already in the
trash, it is definitively deleted, otherwise it is moved into the trash.
By doing so, this business behaviour is well encapsulated by
KmeliaService and doesn't require to spill it over others business
services.
0 commit comments