ImagingTools Core SDK
CProfileControllerComp.h
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ImtCore-Commercial
2#pragma once
3
4
5// ImtCore includes
6#include <imtbase/IObjectCollection.h>
7#include <imtlic/IProductInfo.h>
8#include <GeneratedFiles/imtauthsdl/SDL/1.0/CPP/Profile.h>
9
10
11namespace imtauthgql
12{
13
14
15class CProfileControllerComp: public sdl::imtauth::Profile::CGraphQlHandlerCompBase
16{
17public:
18 typedef sdl::imtauth::Profile::CGraphQlHandlerCompBase BaseClass;
19
20 I_BEGIN_COMPONENT(CProfileControllerComp);
21 I_ASSIGN(m_userCollectionCompPtr, "UserCollection", "User collection", false, "UserCollection");
22 I_ASSIGN(m_roleCollectionCompPtr, "RoleCollection", "Role collection", false, "RoleCollection");
23 I_ASSIGN(m_groupCollectionCompPtr, "GroupCollection", "Group collection", false, "GroupCollection");
24 I_ASSIGN(m_productInfoCompPtr, "ProductInfo", "Product feature container", false, "ProductInfo");
25 I_END_COMPONENT;
26
27protected:
28 // reimplemented (sdl::imtauth::Profile::CGraphQlHandlerCompBase)
29 virtual sdl::imtauth::Profile::CProfileData OnGetProfile(
30 const sdl::imtauth::Profile::CGetProfileGqlRequest& getProfileRequest,
31 const ::imtgql::CGqlRequest& gqlRequest,
32 QString& errorMessage) const override;
33 virtual sdl::imtauth::Profile::CSetProfileResponse OnSetProfile(
34 const sdl::imtauth::Profile::CSetProfileGqlRequest& setProfileRequest,
35 const ::imtgql::CGqlRequest& gqlRequest,
36 QString& errorMessage) const override;
37protected:
38 I_REF(imtbase::IObjectCollection, m_userCollectionCompPtr);
39 I_REF(imtbase::IObjectCollection, m_roleCollectionCompPtr);
40 I_REF(imtbase::IObjectCollection, m_groupCollectionCompPtr);
41 I_REF(imtlic::IProductInfo, m_productInfoCompPtr);
42};
43
44
45} // namespace imtauthgql
46
47
Interface for accessing information about a product (software or hardware).
Authentication GraphQL API Layer Module.