| 1 | package SBOM::CycloneDX::DataGovernance; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use 5.010001; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use utf8; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | ▶ | use SBOM::CycloneDX::List; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 1 | ▶ | use Types::Standard qw(InstanceOf); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 1 | ▶ | use Types::TypeTiny qw(ArrayLike); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | |||||||||||
| 13 | 1 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | 1 | ▶ | use namespace::autoclean; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | |||||||||||
| 16 | 1 | extends 'SBOM::CycloneDX::Base'; | |||||||||
| 17 | |||||||||||
| 18 | has custodians => ( | ||||||||||
| 19 | is => 'rw', | ||||||||||
| 20 | isa => ArrayLike [InstanceOf ['SBOM::CycloneDX::DataGovernanceResponsibleParty']], | ||||||||||
| 21 | 0 | ▶ | default => sub { SBOM::CycloneDX::List->new } | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 22 | 1 | ); | |||||||||
| 23 | |||||||||||
| 24 | has stewards => ( | ||||||||||
| 25 | is => 'rw', | ||||||||||
| 26 | isa => ArrayLike [InstanceOf ['SBOM::CycloneDX::DataGovernanceResponsibleParty']], | ||||||||||
| 27 | 0 | ▶ | default => sub { SBOM::CycloneDX::List->new } | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 28 | 1 | ); | |||||||||
| 29 | |||||||||||
| 30 | has owners => ( | ||||||||||
| 31 | is => 'rw', | ||||||||||
| 32 | isa => ArrayLike [InstanceOf ['SBOM::CycloneDX::DataGovernanceResponsibleParty']], | ||||||||||
| 33 | 0 | ▶ | default => sub { SBOM::CycloneDX::List->new } | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 34 | 1 | ); | |||||||||
| 35 | |||||||||||
| 36 | 0 | ▶ | sub TO_JSON { | ||||||||
|
Subroutine
TO_JSON: not called CC=4 SCAR=30.0
Pod
documented
| |||||||||||
| 37 | |||||||||||
| 38 | 0 | my $self = shift; | |||||||||
| 39 | |||||||||||
| 40 | 0 | my $json = {}; | |||||||||
| 41 | |||||||||||
| 42 | 0 | ▶ | $json->{custodians} = $self->custodians if @{$self->custodians}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 43 | 0 | ▶ | $json->{stewards} = $self->stewards if @{$self->stewards}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 44 | 0 | ▶ | $json->{owners} = $self->owners if @{$self->owners}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 45 | |||||||||||
| 46 | 0 | return $json; | |||||||||
| 47 | |||||||||||
| 48 | } | ||||||||||
| 49 | |||||||||||
| 50 | 1 | 1; | |||||||||
| 51 | |||||||||||
| 52 | =encoding utf-8 | ||||||||||
| 53 | |||||||||||
| 54 | =head1 NAME | ||||||||||
| 55 | |||||||||||
| 56 | SBOM::CycloneDX::DataGovernance - Data Governance | ||||||||||
| 57 | |||||||||||
| 58 | =head1 SYNOPSIS | ||||||||||
| 59 | |||||||||||
| 60 | SBOM::CycloneDX::DataGovernance->new(); | ||||||||||
| 61 | |||||||||||
| 62 | |||||||||||
| 63 | =head1 DESCRIPTION | ||||||||||
| 64 | |||||||||||
| 65 | L<SBOM::CycloneDX::DataGovernance> provides the data governance captures information | ||||||||||
| 66 | regarding data ownership, stewardship, and custodianship, providing | ||||||||||
| 67 | insights into the individuals or entities responsible for managing, | ||||||||||
| 68 | overseeing, and safeguarding the data throughout its lifecycle. | ||||||||||
| 69 | |||||||||||
| 70 | =head2 METHODS | ||||||||||
| 71 | |||||||||||
| 72 | L<SBOM::CycloneDX::DataGovernance> inherits all methods from L<SBOM::CycloneDX::Base> | ||||||||||
| 73 | and implements the following new ones. | ||||||||||
| 74 | |||||||||||
| 75 | =over | ||||||||||
| 76 | |||||||||||
| 77 | =item SBOM::CycloneDX::DataGovernance->new( %PARAMS ) | ||||||||||
| 78 | |||||||||||
| 79 | Properties: | ||||||||||
| 80 | |||||||||||
| 81 | =over | ||||||||||
| 82 | |||||||||||
| 83 | =item * C<custodians>, Data custodians are responsible for the safe custody, | ||||||||||
| 84 | transport, and storage of data. | ||||||||||
| 85 | |||||||||||
| 86 | =item * C<owners>, Data owners are concerned with risk and appropriate access | ||||||||||
| 87 | to data. | ||||||||||
| 88 | |||||||||||
| 89 | =item * C<stewards>, Data stewards are responsible for data content, context, | ||||||||||
| 90 | and associated business rules. | ||||||||||
| 91 | |||||||||||
| 92 | =back | ||||||||||
| 93 | |||||||||||
| 94 | =item $data_governance->custodians | ||||||||||
| 95 | |||||||||||
| 96 | =item $data_governance->owners | ||||||||||
| 97 | |||||||||||
| 98 | =item $data_governance->stewards | ||||||||||
| 99 | |||||||||||
| 100 | =back | ||||||||||
| 101 | |||||||||||
| 102 | |||||||||||
| 103 | =head1 SUPPORT | ||||||||||
| 104 | |||||||||||
| 105 | =head2 Bugs / Feature Requests | ||||||||||
| 106 | |||||||||||
| 107 | Please report any bugs or feature requests through the issue tracker | ||||||||||
| 108 | at L<https://github.com/giterlizzi/perl-SBOM-CycloneDX/issues>. | ||||||||||
| 109 | You will be notified automatically of any progress on your issue. | ||||||||||
| 110 | |||||||||||
| 111 | =head2 Source Code | ||||||||||
| 112 | |||||||||||
| 113 | This is open source software. The code repository is available for | ||||||||||
| 114 | public review and contribution under the terms of the license. | ||||||||||
| 115 | |||||||||||
| 116 | L<https://github.com/giterlizzi/perl-SBOM-CycloneDX> | ||||||||||
| 117 | |||||||||||
| 118 | git clone https://github.com/giterlizzi/perl-SBOM-CycloneDX.git | ||||||||||
| 119 | |||||||||||
| 120 | |||||||||||
| 121 | =head1 AUTHOR | ||||||||||
| 122 | |||||||||||
| 123 | =over 4 | ||||||||||
| 124 | |||||||||||
| 125 | =item * Giuseppe Di Terlizzi <gdt@cpan.org> | ||||||||||
| 126 | |||||||||||
| 127 | =back | ||||||||||
| 128 | |||||||||||
| 129 | |||||||||||
| 130 | =head1 LICENSE AND COPYRIGHT | ||||||||||
| 131 | |||||||||||
| 132 | This software is copyright (c) 2025-2026 by Giuseppe Di Terlizzi. | ||||||||||
| 133 | |||||||||||
| 134 | This is free software; you can redistribute it and/or modify it under | ||||||||||
| 135 | the same terms as the Perl 5 programming language system itself. | ||||||||||
| 136 | |||||||||||
| 137 | =cut | ||||||||||