jeudi 16 juillet 2015

Design pattern for validation

Is there any adequate design pattern that should be used in order to do number of validations. For example, let's say that I have an application containing a toolbar with icons (each icon represent a picture on my file system). I am dragging an icon on a document. Validations during the drag and drop operation could be: 1. check if the file exists in file system 2. Check if the user has access rights to drag the icon 3. Check that the document is open in order to drop the picture on it and so on...

I thought using COR or decorator. Thanks

Aucun commentaire:

Enregistrer un commentaire