line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HH::Unispool::Config::Entry::System; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
2510
|
use 5.006; |
|
5
|
|
|
|
|
16
|
|
|
5
|
|
|
|
|
210
|
|
4
|
5
|
|
|
5
|
|
27
|
use base qw( HH::Unispool::Config::Entry ); |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
1643
|
|
5
|
5
|
|
|
5
|
|
27
|
use strict; |
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
175
|
|
6
|
5
|
|
|
5
|
|
25
|
use warnings; |
|
5
|
|
|
|
|
8
|
|
|
5
|
|
|
|
|
139
|
|
7
|
5
|
|
|
5
|
|
24
|
use AutoLoader qw(AUTOLOAD); |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
31
|
|
8
|
5
|
|
|
5
|
|
174
|
use Error qw(:try); |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
31
|
|
9
|
5
|
|
|
5
|
|
3992
|
use HH::Unispool::Config::DateFormat; |
|
5
|
|
|
|
|
20
|
|
|
5
|
|
|
|
|
1271
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# Used by _value_is_allowed |
12
|
|
|
|
|
|
|
our %ALLOW_ISA = ( |
13
|
|
|
|
|
|
|
'date_format' => [ 'HH::Unispool::Config::DateFormat' ], |
14
|
|
|
|
|
|
|
'device' => [ 'HH::Unispool::Config::Entry::Device' ], |
15
|
|
|
|
|
|
|
'os' => [ 'HH::Unispool::Config::OS' ], |
16
|
|
|
|
|
|
|
'remote_system' => [ 'HH::Unispool::Config::Entry::RemoteSystem' ], |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
# Used by _value_is_allowed |
20
|
|
|
|
|
|
|
our %ALLOW_REF = ( |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# Used by _value_is_allowed |
24
|
|
|
|
|
|
|
our %ALLOW_RX = ( |
25
|
|
|
|
|
|
|
'central_console_node' => [ '^.+$' ], |
26
|
|
|
|
|
|
|
'default_printer' => [ '^.+$' ], |
27
|
|
|
|
|
|
|
'local_system_name' => [ '^.+$' ], |
28
|
|
|
|
|
|
|
'maximum_delay_time' => [ '^\d+$' ], |
29
|
|
|
|
|
|
|
'maximum_print_file_space' => [ '^\d+$' ], |
30
|
|
|
|
|
|
|
'maximum_save_file_space' => [ '^\d+$' ], |
31
|
|
|
|
|
|
|
'network_name' => [ '^.+$' ], |
32
|
|
|
|
|
|
|
'save_groups' => [ '^\d*$' ], |
33
|
|
|
|
|
|
|
'save_time_in_days' => [ '^\d+$' ], |
34
|
|
|
|
|
|
|
'start_time_clean_job_hour' => [ '^\d+$' ], |
35
|
|
|
|
|
|
|
'start_time_clean_job_minute' => [ '^\d+$' ], |
36
|
|
|
|
|
|
|
); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
# Used by _value_is_allowed |
39
|
|
|
|
|
|
|
our %ALLOW_VALUE = ( |
40
|
|
|
|
|
|
|
'type' => { |
41
|
|
|
|
|
|
|
'bcs' => 1, |
42
|
|
|
|
|
|
|
'cc' => 1, |
43
|
|
|
|
|
|
|
'cs' => 1, |
44
|
|
|
|
|
|
|
}, |
45
|
|
|
|
|
|
|
); |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
# Used by _initialize |
48
|
|
|
|
|
|
|
our %DEFAULT_VALUE = ( |
49
|
|
|
|
|
|
|
'central_console_node' => 'SYSLOG', |
50
|
|
|
|
|
|
|
'clean_on_weekdays_only' => 0, |
51
|
|
|
|
|
|
|
# See _initialize for 'date_format' default value |
52
|
|
|
|
|
|
|
'default_printer' => 'lp', |
53
|
|
|
|
|
|
|
'diff_number' => 0, |
54
|
|
|
|
|
|
|
'maximum_delay_time' => 15, |
55
|
|
|
|
|
|
|
'maximum_print_file_space' => 0, |
56
|
|
|
|
|
|
|
'maximum_save_file_space' => 0, |
57
|
|
|
|
|
|
|
'save_groups' => '', |
58
|
|
|
|
|
|
|
'save_time_in_days' => 3, |
59
|
|
|
|
|
|
|
'start_time_clean_job_hour' => 0, |
60
|
|
|
|
|
|
|
'start_time_clean_job_minute' => 0, |
61
|
|
|
|
|
|
|
'type' => 'cc', |
62
|
|
|
|
|
|
|
); |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
# Package version |
65
|
|
|
|
|
|
|
our ($VERSION) = '$Revision: 0.3 $' =~ /\$Revision:\s+([^\s]+)/; |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
1; |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
__END__ |