Solved! Go to Solution.
It is not very clear what exactly you want to acheive. If you could elaborate your problem statement liitle bit more, it will be easier to help you out.
I just need to create UI menu action by clicking on it shall perform certain validation on CAD Document and based on that it shall prompt yes/no dialog to user. Based on the user input yes/no final action shall be committed.
Harshal, if you have only one validation logic, then writing a validator and hooking it up with the action is a way to go.But if you want to write a generic validation logic or some other developers wants to add to some additional validation logic then, FILTERS are best option.
Refer to the Customization guide, u will get your answers.
Just to clarify things a bit, there is no difference between your class file for filters and that of validators.
Look for "include filter" string in to any of the *config-actions.xml and you will get to see how and where it has been used OOTB.