|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The primary top-level interface to a container of NODAL Nodes. Each such Repository has a unique name and represents an attachment to a location within which a specified user can access and possible store structured information.
Method Summary | |
void |
close()
Close this Repository and release its resources. |
Document |
document(Path path)
Access a Document with the given relative path from the root of the Repository's filesystem. |
Document |
document(java.lang.String filename)
Access a Document with the given relative name from the root of the Repository's filesystem. |
DocumentFormat |
documentFormat(java.lang.String mimeType)
Access the DocumentFormat associated with the named MIME type. |
Directory |
filesystem()
Access the Directory at the root of the filesystem for this Repository. |
Repository |
login(java.lang.String user,
java.lang.String key)
Login to this Repository. |
Path |
path()
A Path that uniquely identifies this Repository. |
java.lang.String |
uri()
The canonical URI that identifies this Repository. |
User |
user()
The currently logged-in user for this Repository. |
User |
userNamed(java.lang.String name)
The User record with the given name. |
Method Detail |
public java.lang.String uri()
public Path path()
public Repository login(java.lang.String user, java.lang.String key)
user
- the name of the Userkey
-
public Directory filesystem()
public Document document(java.lang.String filename) throws Path.Failure
filename
- a String representing a filename relative to the Repository's root.
Path.Failure
- if invalid filename is usedpublic Document document(Path path) throws Path.Failure
path
- a relative Path
Path.Failure
- if non-relative pathpublic DocumentFormat documentFormat(java.lang.String mimeType)
public User user()
public User userNamed(java.lang.String name)
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |