Zenoss/Router/DetailNav.pm untested

filter: Statementstmt 0.0% 0 / 35 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 50 CC 4 SCAR 15.4
CC
4
Cov
0%
detailnav_getDetailNavConfigs
6.0
detailnav_getContextMenus
6.0
detailnav_getSecurityPermissions
6.0
CRAP 4.7
1 package Zenoss::Router::DetailNav;
2 use strict;
3  
4 use Moose::Role;
5 requires '_router_request', '_check_args';
6  
7 #**************************************************************************
8 # Attributes
9 #**************************************************************************
10 has 'DETAILNAV_LOCATION' => (
11 is => 'ro',
12 isa => 'Str',
13 default => 'zport/dmd/detailnav_router',
14 init_arg => undef,
15 );
16  
17 has 'DETAILNAV_ACTION' => (
18 is => 'ro',
19 isa => 'Str',
20 default => 'DetailNavRouter',
21 init_arg => undef,
22 );
23  
24 #**************************************************************************
25 # Public Methods
26 #**************************************************************************
27 #======================================================================
28 # detailnav_getDetailNavConfigs
29 #======================================================================
30 sub detailnav_getDetailNavConfigs {
31 my ($self, $args) = @_;
32 $args = {} if !$args;
33  
34 # Argument definition
35 my $definition = {};
36  
37 # Check the args
38 $self->_check_args($args, $definition);
39  
40 # Route the request
41 $self->_router_request(
42 {
43 location => $self->DETAILNAV_LOCATION,
44 action => $self->DETAILNAV_ACTION,
45 method => 'getDetailNavConfigs',
46 data => [$args],
47 }
48 );
49 } # END detailnav_getDetailNavConfigs
50  
51 #======================================================================
52 # detailnav_getContextMenus
53 #======================================================================
54 sub detailnav_getContextMenus {
55 my ($self, $args) = @_;
56 $args = {} if !$args;
57  
58 # Argument definition
59 my $definition = {};
60  
61 # Check the args
62 $self->_check_args($args, $definition);
63  
64 # Route the request
65 $self->_router_request(
66 {
67 location => $self->DETAILNAV_LOCATION,
68 action => $self->DETAILNAV_ACTION,
69 method => 'getContextMenus',
70 data => [$args],
71 }
72 );
73 } # END detailnav_getContextMenus
74  
75 #======================================================================
76 # detailnav_getSecurityPermissions
77 #======================================================================
78 sub detailnav_getSecurityPermissions {
79 my ($self, $args) = @_;
80 $args = {} if !$args;
81  
82 # Argument definition
83 my $definition = {
84 required => ['uid'],
85 };
86  
87 # Check the args
88 $self->_check_args($args, $definition);
89  
90 # Route the request
91 $self->_router_request(
92 {
93 location => $self->DETAILNAV_LOCATION,
94 action => $self->DETAILNAV_ACTION,
95 method => 'getSecurityPermissions',
96 data => [$args],
97 }
98 );
99 } # END detailnav_getSecurityPermissions
100  
101 #**************************************************************************
102 # Package end
103 #**************************************************************************
104 no Moose;
105  
106 1;
107  
108 __END__