|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.astrogrid.store.VoSpaceClient
This delegate provides methods for operating on files in VoSpace - that is,
files that are on store points (accessible through StoreClient implementations)
that are Registered in IVO Registries and/or Communities.
Note that there is a difference between the user (termed operator here) of this class, and the owner of the files that might be being browsed.
| Constructor Summary | |
VoSpaceClient(User anOperator)
Constructor - instances of this class represent a particular user/account |
|
| Method Summary | |
void |
copy(Ivorn source,
Ivorn target)
Copy a file |
Ivorn |
createUser(Ivorn targetVoSpace,
Ivorn user)
Creates a new user (identified by the given user ivorn) on the storepoint given by the 'target' Ivorn. |
void |
delete(Ivorn toDelete)
Delete a file |
void |
deleteUser(Ivorn target,
Ivorn user)
|
StoreClient |
getDelegate(Ivorn storeIvorn)
Returns a StoreClient delegate for the given ivorn for direct file manipulation |
StoreFile |
getFile(Ivorn fileIvorn)
Returns the StoreFile representation of the file at the given AGSL |
User |
getOperator()
Returns the user of this delegate - ie the account it is being used by |
java.io.InputStream |
getStream(Ivorn source)
Gets a file's contents as a stream |
void |
move(Ivorn source,
Ivorn target)
Moves/Renames a file |
void |
newFolder(Ivorn target)
Create a container |
void |
putBytes(byte[] bytes,
int offset,
int length,
Ivorn targetIvorn,
boolean append)
Puts the given byte buffer from offset of length bytes, to the given target |
java.io.OutputStream |
putStream(Ivorn target)
Streaming output - returns a stream that can be used to output to the given location |
void |
putUrl(java.net.URL source,
Ivorn targetIvorn,
boolean append)
Copies the contents of the file at the given source url to the given location |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VoSpaceClient(User anOperator)
| Method Detail |
public User getOperator()
public StoreFile getFile(Ivorn fileIvorn)
throws java.io.IOException
java.io.IOException
public StoreClient getDelegate(Ivorn storeIvorn)
throws java.io.IOException
java.io.IOException
public void putBytes(byte[] bytes,
int offset,
int length,
Ivorn targetIvorn,
boolean append)
throws java.io.IOException
java.io.IOException
public void putUrl(java.net.URL source,
Ivorn targetIvorn,
boolean append)
throws java.io.IOException
java.io.IOException
public java.io.OutputStream putStream(Ivorn target)
throws java.io.IOException
java.io.IOException
public java.io.InputStream getStream(Ivorn source)
throws java.io.IOException
java.io.IOException
public void delete(Ivorn toDelete)
throws java.io.IOException
java.io.IOException
public void copy(Ivorn source,
Ivorn target)
throws java.io.IOException
java.io.IOException
public void move(Ivorn source,
Ivorn target)
throws java.io.IOException
java.io.IOException
public void newFolder(Ivorn target)
throws java.io.IOException
java.io.IOException
public Ivorn createUser(Ivorn targetVoSpace,
Ivorn user)
throws java.io.IOException,
java.net.URISyntaxException
java.io.IOException
java.net.URISyntaxException
public void deleteUser(Ivorn target,
Ivorn user)
throws java.io.IOException
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||