Stanislav Sinyagin
and 1 contributors

NAME

SIAM::AccessScope - access scope object class

SYNOPSIS

INSTANCE METHODS

new

  $scope = new SIAM::AccessScope($driver, {'siam.object.id' => $id})

Instantiates a new object. The following object IDs are predefined and are not fetched from the driver:

  • SIAM.SCOPE.ALL.CONTRACTS

    The access scope with the name AllContracts. All contract objects are implicitly included in it.

  • SIAM.SCOPE.ALL.ATTRIBUTES

    The access scope with the name AllAttributes. All attribute names are implicitly in it.

match_object

Expects an object as an argument. Returns true if the object matches the scope.

get_object_ids

Returns arrayref with all object IDs to which this scope's members point to.

CLASS METHODS

matches_all

Takes an ID of an SIAM::AccessScope object and the object class. Returns true if it's a match-all scope for a given class.