|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WizDefinitionRepository
Repository Interface for wizard definitions. Like all repository definitions, this interface helps us to isolate database access from the rest of the program assisting testing and componentization.
Field Summary | |
---|---|
static String |
DEFAULT_SORT_ORDER
Constant to specify that no sort order is specified when listing Wizards. |
static List |
NO_RESULTS
Special Case constant in case there are no wizards defined. |
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)
List all wizards available on the system |
Field Detail |
---|
static final String DEFAULT_SORT_ORDER
static final List NO_RESULTS
Method Detail |
---|
WizDefinition findById(int key) throws ObjectNotFoundException, RepositoryException
key
- int the wizard id.
NonHandleableException
- on underlying database error.
DBRecordNotFoundException
- if the key doesn't list anything.
ObjectNotFoundException
RepositoryException
List listAll(String sortOrder) throws RepositoryException
sortOrder
- String the field to sort by or DEFAULT_SORT_ORDER
if no specific order is desired.
NonHandleableException
- upon underlying query error.
RepositoryException
boolean canRequesterAdd() throws RepositoryException
NonHandleableException
RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |