pywebui.identifiers

Module Contents

Classes

Identifier

Identifier object.

Holder

Holder object.

IdentifiersMethods

Encapsulates methods for manage identifiers.

class pywebui.identifiers.Identifier(attrs)

Identifier object.

GIDValue

The decimal value of group identifier (GID).

Type

str

name

The name of identifier.

Type

str

value

The hex value of identifier.

Type

str

class pywebui.identifiers.Holder(attrs)

Holder object.

attributes

array of holder’s attributes.

Type

list(str)

holder

name of user (holder) who hold selected identifier

Type

str

class pywebui.identifiers.IdentifiersMethods

Encapsulates methods for manage identifiers.

get_identifiers(self) List[Identifier]

Returns the list of rights identifiers without user UIC’s.

get_all_identifiers(self) List[Identifier]

Returns the list of all rights identifiers.

get_identifier(self, identifier: str) Identifier

Returns identifier by name.

get_identifier_holders(self, identifier: str) List[Holder]

Returns the list of users (holders) who hold selected identifier.

get_holder_identifiers(self, holder: str) List[Identifier]

Returns the list of identifiers that are held by selected user (holder).

User can hold one or more identifiers, or no identifiers.

create_identifier(self, name: str, value: str, identifier_type: str = Identifier.IDENTIFIER_TYPE, attributes: List[str] = []) bool

Creates the new identifier.

delete_identifier(self, identifier) bool

Deletes selected identifier.

grant_identifiers(self, username: str, identifiers: List[str]) bool

Grants identifiers to user.

rovoke_identifiers(self, username: str, identifiers: List[str]) bool

Revokes identifiers from user.