views:

19

answers:

0

Hi,

I am developing an application which manage various business objects.

These business objects (BO) are displayed in a web page (a sort of Objects Explorer).

Some actions could be executed on these BO, depending of the BO "type":

  • Some could be copied
  • Some could be deleted
  • Some could be executed
  • ...

The final goal will be to display all BO in Explorer, with a list of available actions for each BO.

For example, we could have:

  • FolderBO with actions Display, Copy, Delete
  • ImageBO with actions Display, Copy, Delete, Edit
  • SqlBO with actions Copy, Delete, Edit
  • ...

Which would be the best implementation for the BO and BO actions, as new BO and new BO actions could be implemented later ?

I was thinking about patterns Command, Decorator ...