| 1 | =pod | ||
| 2 | |||
| 3 | =head1 NAME | ||
| 4 | |||
| 5 | UR::ObjectV04removed - restores changes removed in UR version 0.04 | ||
| 6 | |||
| 7 | =head1 SYNOPSIS | ||
| 8 | |||
| 9 | use UR::ObjectV04removed | ||
| 10 | |||
| 11 | =head1 DESCRIPTION | ||
| 12 | |||
| 13 | Extends the UR::Object API have methods removed in the 0.04 release. | ||
| 14 | |||
| 15 | If you upgrade UR, but depend on old APIs, use this module. | ||
| 16 | |||
| 17 | For version 0.xx of UR, APIs may change with each release. After 1.0, APIs will | ||
| 18 | only change with major releases number increments. | ||
| 19 | |||
| 20 | =cut | ||
| 21 | |||
| 22 | # version 0.4 commits significant refactoring of the UR::BoolExpr API | ||
| 23 | # this brings back those parts which got new names | ||
| 24 | |||
| 25 | package UR::BoolExpr; | ||
| 26 | use strict; | ||
| 27 | use warnings; | ||
| 28 | our $VERSION = "0.46"; # UR $VERSION; | ||
| 29 | |||
| 30 | *get_rule_template = \&template; | ||
| 31 | *rule_template = \&template; | ||
| 32 | *get_rule_template_and_values = \&template_and_values; | ||
| 33 | *get_template_and_values = \&template_and_values; | ||
| 34 | *get_values = \&values; | ||
| 35 | *get_underlying_rules = \&underlying_rules; | ||
| 36 | *specifies_value_for_property_name = \&specifies_value_for; | ||
| 37 | |||
| 38 | *specified_operator_for = \&operator_for; | ||
| 39 | *specified_operator_for_propety_name = \&operator_for; | ||
| 40 | *specified_value_for_id = \&value_for_id; | ||
| 41 | *specified_value_for_position = \&value_for_position; | ||
| 42 | *specified_value_for_property_name = \&value_for; | ||
| 43 | |||
| 44 | *create_from_filter_string = \&resolve_for_string; | ||
| 45 | *create_from_command_line_format_filters = \&_resolve_from_filter_array; | ||
| 46 | *create_from_filters = \&_resolve_from_filter_array; | ||
| 47 | *create_from_subject_class_name_keys_and_values = \&_resolve_from_subject_class_name_keys_and_values; | ||
| 48 | |||
| 49 | *resolve_normalized_rule_for_class_and_params = \&resolve_normalized; | ||
| 50 | *resolve_for_class_and_params = \&resolve; | ||
| 51 | *get_normalized_rule_equivalent = \&normalize; | ||
| 52 |