New answers tagged

2

Component packages As for the component packages - this approach is usually called vertical folder (directory/package) structure and is common for larger projects. Structure of component Naming conventions are a little bit untraditional: Interfaces prefixed with capital I - this is C# convention, not Java one. In Java, interface is named without I - in ...


0

I would create a seperate PermissionService that implements methods like isUserAllowedTo(user, PermissionService.Permissiontype.Update, PermissionService.Topic.COMMENT, additionalContextRelevantParameters) and call the PermissionService methods in the controller, where neccessary context info (i.e. from session) is available. You can design your ...


6

First, reduce the problem to a test of availabilities "per day". All your examples are using ranges for only one day, but if you also want to support a range like "Monday 10:00 to Wednesday 14:00", break this down into three tests for "Monday 10:00 to 23:59", "Thursday 00:00 to 23:59" and "Wednesday 00:00 to 10:00". For each day, store an interval ...



Top 50 recent answers are included