10Duke Scale C++ Client
Loading...
Searching...
No Matches
DefaultLicenseConsumers.h
1#ifndef TENDUKE_SE_LICENSING_DEFAULTLICENSECONSUMERS_H
2#define TENDUKE_SE_LICENSING_DEFAULTLICENSECONSUMERS_H
3
4#include "../../api/consumers/LicenseConsumers.h"
5#include "../../rest/consumers/ScaleConsumersApi.h"
6#include "oidc/session/OIDCSession.h"
7
8#include <memory>
9
10namespace tenduke { namespace se { namespace licensing {
11
18{
19public:
26 const std::shared_ptr<const ::tenduke::se::licensing::rest::ScaleConsumersApi> &rest
27 , const std::shared_ptr<::tenduke::oidc::OIDCSession> &oidc
28 );
29
30public:
32 const std::string &licenseeId,
33 const std::string &licenseConsumerId,
34 const ::tenduke::se::Paging &paging,
35 const ::tenduke::se::Filter &filter
36 ) override;
38
39 std::vector<::tenduke::se::licensing::Licensee> describeLicenseConsumerLicensees(
40 const std::string &licenseConsumerId,
41 const ::tenduke::se::Paging &paging
42 ) override;
43 std::vector<::tenduke::se::licensing::Licensee> describeLicenseConsumerLicensees() override;
44
46 const std::string &licenseeId,
47 const std::string &licenseConsumerId,
48 const ::tenduke::se::Paging &paging
49 ) override;
51
52private:
53 const std::shared_ptr<const ::tenduke::se::licensing::rest::ScaleConsumersApi> rest;
54 const std::shared_ptr<::tenduke::oidc::OIDCSession> oidc;
55};
56
57}}}
58
59#endif //TENDUKE_SE_LICENSING_DEFAULTLICENSECONSUMERS_H
Default implementation of tenduke::se::licensing::LicenseConsumers.
Definition DefaultLicenseConsumers.h:18
std::vector<::tenduke::se::licensing::Licensee > describeLicenseConsumerLicensees() override
Overload of describeLicenseConsumerLicensees, which provides default values for optional parameters.
Definition DefaultLicenseConsumers.cpp:46
::tenduke::se::licensing::LicenseConsumerLicensesStatus describeLicenseConsumerLicenses(const std::string &licenseeId, const std::string &licenseConsumerId, const ::tenduke::se::Paging &paging) override
Returns Licenses of given Licensee, which the LicenseConsumer can access.
Definition DefaultLicenseConsumers.cpp:55
tenduke::se::licensing::LicenseConsumerClientBindingStatus describeLicenseConsumerClientBindings(const std::string &licenseeId, const std::string &licenseConsumerId, const ::tenduke::se::Paging &paging, const ::tenduke::se::Filter &filter) override
Analyzes licenses that a license consumer is known to have a checkout for currently.
Definition DefaultLicenseConsumers.cpp:13
Result of queries, which describe client bindings.
Definition LicenseConsumerClientBindingStatus.h:15
Response from "describe license consumer licenses".
Definition LicenseConsumerLicensesStatus.h:15
Client for working with license-consumer information.
Definition LicenseConsumers.h:18
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7