|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Directory
Directory is the API for the DiNo directory service.
Method Summary | |
---|---|
java.lang.String |
createNotebook(java.lang.String title,
java.lang.String primaryUrl)
Create a new notebook, if possible |
void |
deleteNotebook(java.lang.String id)
Delete the notebook with the given id |
java.util.List<Notebook> |
getAllNotebooks()
Get the directory information for all notebooks currently in the system |
Notebook |
getNotebook(java.lang.String id)
Get the directory information for one notebook |
Method Detail |
---|
java.util.List<Notebook> getAllNotebooks()
Notebook getNotebook(java.lang.String id)
id
- the notebook's id
java.lang.String createNotebook(java.lang.String title, java.lang.String primaryUrl) throws NotebookAlreadyExistsException, BadAddressException
title
- the new notebook's titleprimaryUrl
- the base URL of the notebook service that will host the notebook's primary copy.
The base URL for a notebook service consists of the service host and context root,
for example, "http://mypc:8080/dino"
NotebookAlreadyExistsException
- if a notebook with the same title already exists in the system
BadAddressException
- if the primary URL is invalidvoid deleteNotebook(java.lang.String id) throws NotebookNotFoundException
id
- identifier of the notebook to be deleted
NotebookNotFoundException
- if there is no notebook with the given id
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |