Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+56
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* Exercise object
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <DDS/Core/function_reply_object.h>
|
||||
|
||||
// Generated
|
||||
#include <OperatorManagement/opm_db.h>
|
||||
|
||||
namespace OperatorManagement
|
||||
{
|
||||
class MainHandler;
|
||||
|
||||
class ObjectGroup final
|
||||
{
|
||||
public:
|
||||
explicit ObjectGroup(MainHandler *mainHandler);
|
||||
~ObjectGroup();
|
||||
|
||||
Core::FunctionReplyObject createObject(const Database::OpmGroup &data,
|
||||
const std::vector<qint32> &isMemberOf,
|
||||
const std::vector<qint32> &aclAllow = std::vector<qint32>(),
|
||||
const std::vector<qint32> &aclDeny = std::vector<qint32>());
|
||||
Core::FunctionReplyObject updateObject(const Database::OpmGroup &data);
|
||||
|
||||
Core::FunctionReplyObject updateMemberships(const std::vector<qint32> &isMemberOf);
|
||||
|
||||
Core::FunctionReplyObject updateAcls(const std::vector<qint32> &aclAllow,
|
||||
const std::vector<qint32> &aclDeny);
|
||||
Core::FunctionReplyObject removeObject();
|
||||
Core::FunctionReplyObject removeAllMemberships();
|
||||
Core::FunctionReplyObject removeAllAclAllows();
|
||||
Core::FunctionReplyObject removeAllAclDenys();
|
||||
|
||||
qint64 getId() const { return m_data.id; }
|
||||
Database::OpmGroup data() const { return m_data; }
|
||||
QString name() const { return m_data.name; }
|
||||
|
||||
protected:
|
||||
void onPublishData();
|
||||
|
||||
private:
|
||||
MainHandler *m_mainHandler;
|
||||
Database::OpmGroup m_data;
|
||||
std::vector<qint32> m_isMemberOf;
|
||||
std::vector<qint32> m_aclAllow;
|
||||
std::vector<qint32> m_aclDeny;
|
||||
|
||||
NGL::INGLLogger &m_logger;
|
||||
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user