Revision baac72df
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/DB/Manager/RequirementSpecAcceptanceStatus.pm | ||
---|---|---|
1 |
package SL::DB::Manager::RequirementSpecAcceptanceStatus; |
|
2 |
|
|
3 |
use strict; |
|
4 |
|
|
5 |
use SL::DB::Helper::Manager; |
|
6 |
use base qw(SL::DB::Helper::Manager); |
|
7 |
|
|
8 |
use SL::DB::Helper::Sorted; |
|
9 |
|
|
10 |
sub object_class { 'SL::DB::RequirementSpecAcceptanceStatus' } |
|
11 |
|
|
12 |
__PACKAGE__->make_manager_methods; |
|
13 |
|
|
14 |
sub _sort_spec { |
|
15 |
return ( |
|
16 |
default => [ 'position', 1 ], |
|
17 |
columns => { |
|
18 |
SIMPLE => 'ALL', |
|
19 |
map { ( $_ => "lower(requirement_spec_acceptance_statuses.${_})" ) } qw(name description), |
|
20 |
}); |
|
21 |
} |
|
22 |
|
|
23 |
1; |
SL/DB/Manager/RequirementSpecComplexity.pm | ||
---|---|---|
1 |
package SL::DB::Manager::RequirementSpecComplexity; |
|
2 |
|
|
3 |
use strict; |
|
4 |
|
|
5 |
use SL::DB::Helper::Manager; |
|
6 |
use base qw(SL::DB::Helper::Manager); |
|
7 |
|
|
8 |
use SL::DB::Helper::Sorted; |
|
9 |
|
|
10 |
sub object_class { 'SL::DB::RequirementSpecComplexity' } |
|
11 |
|
|
12 |
__PACKAGE__->make_manager_methods; |
|
13 |
|
|
14 |
sub _sort_spec { |
|
15 |
return ( |
|
16 |
default => [ 'position', 1 ], |
|
17 |
columns => { |
|
18 |
SIMPLE => 'ALL', |
|
19 |
map { ( $_ => "lower(requirement_spec_complexities.${_})" ) } qw(description), |
|
20 |
}); |
|
21 |
} |
|
22 |
|
|
23 |
1; |
SL/DB/Manager/RequirementSpecItem.pm | ||
---|---|---|
1 |
package SL::DB::Manager::RequirementSpecItem; |
|
2 |
|
|
3 |
use strict; |
|
4 |
|
|
5 |
use SL::DB::Helper::Manager; |
|
6 |
use base qw(SL::DB::Helper::Manager); |
|
7 |
|
|
8 |
use SL::DB::Helper::Sorted; |
|
9 |
|
|
10 |
sub object_class { 'SL::DB::RequirementSpecItem' } |
|
11 |
|
|
12 |
__PACKAGE__->make_manager_methods; |
|
13 |
|
|
14 |
sub _sort_spec { |
|
15 |
return ( |
|
16 |
default => [ 'position', 1 ], |
|
17 |
columns => { |
|
18 |
SIMPLE => 'ALL', |
|
19 |
map { ( $_ => "lower(requirement_spec_items.${_})" ) } qw(fb_number title description acceptance_text), |
|
20 |
}); |
|
21 |
} |
|
22 |
|
|
23 |
1; |
SL/DB/Manager/RequirementSpecPredefinedText.pm | ||
---|---|---|
1 |
package SL::DB::Manager::RequirementSpecPredefinedText; |
|
2 |
|
|
3 |
use strict; |
|
4 |
|
|
5 |
use SL::DB::Helper::Manager; |
|
6 |
use base qw(SL::DB::Helper::Manager); |
|
7 |
|
|
8 |
use SL::DB::Helper::Sorted; |
|
9 |
|
|
10 |
sub object_class { 'SL::DB::RequirementSpecPredefinedText' } |
|
11 |
|
|
12 |
__PACKAGE__->make_manager_methods; |
|
13 |
|
|
14 |
sub _sort_spec { |
|
15 |
return ( |
|
16 |
default => [ 'position', 1 ], |
|
17 |
columns => { |
|
18 |
SIMPLE => 'ALL', |
|
19 |
map { ( $_ => "lower(requirement_spec_predefined_texts.${_})" ) } qw(description title), |
|
20 |
}); |
|
21 |
} |
|
22 |
|
|
23 |
1; |
SL/DB/Manager/RequirementSpecRisk.pm | ||
---|---|---|
1 |
package SL::DB::Manager::RequirementSpecRisk; |
|
2 |
|
|
3 |
use strict; |
|
4 |
|
|
5 |
use SL::DB::Helper::Manager; |
|
6 |
use base qw(SL::DB::Helper::Manager); |
|
7 |
|
|
8 |
use SL::DB::Helper::Sorted; |
|
9 |
|
|
10 |
sub object_class { 'SL::DB::RequirementSpecRisk' } |
|
11 |
|
|
12 |
__PACKAGE__->make_manager_methods; |
|
13 |
|
|
14 |
sub _sort_spec { |
|
15 |
return ( |
|
16 |
default => [ 'position', 1 ], |
|
17 |
columns => { |
|
18 |
SIMPLE => 'ALL', |
|
19 |
map { ( $_ => "lower(requirement_spec_risks.${_})" ) } qw(description), |
|
20 |
}); |
|
21 |
} |
|
22 |
|
|
23 |
1; |
SL/DB/Manager/RequirementSpecStatus.pm | ||
---|---|---|
1 |
package SL::DB::Manager::RequirementSpecStatus; |
|
2 |
|
|
3 |
use strict; |
|
4 |
|
|
5 |
use SL::DB::Helper::Manager; |
|
6 |
use base qw(SL::DB::Helper::Manager); |
|
7 |
|
|
8 |
use SL::DB::Helper::Sorted; |
|
9 |
|
|
10 |
sub object_class { 'SL::DB::RequirementSpecStatus' } |
|
11 |
|
|
12 |
__PACKAGE__->make_manager_methods; |
|
13 |
|
|
14 |
sub _sort_spec { |
|
15 |
return ( |
|
16 |
default => [ 'position', 1 ], |
|
17 |
columns => { |
|
18 |
SIMPLE => 'ALL', |
|
19 |
map { ( $_ => "lower(requirement_spec_statuses.${_})" ) } qw(name description), |
|
20 |
}); |
|
21 |
} |
|
22 |
|
|
23 |
1; |
SL/DB/Manager/RequirementSpecTextBlock.pm | ||
---|---|---|
1 |
package SL::DB::Manager::RequirementSpecTextBlock; |
|
2 |
|
|
3 |
use strict; |
|
4 |
|
|
5 |
use SL::DB::Helper::Manager; |
|
6 |
use base qw(SL::DB::Helper::Manager); |
|
7 |
|
|
8 |
use SL::DB::Helper::Sorted; |
|
9 |
|
|
10 |
sub object_class { 'SL::DB::RequirementSpecTextBlock' } |
|
11 |
|
|
12 |
__PACKAGE__->make_manager_methods; |
|
13 |
|
|
14 |
sub _sort_spec { |
|
15 |
return ( |
|
16 |
default => [ 'position', 1 ], |
|
17 |
columns => { |
|
18 |
SIMPLE => 'ALL', |
|
19 |
map { ( $_ => "lower(requirement_spec_text_blocks.${_})" ) } qw(title text), |
|
20 |
}); |
|
21 |
} |
|
22 |
|
|
23 |
1; |
SL/DB/Manager/RequirementSpecType.pm | ||
---|---|---|
1 |
package SL::DB::Manager::RequirementSpecType; |
|
2 |
|
|
3 |
use strict; |
|
4 |
|
|
5 |
use SL::DB::Helper::Manager; |
|
6 |
use base qw(SL::DB::Helper::Manager); |
|
7 |
|
|
8 |
use SL::DB::Helper::Sorted; |
|
9 |
|
|
10 |
sub object_class { 'SL::DB::RequirementSpecType' } |
|
11 |
|
|
12 |
__PACKAGE__->make_manager_methods; |
|
13 |
|
|
14 |
sub _sort_spec { |
|
15 |
return ( |
|
16 |
default => [ 'position', 1 ], |
|
17 |
columns => { |
|
18 |
SIMPLE => 'ALL', |
|
19 |
map { ( $_ => "lower(requirement_spec_types.${_})" ) } qw(description), |
|
20 |
}); |
|
21 |
} |
|
22 |
|
|
23 |
1; |
SL/DB/RequirementSpecAcceptanceStatus.pm | ||
---|---|---|
3 | 3 |
use strict; |
4 | 4 |
|
5 | 5 |
use SL::DB::MetaSetup::RequirementSpecAcceptanceStatus; |
6 |
use SL::DB::Manager::RequirementSpecAcceptanceStatus; |
|
6 | 7 |
use SL::DB::Helper::ActsAsList; |
7 | 8 |
use SL::Locale::String; |
8 | 9 |
|
9 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
10 |
__PACKAGE__->meta->make_manager_class; |
|
11 |
|
|
12 | 10 |
sub validate { |
13 | 11 |
my ($self) = @_; |
14 | 12 |
|
SL/DB/RequirementSpecComplexity.pm | ||
---|---|---|
3 | 3 |
use strict; |
4 | 4 |
|
5 | 5 |
use SL::DB::MetaSetup::RequirementSpecComplexity; |
6 |
use SL::DB::Manager::RequirementSpecComplexity; |
|
6 | 7 |
use SL::DB::Helper::ActsAsList; |
7 | 8 |
use SL::Locale::String; |
8 | 9 |
|
9 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
10 |
__PACKAGE__->meta->make_manager_class; |
|
11 |
|
|
12 | 10 |
sub validate { |
13 | 11 |
my ($self) = @_; |
14 | 12 |
|
SL/DB/RequirementSpecItem.pm | ||
---|---|---|
3 | 3 |
use strict; |
4 | 4 |
|
5 | 5 |
use SL::DB::MetaSetup::RequirementSpecItem; |
6 |
|
|
7 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
8 |
__PACKAGE__->meta->make_manager_class; |
|
6 |
use SL::DB::Manager::RequirementSpecItem; |
|
9 | 7 |
|
10 | 8 |
1; |
SL/DB/RequirementSpecPredefinedText.pm | ||
---|---|---|
3 | 3 |
use strict; |
4 | 4 |
|
5 | 5 |
use SL::DB::MetaSetup::RequirementSpecPredefinedText; |
6 |
use SL::DB::Manager::RequirementSpecPredefinedText; |
|
6 | 7 |
use SL::DB::Helper::ActsAsList; |
7 | 8 |
use SL::Locale::String; |
8 | 9 |
|
9 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
10 |
__PACKAGE__->meta->make_manager_class; |
|
11 |
|
|
12 | 10 |
sub validate { |
13 | 11 |
my ($self) = @_; |
14 | 12 |
|
SL/DB/RequirementSpecRisk.pm | ||
---|---|---|
3 | 3 |
use strict; |
4 | 4 |
|
5 | 5 |
use SL::DB::MetaSetup::RequirementSpecRisk; |
6 |
use SL::DB::Manager::RequirementSpecRisk; |
|
6 | 7 |
use SL::DB::Helper::ActsAsList; |
7 | 8 |
use SL::Locale::String; |
8 | 9 |
|
9 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
10 |
__PACKAGE__->meta->make_manager_class; |
|
11 |
|
|
12 | 10 |
sub validate { |
13 | 11 |
my ($self) = @_; |
14 | 12 |
|
SL/DB/RequirementSpecStatus.pm | ||
---|---|---|
3 | 3 |
use strict; |
4 | 4 |
|
5 | 5 |
use SL::DB::MetaSetup::RequirementSpecStatus; |
6 |
use SL::DB::Manager::RequirementSpecStatus; |
|
6 | 7 |
use SL::DB::Helper::ActsAsList; |
7 | 8 |
use SL::Locale::String; |
8 | 9 |
|
9 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
10 |
__PACKAGE__->meta->make_manager_class; |
|
11 |
|
|
12 | 10 |
sub validate { |
13 | 11 |
my ($self) = @_; |
14 | 12 |
|
SL/DB/RequirementSpecTextBlock.pm | ||
---|---|---|
3 | 3 |
use strict; |
4 | 4 |
|
5 | 5 |
use SL::DB::MetaSetup::RequirementSpecTextBlock; |
6 |
use SL::DB::Manager::RequirementSpecTextBlock; |
|
6 | 7 |
# ActsAsList does not support position arguments grouped by other |
7 | 8 |
# columns, e.g. by the requirement_spec_id in this case. So we cannot |
8 | 9 |
# use it yet. |
9 | 10 |
# use SL::DB::Helper::ActsAsList; |
10 | 11 |
use SL::Locale::String; |
11 | 12 |
|
12 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
13 |
__PACKAGE__->meta->make_manager_class; |
|
14 |
|
|
15 | 13 |
sub validate { |
16 | 14 |
my ($self) = @_; |
17 | 15 |
|
SL/DB/RequirementSpecType.pm | ||
---|---|---|
3 | 3 |
use strict; |
4 | 4 |
|
5 | 5 |
use SL::DB::MetaSetup::RequirementSpecType; |
6 |
use SL::DB::Manager::RequirementSpecType; |
|
6 | 7 |
use SL::DB::Helper::ActsAsList; |
7 | 8 |
use SL::Locale::String; |
8 | 9 |
|
9 |
# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. |
|
10 |
__PACKAGE__->meta->make_manager_class; |
|
11 |
|
|
12 | 10 |
sub validate { |
13 | 11 |
my ($self) = @_; |
14 | 12 |
|
Auch abrufbar als: Unified diff
Pflichtenheftmodels: Manager für alle sortierbaren angelegt