Advisory

class Advisory

An advisory, represents advisory used to track security updates.

Public Functions

Advisory(const Advisory &src)
Advisory &operator=(const Advisory &src)
Advisory(Advisory &&src) noexcept
Advisory &operator=(Advisory &&src) noexcept
bool operator==(const Advisory &other) const noexcept
bool operator!=(const Advisory &other) const noexcept
~Advisory()

Destroy the Advisory object.

std::string get_name() const

Get name of this advisory.

Returns:

Name of this advisory as std::string.

std::string get_severity() const

Get severity of this advisory.

Returns:

Severity of this advisory as std::string.

std::string get_type() const

Get type of this advisory. Possible types are: “security”, “bugfix”, “enhancement”, “newpackage”.

Returns:

type of this advisory as std::string.

unsigned long long get_buildtime() const

Get buildtime of this advisory. Libsolv combines issued and updated dates into buildtime by always using the newer one.

Returns:

buildtime of this advisory.

std::string get_vendor() const

Get vendor of this advisory.

Returns:

Vendor of this advisory as std::string.

std::string get_description() const

Get description of this advisory.

Returns:

Description of this advisory as std::string.

std::string get_title() const

Get title of this advisory.

Returns:

Title of this advisory as std::string.

std::string get_status() const

Get status of this advisory.

Returns:

Status of this advisory as std::string.

std::string get_rights() const

Get rights of this advisory.

Returns:

Rights of this advisory as std::string.

std::string get_message() const

Get message of this advisory.

Returns:

Message of this advisory as std::string.

AdvisoryId get_id() const

Get AdvisoryId.

Returns:

AdvisoryId of this advisory.

std::vector<AdvisoryReference> get_references(std::vector<std::string> types = {}) const

Get all references of specified type from this advisory. Possible refenrece types are: “bugzilla”, “cve”, “vendor”.

Parameters:

types – What types of references to get. If not specified gets all types.

Returns:

Vector of AdvisoryReference objects.

std::vector<AdvisoryCollection> get_collections() const

Get all collections from this advisory.

Returns:

Vector of AdvisoryCollection objects.

bool is_applicable() const

Check whether at least one collection from this advisory is applicable.

Returns:

True if applicable, False otherwise.