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();