| 1 | package SBOM::CycloneDX::DataGovernanceResponsibleParty; | ||||||||||||||||||||||||||||
| 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 Types::Standard qw(InstanceOf); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||
| 10 | 1 | ▶ | use Moo; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 11 | 1 | ▶ | use namespace::autoclean; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | 1 | extends 'SBOM::CycloneDX::Base'; | |||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||
| 15 | 0 | ▶ | sub BUILD { | ||||||||||||||||||||||||||
|
Subroutine
BUILD: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||||||||||||||||||
| 16 | 0 | my ($self, $args) = @_; | |||||||||||||||||||||||||||
| 17 | Carp::croak('"organization" and "contact" cannot be used at the same time') | ||||||||||||||||||||||||||||
| 18 | 0 | ▶ | if exists $args->{organization} && exists $args->{contact}; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
exists $args->{"organization"} and exists $args->{"contact"}
MC/DC0%0/2
exists $args->{"organization"} and exists $args->{"contact"}
exists $args->{"organization"}
exists $args->{"contact"}
Truth table0%0/3
A and B
A= exists $args->{"organization"}B= exists $args->{"contact"}
| |||||||||||||||||||||||||||||
| 19 | } | ||||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||
| 21 | 1 | has organization => (is => 'rw', isa => InstanceOf ['SBOM::CycloneDX::OrganizationalEntity']); | |||||||||||||||||||||||||||
| 22 | 1 | has contact => (is => 'rw', isa => InstanceOf ['SBOM::CycloneDX::OrganizationalContact']); | |||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||
| 24 | 0 | ▶ | sub TO_JSON { | ||||||||||||||||||||||||||
|
Subroutine
TO_JSON: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||||||
| 26 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 27 | |||||||||||||||||||||||||||||
| 28 | 0 | my $json = {}; | |||||||||||||||||||||||||||
| 29 | |||||||||||||||||||||||||||||
| 30 | 0 | ▶ | $json->{organization} = $self->organization if $self->organization; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 31 | 0 | ▶ | $json->{contact} = $self->contact if $self->contact; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 32 | |||||||||||||||||||||||||||||
| 33 | 0 | return $json; | |||||||||||||||||||||||||||
| 34 | |||||||||||||||||||||||||||||
| 35 | } | ||||||||||||||||||||||||||||
| 36 | |||||||||||||||||||||||||||||
| 37 | 1 | 1; | |||||||||||||||||||||||||||
| 38 | |||||||||||||||||||||||||||||
| 39 | =encoding utf-8 | ||||||||||||||||||||||||||||
| 40 | |||||||||||||||||||||||||||||
| 41 | =head1 NAME | ||||||||||||||||||||||||||||
| 42 | |||||||||||||||||||||||||||||
| 43 | SBOM::CycloneDX::DataGovernanceResponsibleParty - Data Custodians | ||||||||||||||||||||||||||||
| 44 | |||||||||||||||||||||||||||||
| 45 | =head1 SYNOPSIS | ||||||||||||||||||||||||||||
| 46 | |||||||||||||||||||||||||||||
| 47 | SBOM::CycloneDX::DataGovernanceResponsibleParty->new(); | ||||||||||||||||||||||||||||
| 48 | |||||||||||||||||||||||||||||
| 49 | |||||||||||||||||||||||||||||
| 50 | =head1 DESCRIPTION | ||||||||||||||||||||||||||||
| 51 | |||||||||||||||||||||||||||||
| 52 | L<SBOM::CycloneDX::DataGovernanceResponsibleParty> provides the data custodians | ||||||||||||||||||||||||||||
| 53 | are responsible for the safe custody, transport, and storage of data. | ||||||||||||||||||||||||||||
| 54 | |||||||||||||||||||||||||||||
| 55 | =head2 METHODS | ||||||||||||||||||||||||||||
| 56 | |||||||||||||||||||||||||||||
| 57 | L<SBOM::CycloneDX::DataGovernanceResponsibleParty> inherits all methods from L<SBOM::CycloneDX::Base> | ||||||||||||||||||||||||||||
| 58 | and implements the following new ones. | ||||||||||||||||||||||||||||
| 59 | |||||||||||||||||||||||||||||
| 60 | =over | ||||||||||||||||||||||||||||
| 61 | |||||||||||||||||||||||||||||
| 62 | =item SBOM::CycloneDX::DataGovernanceResponsibleParty->new( %PARAMS ) | ||||||||||||||||||||||||||||
| 63 | |||||||||||||||||||||||||||||
| 64 | Properties: | ||||||||||||||||||||||||||||
| 65 | |||||||||||||||||||||||||||||
| 66 | =over | ||||||||||||||||||||||||||||
| 67 | |||||||||||||||||||||||||||||
| 68 | =item * C<contact>, The individual that is responsible for specific data | ||||||||||||||||||||||||||||
| 69 | governance role(s). | ||||||||||||||||||||||||||||
| 70 | |||||||||||||||||||||||||||||
| 71 | =item * C<organization>, The organization that is responsible for specific | ||||||||||||||||||||||||||||
| 72 | data governance role(s). | ||||||||||||||||||||||||||||
| 73 | |||||||||||||||||||||||||||||
| 74 | =back | ||||||||||||||||||||||||||||
| 75 | |||||||||||||||||||||||||||||
| 76 | =item $data_governance_responsible_party->contact | ||||||||||||||||||||||||||||
| 77 | |||||||||||||||||||||||||||||
| 78 | =item $data_governance_responsible_party->organization | ||||||||||||||||||||||||||||
| 79 | |||||||||||||||||||||||||||||
| 80 | =back | ||||||||||||||||||||||||||||
| 81 | |||||||||||||||||||||||||||||
| 82 | |||||||||||||||||||||||||||||
| 83 | =head1 SUPPORT | ||||||||||||||||||||||||||||
| 84 | |||||||||||||||||||||||||||||
| 85 | =head2 Bugs / Feature Requests | ||||||||||||||||||||||||||||
| 86 | |||||||||||||||||||||||||||||
| 87 | Please report any bugs or feature requests through the issue tracker | ||||||||||||||||||||||||||||
| 88 | at L<https://github.com/giterlizzi/perl-SBOM-CycloneDX/issues>. | ||||||||||||||||||||||||||||
| 89 | You will be notified automatically of any progress on your issue. | ||||||||||||||||||||||||||||
| 90 | |||||||||||||||||||||||||||||
| 91 | =head2 Source Code | ||||||||||||||||||||||||||||
| 92 | |||||||||||||||||||||||||||||
| 93 | This is open source software. The code repository is available for | ||||||||||||||||||||||||||||
| 94 | public review and contribution under the terms of the license. | ||||||||||||||||||||||||||||
| 95 | |||||||||||||||||||||||||||||
| 96 | L<https://github.com/giterlizzi/perl-SBOM-CycloneDX> | ||||||||||||||||||||||||||||
| 97 | |||||||||||||||||||||||||||||
| 98 | git clone https://github.com/giterlizzi/perl-SBOM-CycloneDX.git | ||||||||||||||||||||||||||||
| 99 | |||||||||||||||||||||||||||||
| 100 | |||||||||||||||||||||||||||||
| 101 | =head1 AUTHOR | ||||||||||||||||||||||||||||
| 102 | |||||||||||||||||||||||||||||
| 103 | =over 4 | ||||||||||||||||||||||||||||
| 104 | |||||||||||||||||||||||||||||
| 105 | =item * Giuseppe Di Terlizzi <gdt@cpan.org> | ||||||||||||||||||||||||||||
| 106 | |||||||||||||||||||||||||||||
| 107 | =back | ||||||||||||||||||||||||||||
| 108 | |||||||||||||||||||||||||||||
| 109 | |||||||||||||||||||||||||||||
| 110 | =head1 LICENSE AND COPYRIGHT | ||||||||||||||||||||||||||||
| 111 | |||||||||||||||||||||||||||||
| 112 | This software is copyright (c) 2025-2026 by Giuseppe Di Terlizzi. | ||||||||||||||||||||||||||||
| 113 | |||||||||||||||||||||||||||||
| 114 | This is free software; you can redistribute it and/or modify it under | ||||||||||||||||||||||||||||
| 115 | the same terms as the Perl 5 programming language system itself. | ||||||||||||||||||||||||||||
| 116 | |||||||||||||||||||||||||||||
| 117 | =cut | ||||||||||||||||||||||||||||