com.sri.emo.wizard.expressoimpl
Class SelectionWizDefinitionRepository

java.lang.Object
  extended by com.sri.emo.wizard.expressoimpl.SelectionWizDefinitionRepository
All Implemented Interfaces:
WizDefinitionRepository

public class SelectionWizDefinitionRepository
extends Object
implements WizDefinitionRepository

Expresso-aware wizard repository.

Version:
1.0
Author:
Michael Rimov

Field Summary
 
Fields inherited from interface com.sri.emo.wizard.WizDefinitionRepository
DEFAULT_SORT_ORDER, NO_RESULTS
 
Constructor Summary
SelectionWizDefinitionRepository()
          Default Cosntructor.
 
Method Summary
 boolean canRequesterAdd()
          Returns true if the current requester can add.
 WizDefinition findById(int key)
          Find a wizard definition by id.
 List listAll(String sortOrder)
          Lists all wizards defined by the system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionWizDefinitionRepository

public SelectionWizDefinitionRepository()
Default Cosntructor.

Method Detail

findById

public WizDefinition findById(int key)
                       throws ObjectNotFoundException,
                              RepositoryException
Find a wizard definition by id.

Specified by:
findById in interface WizDefinitionRepository
Parameters:
key - int the wizard id.
Returns:
WizDefinition
Throws:
DBRecordNotFoundException - if the key doesn't list anything.
NonHandleableException - on underlying database error.
ObjectNotFoundException
RepositoryException

listAll

public List listAll(String sortOrder)
             throws RepositoryException
Lists all wizards defined by the system.

Specified by:
listAll in interface WizDefinitionRepository
Parameters:
sortOrder - String the field to sort by or DEFAULT_SORT_ORDER if no specific order is desired.
Returns:
WizDefinition the wizard definition.
Throws:
NonHandleableException - upon underlying query error.
RepositoryException

canRequesterAdd

public boolean canRequesterAdd()
                        throws RepositoryException
Returns true if the current requester can add.

Specified by:
canRequesterAdd in interface WizDefinitionRepository
Returns:
boolean true.
Throws:
NonHandleableException
RepositoryException


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.