--Kurt
On 3/20/06, Patrick Lebon <[EMAIL PROTECTED]> wrote:
Well I definitley think that a function like deleteGalleryItems() belongs in galleryService which would loop through all gallery items calling imageService.deleteItem() to handle each deletion. I was more concerned with direct calls to functions that could have been called from imageService() without the need for galleryService.
After downloading and having a quick look at appbooster (http://www.jroller.com/page/kwiersma) it looks like my questions has been partly answered. It has examples of one service (userService ) using other services (roleService and addressService) however the roleService is also handled directly from the mach-ii listener for handling generic role functions not directly associated with any user.
My conclusion is that some function redundancy is not a bad thing when it creates a single point of entry (api) for managing multiple related services.
On 3/21/06, Ron Phillips <[EMAIL PROTECTED] > wrote:Resending — our Roadrunner connection tanked at the critical instant; I don't think this went.Would it seem less redundant if the gallery service had a deleteGalleryItems() (plural) function instead?I am really asking for my own sake, as well — service layers are new to me, but it looks like a structure I might use for a current project.I've been starting to use service layers in my applications (mostly with mach-ii) and I like how it gives me more flexibility as it hides a lot of the complexity (DAO, Gateways etc) from the controller but I have a couple questions regarding the best way to handle services within other services.----------------------------------------------------------
I am building a simple image gallery app which consists of two main services, one is the imageService which handles individual gallery items (thumb and larger image) and then I have the galleryService that manages the actual galleries (creating, naming, sorting items etc). Now, should I be using my controller to manage each of these two services seperately (which is what I currently do with my mach-ii listeners) or should my gallery service contain an instance of the image service and therefore all access to the image service be provided through the gallery service? I am starting the think that the latter is the way to go but it seems like I have some redundancy in methods if I call a function called deleteGalleryItem() from galleryService which just calls the deleteItem() function from within imageService, where I could have just directly called deleteItem() from imageService if I handle them separately.
Cheers
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting ( www.cfxhosting.com).
An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting ( www.cfxhosting.com).
An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).
An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
