org.telscenter.sail.webapp.service.module.impl
Class ModuleServiceImpl

java.lang.Object
  extended by net.sf.sail.webapp.service.curnit.impl.CurnitServiceImpl
      extended by org.telscenter.sail.webapp.service.module.impl.ModuleServiceImpl
All Implemented Interfaces:
CurnitService, ModuleService

public class ModuleServiceImpl
extends CurnitServiceImpl
implements ModuleService

Service for the TELS's Module Domain Object

Version:
$Id$
Author:
Hiroki Terashima

Field Summary
 
Fields inherited from class net.sf.sail.webapp.service.curnit.impl.CurnitServiceImpl
curnitDao, sdsCurnitDao
 
Constructor Summary
ModuleServiceImpl()
           
 
Method Summary
 Module createCurnit(CurnitParameters curnitParameters)
          Registers a new SdsCurnit on the SDS and creates a Curnit object in the local data store.
 Module getById(Long moduleId)
          Gets a curnit with the given curnitId.
 List<? extends Curnit> getCurnitList()
          Gets a List of curnits.
 roolo.elo.api.IELO getEloForModule(RooloOtmlModuleImpl mod)
          Given a RooloOtmlModuleImpl, retrieves and returns the IELO from the repository
 void setModuleDao(ModuleDao<Module> moduleDao)
           
 void setRooloOtmlModuleDao(ModuleDao<Module> rooloOtmlModuleDao)
           
 void updateCurnit(Curnit curnit)
          Updates the specified curnit
 
Methods inherited from class net.sf.sail.webapp.service.curnit.impl.CurnitServiceImpl
changeCurnitName, getLatestId, setCurnitDao, setSdsCurnitDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.sail.webapp.service.curnit.CurnitService
changeCurnitName, getLatestId
 

Constructor Detail

ModuleServiceImpl

public ModuleServiceImpl()
Method Detail

createCurnit

@Transactional(rollbackFor=HttpStatusCodeException.class)
public Module createCurnit(CurnitParameters curnitParameters)
Description copied from interface: CurnitService
Registers a new SdsCurnit on the SDS and creates a Curnit object in the local data store. A side effect is that the sdsObjectId is set to the value that the SDS assigns to the new curnit.

Specified by:
createCurnit in interface CurnitService
Overrides:
createCurnit in class CurnitServiceImpl
Returns:
the curnit
See Also:
CurnitServiceImpl.createCurnit(net.sf.sail.webapp.domain.impl.CurnitParameters)

getCurnitList

@Transactional(readOnly=true)
public List<? extends Curnit> getCurnitList()
Description copied from interface: CurnitService
Gets a List of curnits.

Specified by:
getCurnitList in interface CurnitService
Overrides:
getCurnitList in class CurnitServiceImpl
Returns:
a List of curnits.
See Also:
CurnitService.getCurnitList()

getById

public Module getById(Long moduleId)
               throws ObjectNotFoundException
Description copied from interface: CurnitService
Gets a curnit with the given curnitId.

Specified by:
getById in interface CurnitService
Overrides:
getById in class CurnitServiceImpl
Parameters:
moduleId - The Id of the curnit
Returns:
Curnit with the specified curnitId
Throws:
ObjectNotFoundException
See Also:
CurnitServiceImpl.getById(java.lang.Long)

updateCurnit

@Transactional
public void updateCurnit(Curnit curnit)
Description copied from interface: CurnitService
Updates the specified curnit

Specified by:
updateCurnit in interface CurnitService
Overrides:
updateCurnit in class CurnitServiceImpl
Parameters:
curnit - the Curnit to update
See Also:
CurnitService.updateCurnit(net.sf.sail.webapp.domain.Curnit)

getEloForModule

public roolo.elo.api.IELO getEloForModule(RooloOtmlModuleImpl mod)
Description copied from interface: ModuleService
Given a RooloOtmlModuleImpl, retrieves and returns the IELO from the repository

Specified by:
getEloForModule in interface ModuleService
Returns:
IELO

setModuleDao

public void setModuleDao(ModuleDao<Module> moduleDao)
Parameters:
moduleDao - the moduleDao to set

setRooloOtmlModuleDao

public void setRooloOtmlModuleDao(ModuleDao<Module> rooloOtmlModuleDao)
Parameters:
rooloOtmlModuleDao - the rooloOtmlModuleDao to set


Copyright © 2012. All Rights Reserved.