Commit 4a065c04 authored by Steven Murray's avatar Steven Murray
Browse files

Improved the const correctness of MiddleTierUser

parent bf34b2f6
......@@ -132,7 +132,7 @@ public:
* sorted by creation time in ascending order (oldest first).
*/
virtual std::map<TapePool, std::list<ArchivalJob> > getArchivalJobs(
const SecurityIdentity &requester) = 0;
const SecurityIdentity &requester) const = 0;
/**
* Returns the list of archival jobs associated with the specified tape pool
......@@ -145,7 +145,7 @@ public:
*/
virtual std::list<ArchivalJob> getArchivalJobs(
const SecurityIdentity &requester,
const std::string &tapePoolName) = 0;
const std::string &tapePoolName) const = 0;
/**
* Creates a retrieval job to asynchronously retrieve the specified archived
......@@ -175,7 +175,7 @@ public:
* sorted by creation time in ascending order (oldest first).
*/
virtual std::map<Tape, std::list<RetrievalJob> > getRetrievalJobs(
const SecurityIdentity &requester) = 0;
const SecurityIdentity &requester) const = 0;
/**
* Returns the list of retrieval jobs associated with the specified tape
......@@ -188,7 +188,7 @@ public:
*/
virtual std::list<RetrievalJob> getRetrievalJobs(
const SecurityIdentity &requester,
const std::string &vid) = 0;
const std::string &vid) const = 0;
}; // class MiddleTierUser
......
......@@ -276,7 +276,7 @@ void cta::MockMiddleTierUser::checkUserIsAuthorisedToArchive(
//------------------------------------------------------------------------------
std::map<cta::TapePool, std::list<cta::ArchivalJob> >
cta::MockMiddleTierUser::getArchivalJobs(
const SecurityIdentity &requester) {
const SecurityIdentity &requester) const {
std::map<TapePool, std::list<cta::ArchivalJob> > jobs;
return jobs;
}
......@@ -286,7 +286,7 @@ std::map<cta::TapePool, std::list<cta::ArchivalJob> >
//------------------------------------------------------------------------------
std::list<cta::ArchivalJob> cta::MockMiddleTierUser::getArchivalJobs(
const SecurityIdentity &requester,
const std::string &tapePoolName) {
const std::string &tapePoolName) const {
std::list<cta::ArchivalJob> jobs;
return jobs;
}
......@@ -305,7 +305,7 @@ void cta::MockMiddleTierUser::retrieve(
//------------------------------------------------------------------------------
std::map<cta::Tape, std::list<cta::RetrievalJob> >
cta::MockMiddleTierUser::getRetrievalJobs(
const SecurityIdentity &requester) {
const SecurityIdentity &requester) const {
std::map<Tape, std::list<RetrievalJob> > jobs;
return jobs;
}
......@@ -315,7 +315,7 @@ std::map<cta::Tape, std::list<cta::RetrievalJob> >
//------------------------------------------------------------------------------
std::list<cta::RetrievalJob> cta::MockMiddleTierUser::getRetrievalJobs(
const SecurityIdentity &requester,
const std::string &vid) {
const std::string &vid) const {
std::list<cta::RetrievalJob> jobs;
return jobs;
}
......@@ -129,7 +129,7 @@ public:
* sorted by creation time in ascending order (oldest first).
*/
std::map<TapePool, std::list<ArchivalJob> > getArchivalJobs(
const SecurityIdentity &requester);
const SecurityIdentity &requester) const;
/**
* Returns the list of archival jobs associated with the specified tape pool
......@@ -142,7 +142,7 @@ public:
*/
std::list<ArchivalJob> getArchivalJobs(
const SecurityIdentity &requester,
const std::string &tapePoolName);
const std::string &tapePoolName) const;
/**
* Creates a retrieval job to asynchronously retrieve the specified archived
......@@ -172,7 +172,7 @@ public:
* sorted by creation time in ascending order (oldest first).
*/
std::map<Tape, std::list<RetrievalJob> > getRetrievalJobs(
const SecurityIdentity &requester);
const SecurityIdentity &requester) const;
/**
* Returns the list of retrieval jobs associated with the specified tape
......@@ -185,7 +185,7 @@ public:
*/
std::list<RetrievalJob> getRetrievalJobs(
const SecurityIdentity &requester,
const std::string &vid);
const std::string &vid) const;
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