net.sf.sail.webapp.service.curnit
Interface CurnitService

All Known Subinterfaces:
ModuleService
All Known Implementing Classes:
CurnitServiceImpl, ModuleServiceImpl

public interface CurnitService

A service for working with Curnits.

Version:
$Id$
Author:
Laurel Williams

Method Summary
 void changeCurnitName(Curnit curnit, String newName)
          Changes the name of the given curnit.
 Curnit createCurnit(CurnitParameters curnitParameters)
          Registers a new SdsCurnit on the SDS and creates a Curnit object in the local data store.
 Curnit getById(Long curnitId)
          Gets a curnit with the given curnitId.
 List<? extends Curnit> getCurnitList()
          Gets a List of curnits.
 Long getLatestId()
          Returns the latest Long id of a curnit found in the data store.
 void updateCurnit(Curnit curnit)
          Updates the specified curnit
 

Method Detail

getCurnitList

List<? extends Curnit> getCurnitList()
Gets a List of curnits.

Returns:
a List of curnits.

createCurnit

Curnit createCurnit(CurnitParameters curnitParameters)
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.

Parameters:
curnitParameters - The curnit parameters (name and url)
Returns:
the curnit

updateCurnit

void updateCurnit(Curnit curnit)
Updates the specified curnit

Parameters:
curnit - the Curnit to update

getById

Curnit getById(Long curnitId)
               throws ObjectNotFoundException
Gets a curnit with the given curnitId.

Parameters:
curnitId - The Id of the curnit
Returns:
Curnit with the specified curnitId
Throws:
ObjectNotFoundException - when the specified curnit is not found

changeCurnitName

void changeCurnitName(Curnit curnit,
                      String newName)
Changes the name of the given curnit.

Parameters:
curnit - an existing Curnit that should have its name changed
newName - String name of the new curnit

getLatestId

Long getLatestId()
Returns the latest Long id of a curnit found in the data store.

Returns:
Long


Copyright © 2012. All Rights Reserved.