vendredi 30 novembre 2018

Permission checks in service implementation

I have service implementation class which has lot of code. I need to write permission logic which has many checks Where is the best way to put this code I have create UserAction class for this which I am calling in service implementation method

Is this the right way to do it or I should create abstract class or interface like UserAction interface and create impl class for user action

This is more of design question or better way to structure your code for maintainability

Aucun commentaire:

Enregistrer un commentaire