line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package SIAM::Service; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
55
|
|
4
|
2
|
|
|
2
|
|
10
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
52
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
7
|
use base 'SIAM::Object'; |
|
2
|
|
|
|
|
138
|
|
|
2
|
|
|
|
|
146
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
1189
|
use SIAM::ServiceUnit; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
20
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
SIAM::Service - Service object class |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 SYNOPSIS |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
my $svcunits = $service->get_service_units(); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 METHODS |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head2 get_service_units |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Returns arrayref with SIAM::ServiceUnit objects |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=cut |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub get_service_units |
27
|
|
|
|
|
|
|
{ |
28
|
1
|
|
|
1
|
1
|
383
|
my $self = shift; |
29
|
1
|
|
|
|
|
10
|
return $self->get_contained_objects('SIAM::ServiceUnit'); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
# mandatory attributes |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
my $mandatory_attributes = |
36
|
|
|
|
|
|
|
[ 'siam.svc.product_name', |
37
|
|
|
|
|
|
|
'siam.svc.type', |
38
|
|
|
|
|
|
|
'siam.svc.inventory_id' ]; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub _mandatory_attributes |
41
|
|
|
|
|
|
|
{ |
42
|
5
|
|
|
5
|
|
17
|
return $mandatory_attributes; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub _manifest_attributes |
46
|
|
|
|
|
|
|
{ |
47
|
1
|
|
|
1
|
|
3
|
my $ret = []; |
48
|
1
|
|
|
|
|
2
|
push(@{$ret}, @{$mandatory_attributes}, |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
9
|
|
49
|
1
|
|
|
|
|
2
|
@{ SIAM::ServiceUnit->_manifest_attributes() }); |
50
|
|
|
|
|
|
|
|
51
|
1
|
|
|
|
|
8
|
return $ret; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
1; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
# Local Variables: |
59
|
|
|
|
|
|
|
# mode: cperl |
60
|
|
|
|
|
|
|
# indent-tabs-mode: nil |
61
|
|
|
|
|
|
|
# cperl-indent-level: 4 |
62
|
|
|
|
|
|
|
# cperl-continued-statement-offset: 4 |
63
|
|
|
|
|
|
|
# cperl-continued-brace-offset: -4 |
64
|
|
|
|
|
|
|
# cperl-brace-offset: 0 |
65
|
|
|
|
|
|
|
# cperl-label-offset: -2 |
66
|
|
|
|
|
|
|
# End: |