SDK
SDK C++ v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

This SDK has been deprecated because of stability issues. It is not advised to use it in a production environment.

UserRight class getters #

controller #

Returns the controller name on which the rights apply.
Can be a wildcard (*).

Signature #

Copied to clipboard!
const std::string& controller() const;

action #

Returns the action name on which the rights apply.
Can be a wildcard (*).

Signature #

Copied to clipboard!
const std::string& action() const;

index #

Returns the index name on which the rights apply.
Can be a wildcard (*).

Signature #

Copied to clipboard!
const std::string& index() const;

collection #

Returns the collection name on which the rights apply.
Can be a wildcard (*).

Signature #

Copied to clipboard!
const std::string& collection() const;

value #

Returns the value name on which the rights apply.
Can be one of the following: allowed, denied or conditional

Signature #

Copied to clipboard!
const std::string& value() const;

Usage #

Copied to clipboard!
kuzzleio::UserRight user_right;
std::string controller = user_right.controller();
std::string action = user_right.action();
std::string index = user_right.index();
std::string collection = user_right.collection();
std::string value = user_right.value();