Commit 3d2a4478 authored by Steven Murray's avatar Steven Murray
Browse files

Added deleteArchivalJob() and deleteRetrievalJob() to MiddleTierUser

parent 4a065c04
......@@ -147,6 +147,17 @@ public:
const SecurityIdentity &requester,
const std::string &tapePoolName) const = 0;
/**
* Deletes the specified archival job.
*
* @param requester The identity of the user requesting the deletion of the
* tape.
* @param dstPath The full path of the destination file within the archive.
*/
virtual void deleteArchivalJob(
const SecurityIdentity &requester,
const std::string &dstPath) = 0;
/**
* Creates a retrieval job to asynchronously retrieve the specified archived
* files and copy them to the specified destination URL.
......@@ -190,6 +201,17 @@ public:
const SecurityIdentity &requester,
const std::string &vid) const = 0;
/**
* Deletes the specified retrieval job.
*
* @param requester The identity of the user requesting the deletion of the
* tape.
* @param dstUrl The URL of the destination file or directory.
*/
virtual void deleteRetrievalJob(
const SecurityIdentity &requester,
const std::string &dstUrl) = 0;
}; // class MiddleTierUser
} // namespace cta
......@@ -291,6 +291,14 @@ std::list<cta::ArchivalJob> cta::MockMiddleTierUser::getArchivalJobs(
return jobs;
}
//------------------------------------------------------------------------------
// deleteArchivalJob
//------------------------------------------------------------------------------
void cta::MockMiddleTierUser::deleteArchivalJob(
const SecurityIdentity &requester,
const std::string &dstPath) {
}
//------------------------------------------------------------------------------
// retrieve
//------------------------------------------------------------------------------
......@@ -319,3 +327,11 @@ std::list<cta::RetrievalJob> cta::MockMiddleTierUser::getRetrievalJobs(
std::list<cta::RetrievalJob> jobs;
return jobs;
}
//------------------------------------------------------------------------------
// deleteRetrievalJob
//------------------------------------------------------------------------------
void cta::MockMiddleTierUser::deleteRetrievalJob(
const SecurityIdentity &requester,
const std::string &dstUrl) {
}
......@@ -144,6 +144,17 @@ public:
const SecurityIdentity &requester,
const std::string &tapePoolName) const;
/**
* Deletes the specified archival job.
*
* @param requester The identity of the user requesting the deletion of the
* tape.
* @param dstPath The full path of the destination file within the archive.
*/
void deleteArchivalJob(
const SecurityIdentity &requester,
const std::string &dstPath);
/**
* Creates a retrieval job to asynchronously retrieve the specified archived
* files and copy them to the specified destination URL.
......@@ -187,6 +198,17 @@ public:
const SecurityIdentity &requester,
const std::string &vid) const;
/**
* Deletes the specified retrieval job.
*
* @param requester The identity of the user requesting the deletion of the
* tape.
* @param dstUrl The URL of the destination file or directory.
*/
void deleteRetrievalJob(
const SecurityIdentity &requester,
const std::string &dstUrl);
private:
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment