1 Package HR_PER_DEPLYMT_CONTACT_API as
2 /* $Header: hrpdcapi.pkh 120.1.12010000.2 2008/08/06 08:46:38 ubhat ship $ */
3 /*#
4 * This package contains global deployment contact APIs.
5 * @rep:scope public
6 * @rep:product per
7 * @rep:displayname Person Deployment Contact
8 */
9 --
10 -- ----------------------------------------------------------------------------
11 -- |------------------------< create_per_deplymt_contact >--------------------|
12 -- ----------------------------------------------------------------------------
13 --
14 -- {Start Of Comments}
15 /*#
16 * This API creates a deployment contact record.
17 *
18 * When a Deployment is initiated for an Employee from one Business Group to
19 * another,this API creates a Contact Relationship for the Employee in the
20 * Destination Business group, based on the contact information in the Source
21 * Business Group.
22 *
23 * <p><b>Licensing</b><br>
24 * This API is licensed for use with Human Resources.
25 *
26 * <p><b>Prerequisites</b><br>
27 * The deployment record already exists in the database. The contact
28 * relationship specified must exist and be for the same employee as
29 * the deployment.
30 *
31 * <p><b>Post Success</b><br>
32 * The deployment contact record is created successfully.
33 *
34 * <p><b>Post Failure</b><br>
35 * The deployment contact record is not created and an error is raised.
36 *
37 * @param p_validate If true, then validation alone will be performed and the
38 * database will remain unchanged. If false and all validation checks pass,
39 * then the database will be modified.
40 * @param p_person_deployment_id Identifies the deployment record to which this
41 * deployment contact applies.
42 * @param p_contact_relationship_id The contact relationship which should be
43 * copied when the deployment is initiated.
44 * @param p_per_deplymt_contact_id If p_validate is false, then this uniquely
45 * identifies the deployment contact record created. If p_validate is true,
46 * then set to null.
47 * @param p_object_version_number If p_validate is false, then set to
48 * the version number of the created deployment contact. If p_validate is true,
49 * then the value will be null.
50 * @rep:displayname Create Deployment Contact
51 * @rep:category BUSINESS_ENTITY PER_CONTACT_RELATIONSHIP
52 * @rep:lifecycle active
53 * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
54 * @rep:scope public
55 * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
56 */
57 --
58 -- {End Of Comments}
59 --
60 procedure create_per_deplymt_contact
61 (p_validate in boolean default false
62 ,p_person_deployment_id in number
63 ,p_contact_relationship_id in number
64 ,p_per_deplymt_contact_id out nocopy number
65 ,p_object_version_number out nocopy number
66 );
67 --
68 --
69 -- ----------------------------------------------------------------------------
70 -- |------------------------< delete_per_deplymt_contact >--------------------|
71 -- ----------------------------------------------------------------------------
72 --
73 -- {Start Of Comments}
74 /*#
75 * This API deletes a deployment contact record.
76 *
77 * <p><b>Licensing</b><br>
78 * This API is licensed for use with Human Resources.
79 *
80 * <p><b>Prerequisites</b><br>
81 * The deployment contact record already exists.
82 *
83 * <p><b>Post Success</b><br>
84 * The deployment contact record is deleted.
85 *
86 * <p><b>Post Failure</b><br>
87 * The deployment contact record is not deleted, and an error is raised.
88 *
89 * @param p_validate If true, then validation alone will be performed and the
90 * database will remain unchanged. If false and all validation checks pass,
91 * then the database will be modified.
92 * @param p_per_deplymt_contact_id Identifies the deployment contact record
93 * to delete.
94 * @param p_object_version_number Current version number of the deployment
95 * contact to be deleted.
96 * @rep:displayname Delete Deployment Contact
97 * @rep:category BUSINESS_ENTITY PER_CONTACT_RELATIONSHIP
98 * @rep:lifecycle active
99 * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
100 * @rep:scope public
101 * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
102 */
103 --
104 -- {End Of Comments}
105 --
106 procedure delete_per_deplymt_contact
107 (p_validate in boolean default false
108 ,p_per_deplymt_contact_id in number
109 ,p_object_version_number in number
110 );
111 end HR_PER_DEPLYMT_CONTACT_API;