Nice! Questions..
- It is coherent with the rest of the OPS architecture, right? The rest of OPS considers that timesheet and email are optional features? - Shall we include this as a second version of OpsAdmin? I.e. do this refactoring after we have a fully functioning OpsAdmin working and being used by Func. (that means email and timesheet not optional, which serves the purpose of Func. right now). (We are now going to make another refactoring: extract behaviour from DAO's, which are having more responsibilities than they should). Saludos! Flavia Wouter Huijnink wrote: > Hi List, > > I think we should aim for a neat and lean core OpsAdmin, that provides > hooks for plugins to act upon. > > Right now, we assume OPS email and OPS timesheet to be present, and > hard code checks on IMAP and timesheets into the DAO / manager that > are responsible for Projects. This is very inflexible - some users may > want to use OPS email, but not the calendars, or the other way around, > or want to add their very idiosyncratic plugin. > > The OpsAdmin core should only be responsible for basic > create/update/remove functionality, and check with plugins whether > they have any objections to any of those actions or whether they want > to do something in addition. > > *Example* > With OpsAdmin we create a new project. All the core application does, is > 1. check with the plugins whether they have a problem with the new > project-to-be using an onCreateProject hook > 2. no objections? persist the new project (including tasks, members, > etc.) > 3. notify the plugins of the successful creation of the project: > onProjectCreated hook > > Same for project deletion: > 1. check with the plugins whether they have a problem with the project > being deleted, using an onDeleteProject hook > 2. no objections? delete the project > 3. notify the plugins of the successful deletion of the project using > an onProjectDeleted hook > > Now we have a plugin configured: the OpsTimesheet plugin, which > implements the following functionality: > 1. onCreateProject: no objections > 2. onProjectCreated: nothing, I guess... > 3. onDeleteProject: check whether hours have been registered on this > project in any of the project members' timesheet - if so: object to > deletion, if not: let deletion take place > > (ofcourse, in the end this plugin also needs to handle the > onRemoveTaskFromProject, onOpsEnableUser, onUserOpsEnabled, > onOpsDisableUser, and onUserOpsDisabled hooks...) > > So: neat core with basic functionalities, very flexible plugin > structure. When will the project be refactored accordingly? :P > > regards, > w > -- > Wouter Huijnink > Func. Internet Integration > W http://www.func.nl > T +31 20 4230000 > F +31 20 4223500 > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Ops-developers mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/ops-developers > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Ops-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/ops-developers
