org.ikasan.console.module.service
Class ConsoleModuleService

java.lang.Object
  extended by org.ikasan.console.module.service.ConsoleModuleService
All Implemented Interfaces:
ModuleService

public class ConsoleModuleService
extends Object
implements ModuleService

Console implementation of ModuleService

Author:
Ikasan Development Team

Constructor Summary
ConsoleModuleService(ModuleDao moduleDao)
          Constructor
 
Method Summary
 Set<Module> getAllModules()
          Returns all available Modules or an empty Set
 Module getModule(Long moduleId)
          Returns the Module for the given id (or returns null)
 Set<String> getModuleNames(Set<Long> moduleIds)
          Returns a Set of Module names, given their ids
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleModuleService

public ConsoleModuleService(ModuleDao moduleDao)
Constructor

Parameters:
moduleDao - - DAO for this service to use
Method Detail

getModule

public Module getModule(Long moduleId)
Description copied from interface: ModuleService
Returns the Module for the given id (or returns null)

Specified by:
getModule in interface ModuleService
Parameters:
moduleId - Module id to search on
Returns:
the Module for the given id (or null)
See Also:
ModuleService.getModule(Long)

getModuleNames

public Set<String> getModuleNames(Set<Long> moduleIds)
Description copied from interface: ModuleService
Returns a Set of Module names, given their ids

Specified by:
getModuleNames in interface ModuleService
Parameters:
moduleIds - - List of Module ids to find names for
Returns:
Set of all accessible Module names or an empty Set
See Also:
ModuleService.getModuleNames(Set)

getAllModules

public Set<Module> getAllModules()
Description copied from interface: ModuleService
Returns all available Modules or an empty Set

Specified by:
getAllModules in interface ModuleService
Returns:
Set of all accessible Modules or an empty Set
See Also:
ModuleService.getAllModules()


Copyright © 2007-2014 Ikasan. All Rights Reserved.