public class UploadToRepository extends java.lang.Object
Constructor and Description |
---|
UploadToRepository(java.io.File karFile)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
buildAccessDocument(KeplerLSID lsid)
uploads a document as the kepler user with public read permissions
|
static java.lang.String |
buildAccessDocument(KeplerLSID lsid,
boolean publicDoc) |
static java.lang.String |
buildAccessDocument(KeplerLSID lsid,
java.lang.String owner,
boolean publicDoc)
build an access document that gives 'public' read access to the inserted
documents.
|
Repository |
getRepository() |
java.lang.String |
getSessionId() |
boolean |
isAlreadyRegistered(KeplerLSID lsid) |
boolean |
isPublicFile() |
void |
setPublicFile(boolean isPublic) |
void |
setRepository(Repository repository)
Set the Repository to upload the KARFile to.
|
void |
setSessionId(java.lang.String sessionId) |
boolean |
uploadFile()
uploads a single object to the repository
|
boolean |
uploadMetadata(java.lang.String metadata)
Use the given NamedObj to generate the metadata for metacat.
|
public UploadToRepository(java.io.File karFile)
parent
- the "frame" (derived from ptolemy.gui.Top) where the menu is
being added.public java.lang.String getSessionId()
public void setSessionId(java.lang.String sessionId)
public boolean isPublicFile()
public void setPublicFile(boolean isPublic)
public Repository getRepository()
public void setRepository(Repository repository)
repository
- public boolean isAlreadyRegistered(KeplerLSID lsid) throws java.lang.Exception
java.lang.Exception
public boolean uploadMetadata(java.lang.String metadata)
object
- public boolean uploadFile() throws java.lang.Exception
java.lang.Exception
public static java.lang.String buildAccessDocument(KeplerLSID lsid)
public static java.lang.String buildAccessDocument(KeplerLSID lsid, boolean publicDoc)
public static java.lang.String buildAccessDocument(KeplerLSID lsid, java.lang.String owner, boolean publicDoc)