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

Removed the unused common/admin/AdminUser class

parent 981958b9
......@@ -68,7 +68,6 @@ set (COMMON_LIB_SRC_FILES
dataStructures/VerifyInfo.cpp
dataStructures/WriteTestResult.cpp
dataStructures/utils.cpp
admin/AdminUser.cpp
archiveRoutes/ArchiveRoute.cpp
checksum/Checksum.cpp
exception/AcceptConnectionInterrupted.cpp
......
/*
* The CERN Tape Archive (CTA) project
* Copyright (C) 2015 CERN
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "common/admin/AdminUser.hpp"
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
cta::common::admin::AdminUser::AdminUser() {
}
//------------------------------------------------------------------------------
// destructor
//------------------------------------------------------------------------------
cta::common::admin::AdminUser::~AdminUser() throw() {
}
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
cta::common::admin::AdminUser::AdminUser(
const UserIdentity &user,
const CreationLog &creationLog):
m_user(user), m_creationLog(creationLog) {
}
//------------------------------------------------------------------------------
// getUser
//------------------------------------------------------------------------------
const cta::UserIdentity &cta::common::admin::AdminUser::getUser() const throw() {
return m_user;
}
//------------------------------------------------------------------------------
// getCreationLog
//------------------------------------------------------------------------------
const cta::CreationLog &cta::common::admin::AdminUser::getCreationLog() const throw() {
return m_creationLog;
}
\ No newline at end of file
/*
* The CERN Tape Archive (CTA) project
* Copyright (C) 2015 CERN
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "common/UserIdentity.hpp"
#include "common/CreationLog.hpp"
#include <string>
namespace cta { namespace common { namespace admin {
/**
* Class representing an administrator.
*/
class AdminUser {
public:
/**
* Constructor.
*/
AdminUser();
/**
* Destructor.
*/
~AdminUser() throw();
/**
* Constructor.
*
* @param user The identity of the administrator.
* @param creator The identity of the user that created this configuration
* item.
* @param comment The comment made by the creator of this configuration
* item.
* @param creationTime Optionally the absolute time at which this
* configuration item was created. If no value is given then the current
* time is used.
*/
AdminUser(
const UserIdentity &user,
const CreationLog &creationLog);
/**
* Returns the identity of the administrator.
*
* @return The identity of the administrator.
*/
const UserIdentity &getUser() const throw();
/**
* Return the creation log
* @return the creation log
*/
const CreationLog &getCreationLog() const throw();
private:
/**
* The identity of the administrator.
*/
UserIdentity m_user;
/**
* The who, when, why, where of the creation of the admin user
*/
CreationLog m_creationLog;
}; // class AdminUser
}}} // namespace cta::common::admin
......@@ -25,7 +25,6 @@
//#include "objectstore/RetrieveRequest.hpp"
#include "objectstore/Helpers.hpp"
#include "common/exception/Exception.hpp"
#include "common/admin/AdminUser.hpp"
#include "common/archiveRoutes/ArchiveRoute.hpp"
#include "common/utils/utils.hpp"
#include "scheduler/LogicalLibrary.hpp"
......
......@@ -18,7 +18,6 @@
#pragma once
#include "common/admin/AdminUser.hpp"
#include "common/archiveRoutes/ArchiveRoute.hpp"
#include "common/dataStructures/RetrieveFileQueueCriteria.hpp"
#include "common/dataStructures/DriveState.hpp"
......@@ -51,9 +50,6 @@
namespace cta {
// Forward declarations for opaque references.
namespace common {
namespace admin {
class AdminUser;
} // cta::common::admin
namespace archiveRoute {
class ArchiveRoute;
} // cta::common::archiveRoute
......
......@@ -19,7 +19,6 @@
#include "objectstore/BackendRadosTestSwitch.hpp"
#include "tests/TestsCompileTimeSwitches.hpp"
#include "common/UserIdentity.hpp"
#include "common/admin/AdminUser.hpp"
#include "common/archiveRoutes/ArchiveRoute.hpp"
#include "scheduler/SchedulerDatabase.hpp"
#include "scheduler/SchedulerDatabaseFactory.hpp"
......
......@@ -18,7 +18,6 @@
#include "catalogue/InMemoryCatalogue.hpp"
#include "catalogue/SchemaCreatingSqliteCatalogue.hpp"
#include "common/admin/AdminUser.hpp"
#include "common/archiveRoutes/ArchiveRoute.hpp"
#include "common/log/DummyLogger.hpp"
#include "common/make_unique.hpp"
......
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