help_pages.devices_help_viewsΒΆ

This module contains all views concerning the help pages used within the devices app.

Module ContentsΒΆ

class help_pages.devices_help_views.BaseHelpView[source]ΒΆ

Bases: trustpoint.page_context.PageContextMixin, django.views.generic.detail.DetailView[devices.models.DeviceModel]

Base help view that constructs the context.

template_name = 'help/help_page.html'[source]ΒΆ
http_method_names = ('get',)[source]ΒΆ
model[source]ΒΆ
context_object_name = 'device'[source]ΒΆ
page_category = 'devices'[source]ΒΆ
page_name: str[source]ΒΆ
strategy: help_pages.base.HelpPageStrategy[source]ΒΆ
get_context_data(**kwargs)[source]ΒΆ

Gets the context data and builds the HelpPage.

Parameters:

kwargs (Any) – Passed to super().get_context_data().

Returns:

The django context for the detail view.

Return type:

dict[str, Any]

class help_pages.devices_help_views.NoOnboardingCmpSharedSecretStrategy[source]ΒΆ

Bases: help_pages.base.HelpPageStrategy

Strategy for building the no-onboarding CMP shared-secret help page.

build_sections(help_context)[source]ΒΆ

Builds the required sections.

Parameters:

help_context (help_pages.base.HelpContext)

Return type:

tuple[list[help_pages.help_section.HelpSection], str]

class help_pages.devices_help_views.DeviceNoOnboardingCmpSharedSecretHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of no onboarding using CMP shared-secret for generic device abstractions.

page_name = 'devices'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.OpcUaGdsNoOnboardingCmpSharedSecretHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of no onboarding using CMP shared-secret for OPC-UA GDS abstractions.

page_name = 'opc_ua_gds'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.NoOnboardingEstUsernamePasswordStrategy[source]ΒΆ

Bases: help_pages.base.HelpPageStrategy

Strategy for building the no-onboarding EST username and password help page.

build_sections(help_context)[source]ΒΆ

Builds the required sections.

Parameters:

help_context (help_pages.base.HelpContext)

Return type:

tuple[list[help_pages.help_section.HelpSection], str]

class help_pages.devices_help_views.DeviceNoOnboardingEstUsernamePasswordHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of no onboarding using EST username and password generic device abstractions.

page_name = 'devices'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.OpcUaGdsNoOnboardingEstUsernamePasswordHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of no onboarding using EST username and password for OPC-UA GDS abstractions.

page_name = 'opc_ua_gds'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.OnboardingDomainCredentialCmpSharedSecretStrategy[source]ΒΆ

Bases: help_pages.base.HelpPageStrategy

Strategy for building the onboarding CMP shared-secret help page.

build_sections(help_context)[source]ΒΆ

Builds the required sections.

Parameters:

help_context (help_pages.base.HelpContext)

Return type:

tuple[list[help_pages.help_section.HelpSection], str]

class help_pages.devices_help_views.DeviceOnboardingDomainCredentialCmpSharedSecretHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of onboarding using CMP with a domain credential for generic device abstractions.

page_name = 'devices'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.OpcUaGdsOnboardingDomainCredentialCmpSharedSecretHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of onboarding using CMP with a domain credential for OPC-UA GDS abstractions.

page_name = 'opc_ua_gds'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.OnboardingDomainCredentialEstUsernamePasswordStrategy[source]ΒΆ

Bases: help_pages.base.HelpPageStrategy

Strategy for building the onboarding est username and password help page.

build_sections(help_context)[source]ΒΆ

Builds the required sections.

Parameters:

help_context (help_pages.base.HelpContext)

Return type:

tuple[list[help_pages.help_section.HelpSection], str]

class help_pages.devices_help_views.DeviceOnboardingDomainCredentialEstUsernamePasswordHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of onboarding using EST username & password for generic device abstractions.

page_name = 'devices'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.OpcUaGdsOnboardingDomainCredentialEstUsernamePasswordHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of onboarding using EST username & password for OPC-UA GDS abstractions.

page_name = 'opc_ua_gds'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.ApplicationCertificateWithCmpDomainCredentialStrategy[source]ΒΆ

Bases: help_pages.base.HelpPageStrategy

Strategy for building the onboarding cmp app certificate help page.

build_sections(help_context)[source]ΒΆ

Builds the required sections.

Parameters:

help_context (help_pages.base.HelpContext)

Return type:

tuple[list[help_pages.help_section.HelpSection], str]

class help_pages.devices_help_views.DeviceApplicationCertificateWithCmpDomainCredentialHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of onboarding using CMP with client cert for generic device abstractions.

page_name = 'devices'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.OpcUaGdsApplicationCertificateWithCmpDomainCredentialHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of onboarding using CMP with client cert for OPC-UA GDS abstractions.

page_name = 'opc_ua_gds'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.ApplicationCertificateWithEstDomainCredentialStrategy[source]ΒΆ

Bases: help_pages.base.HelpPageStrategy

Strategy for building the onboarding EST username and password help page.

build_sections(help_context)[source]ΒΆ

Builds the required sections.

Parameters:

help_context (help_pages.base.HelpContext)

Return type:

tuple[list[help_pages.help_section.HelpSection], str]

class help_pages.devices_help_views.DeviceApplicationCertificateWithEstDomainCredentialHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of onboarding using EST with client cert for generic device abstractions.

page_name = 'devices'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.OpcUaGdsApplicationCertificateWithEstDomainCredentialHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for the case of onboarding using EST with client cert for OPC-UA GDS abstractions.

page_name = 'opc_ua_gds'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.OpcUaGdsPushOnboardingStrategy[source]ΒΆ

Bases: help_pages.base.HelpPageStrategy

Strategy for building the OPC UA GDS Push onboarding help page.

build_sections(help_context)[source]ΒΆ

Builds the required sections.

Parameters:

help_context (help_pages.base.HelpContext)

Return type:

tuple[list[help_pages.help_section.HelpSection], str]

class help_pages.devices_help_views.OpcUaGdsPushApplicationCertificateStrategy[source]ΒΆ

Bases: OpcUaGdsPushOnboardingStrategy

Strategy for the OPC UA GDS Push application certificate help page.

Extends the base onboarding strategy with a periodic server certificate renewal configuration section.

build_sections(help_context)[source]ΒΆ

Builds the required sections.

Parameters:

help_context (help_pages.base.HelpContext)

Return type:

tuple[list[help_pages.help_section.HelpSection], str]

class help_pages.devices_help_views.OpcUaGdsPushApplicationCertificateHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for OPC UA GDS Push application certificates.

page_name = 'devices'[source]ΒΆ
strategy[source]ΒΆ
class help_pages.devices_help_views.OpcUaGdsPushOnboardingHelpView[source]ΒΆ

Bases: BaseHelpView

Help view for OPC UA GDS Push onboarding.

page_name = 'devices'[source]ΒΆ
strategy[source]ΒΆ