11: -- Function : Creates new configuration by copying the input configuration specified by
12: -- p_config_hdr_id and p_config_rev_nbr
13: -- Version : Current version 1.0
14: -- Initial version 1.0
15: -- Note : 1. new config_item_id generated only if copy_mode is CZ_API_PUB.G_NEW_HEADER_COPY_MODE
16: -- and baseline_rev_nbr is null
17: -- 2. caller is responsible for initialization of the message list and commit
18:
19: PROCEDURE copy_configuration(p_api_version IN NUMBER
21: ,p_config_rev_nbr IN NUMBER
22: ,p_copy_mode IN VARCHAR2
23: ,x_config_hdr_id OUT NOCOPY NUMBER
24: ,x_config_rev_nbr OUT NOCOPY NUMBER
25: ,x_orig_item_id_tbl OUT NOCOPY CZ_API_PUB.number_tbl_type
26: ,x_new_item_id_tbl OUT NOCOPY CZ_API_PUB.number_tbl_type
27: ,x_return_status OUT NOCOPY VARCHAR2
28: ,x_msg_count OUT NOCOPY NUMBER
29: ,x_msg_data OUT NOCOPY VARCHAR2
22: ,p_copy_mode IN VARCHAR2
23: ,x_config_hdr_id OUT NOCOPY NUMBER
24: ,x_config_rev_nbr OUT NOCOPY NUMBER
25: ,x_orig_item_id_tbl OUT NOCOPY CZ_API_PUB.number_tbl_type
26: ,x_new_item_id_tbl OUT NOCOPY CZ_API_PUB.number_tbl_type
27: ,x_return_status OUT NOCOPY VARCHAR2
28: ,x_msg_count OUT NOCOPY NUMBER
29: ,x_msg_data OUT NOCOPY VARCHAR2
30: ,p_handle_deleted_flag IN VARCHAR2 := NULL
36: -- p_config_hdr_id (required), header id of source config to be copied
37: -- p_config_rev_nbr (required), revision of source config to be copied
38: -- p_copy_mode (required), flag to specify whether creating a config having
39: -- new header id or new revision, has one of the following values.
40: -- CZ_API_PUB.G_NEW_HEADER_COPY_MODE
41: -- CZ_API_PUB.G_NEW_REVISION_COPY_MODE
42: -- p_handle_deleted_flag (optional), flag to indicate if handle deleted_flag
43: -- p_new_name (optional), name of the output config
44: -- p_force_new_inst_rev (optional), when called from generate_config_tree, this
37: -- p_config_rev_nbr (required), revision of source config to be copied
38: -- p_copy_mode (required), flag to specify whether creating a config having
39: -- new header id or new revision, has one of the following values.
40: -- CZ_API_PUB.G_NEW_HEADER_COPY_MODE
41: -- CZ_API_PUB.G_NEW_REVISION_COPY_MODE
42: -- p_handle_deleted_flag (optional), flag to indicate if handle deleted_flag
43: -- p_new_name (optional), name of the output config
44: -- p_force_new_inst_rev (optional), when called from generate_config_tree, this
45: -- parameter is used to indicate that a new revision should be created for
56: -- Validation:
57: -- p_config_hdr_id/p_config_rev_nbr: config exists in cz schema and is a network container
58: -- config or a non-network config, i.e, component_instance_type is 'R'
59: -- p_copy_mode: must be either of the following values
60: -- CZ_API_PUB.G_NEW_HEADER_COPY_MODE
61: -- CZ_API_PUB.G_NEW_REVISION_COPY_MODE
62:
63: -- API name : copy_configuration_auto
64: -- Package Name: CZ_CONFIG_API_PVT
57: -- p_config_hdr_id/p_config_rev_nbr: config exists in cz schema and is a network container
58: -- config or a non-network config, i.e, component_instance_type is 'R'
59: -- p_copy_mode: must be either of the following values
60: -- CZ_API_PUB.G_NEW_HEADER_COPY_MODE
61: -- CZ_API_PUB.G_NEW_REVISION_COPY_MODE
62:
63: -- API name : copy_configuration_auto
64: -- Package Name: CZ_CONFIG_API_PVT
65: -- Type : Public
74: ,p_config_rev_nbr IN NUMBER
75: ,p_copy_mode IN VARCHAR2
76: ,x_config_hdr_id OUT NOCOPY NUMBER
77: ,x_config_rev_nbr OUT NOCOPY NUMBER
78: ,x_orig_item_id_tbl OUT NOCOPY CZ_API_PUB.number_tbl_type
79: ,x_new_item_id_tbl OUT NOCOPY CZ_API_PUB.number_tbl_type
80: ,x_return_status OUT NOCOPY VARCHAR2
81: ,x_msg_count OUT NOCOPY NUMBER
82: ,x_msg_data OUT NOCOPY VARCHAR2
75: ,p_copy_mode IN VARCHAR2
76: ,x_config_hdr_id OUT NOCOPY NUMBER
77: ,x_config_rev_nbr OUT NOCOPY NUMBER
78: ,x_orig_item_id_tbl OUT NOCOPY CZ_API_PUB.number_tbl_type
79: ,x_new_item_id_tbl OUT NOCOPY CZ_API_PUB.number_tbl_type
80: ,x_return_status OUT NOCOPY VARCHAR2
81: ,x_msg_count OUT NOCOPY NUMBER
82: ,x_msg_data OUT NOCOPY VARCHAR2
83: ,p_handle_deleted_flag IN VARCHAR2 := NULL