1 Package ghr_cca_bus as
2 /* $Header: ghccarhi.pkh 120.0 2005/05/29 02:50:17 appldev noship $ */
3 --
4 -- ---------------------------------------------------------------------------
5 -- |----------------------< set_security_group_id >--------------------------|
6 -- ---------------------------------------------------------------------------
7 -- {Start Of Comments}
8 --
9 -- Description:
10 -- Sets the security_group_id in CLIENT_INFO for the appropriate business
11 -- group context.
12 --
13 -- Prerequisites:
14 -- The primary key identified by p_compl_appeal_id
15 -- already exists.
16 --
17 -- In Arguments:
18 -- p_compl_appeal_id
19 --
20 --
21 -- Post Success:
22 -- The security_group_id will be set in CLIENT_INFO.
23 --
24 -- Post Failure:
25 -- An error is raised if the value does not exist.
26 --
27 -- Access Status:
28 -- Internal Development Use Only.
29 --
30 -- {End Of Comments}
31 -- ---------------------------------------------------------------------------
32 procedure set_security_group_id
33 (p_compl_appeal_id in number
34 );
35 --
36 --
37 -- ---------------------------------------------------------------------------
38 -- |---------------------< return_legislation_code >-------------------------|
39 -- ---------------------------------------------------------------------------
40 -- {Start Of Comments}
41 --
42 -- Description:
43 -- Return the legislation code for a specific primary key value
44 --
45 -- Prerequisites:
46 -- The primary key identified by p_compl_appeal_id
47 -- already exists.
48 --
49 -- In Arguments:
50 -- p_compl_appeal_id
51 --
52 --
53 -- Post Success:
54 -- The business group's legislation code will be returned.
55 --
56 -- Post Failure:
57 -- An error is raised if the value does not exist.
58 --
59 -- Access Status:
60 -- Internal Development Use Only.
61 --
62 -- {End Of Comments}
63 -- ---------------------------------------------------------------------------
64 FUNCTION return_legislation_code
65 (p_compl_appeal_id in number
66 ) RETURN varchar2;
67 --
68
69 PROCEDURE chk_appealed_to(p_compl_appeal_id in ghr_compl_appeals.compl_appeal_id%TYPE,
70 p_appealed_to in ghr_compl_appeals.appealed_to%TYPE,
71 p_effective_date in date,
72 p_object_version_number in number);
73
74
75 PROCEDURE chk_reason_for_appeal(p_compl_appeal_id in ghr_compl_appeals.compl_appeal_id%TYPE,
76 p_reason_for_appeal in ghr_compl_appeals.reason_for_appeal%TYPE,
77 p_effective_date in date,
78 p_object_version_number in number);
79
80 PROCEDURE chk_decision(p_compl_appeal_id in ghr_compl_appeals.compl_appeal_id%TYPE,
81 p_appealed_to in ghr_compl_appeals.appealed_to%TYPE,
82 p_decision in ghr_compl_appeals.decision%TYPE,
83 p_effective_date in date,
84 p_object_version_number in number);
85
86 PROCEDURE chk_rfr_requested_by(p_compl_appeal_id in ghr_compl_appeals.compl_appeal_id%TYPE,
87 p_rfr_requested_by in ghr_compl_appeals.rfr_requested_by%TYPE,
88 p_effective_date in date,
89 p_object_version_number in number);
90
91 PROCEDURE chk_rfr_decision(p_compl_appeal_id in ghr_compl_appeals.compl_appeal_id%TYPE,
92 p_rfr_decision in ghr_compl_appeals.rfr_decision%TYPE,
93 p_effective_date in date,
94 p_object_version_number in number);
95
96 --
97 -- ----------------------------------------------------------------------------
98 -- |---------------------------< insert_validate >----------------------------|
99 -- ----------------------------------------------------------------------------
100 -- {Start of comments}
101 --
102 -- Description:
103 -- This procedure controls the execution of all insert business rules
104 -- validation.
105 --
106 -- Prerequisites:
107 -- This private procedure is called from ins procedure.
108 --
109 -- In Parameters:
110 -- A Pl/Sql record structure.
111 --
112 -- Post Success:
113 -- Processing continues.
114 --
115 -- Post Failure:
116 -- If a business rules fails the error will not be handled by this procedure
117 -- unless explicity coded.
118 --
119 -- Developer Implementation Notes:
120 -- For insert, your business rules should be executed from this procedure
121 -- and should ideally (unless really necessary) just be straight procedure
122 -- or function calls. Try and avoid using conditional branching logic.
123 --
124 -- Access Status:
125 -- Internal Row Handler Use Only.
126 --
127 -- {End of comments}
128 -- ----------------------------------------------------------------------------
129 Procedure insert_validate
130 (p_effective_date in date
131 ,p_rec in ghr_cca_shd.g_rec_type
132 );
133 --
134 -- ----------------------------------------------------------------------------
135 -- |---------------------------< update_validate >----------------------------|
136 -- ----------------------------------------------------------------------------
137 -- {Start Of Comments}
138 --
139 -- Description:
140 -- This procedure controls the execution of all update business rules
141 -- validation.
142 --
143 -- Prerequisites:
144 -- This private procedure is called from upd procedure.
145 --
146 -- In Parameters:
147 -- A Pl/Sql record structure.
148 --
149 -- Post Success:
150 -- Processing continues.
151 --
152 -- Post Failure:
153 -- If a business rules fails the error will not be handled by this procedure
154 -- unless explicity coded.
155 --
156 -- Access Status:
157 -- Internal Row Handler Use Only.
158 --
159 -- {End Of Comments}
160 -- ----------------------------------------------------------------------------
161 Procedure update_validate
162 (p_effective_date in date
163 ,p_rec in ghr_cca_shd.g_rec_type
164 );
165 --
166 -- ----------------------------------------------------------------------------
167 -- |---------------------------< delete_validate >----------------------------|
168 -- ----------------------------------------------------------------------------
169 -- {Start Of Comments}
170 --
171 -- Description:
172 -- This procedure controls the execution of all delete business rules
173 -- validation.
174 --
175 -- Prerequisites:
176 -- This private procedure is called from del procedure.
177 --
178 -- In Parameters:
179 -- A Pl/Sql record structure.
180 --
181 -- Post Success:
182 -- Processing continues.
183 --
184 -- Post Failure:
185 -- If a business rules fails the error will not be handled by this procedure
186 -- unless explicity coded.
187 --
188 -- Developer Implementation Notes:
189 -- For delete, your business rules should be executed from this procedure
190 -- and should ideally (unless really necessary) just be straight procedure
191 -- or function calls. Try and avoid using conditional branching logic.
192 --
193 -- Access Status:
194 -- Internal Row Handler Use Only.
195 --
196 -- {End Of Comments}
197 -- ----------------------------------------------------------------------------
198 Procedure delete_validate
199 (p_rec in ghr_cca_shd.g_rec_type
200 );
201 --
202 end ghr_cca_bus;