-
Notifications
You must be signed in to change notification settings - Fork 0
/
jira_attachment.spec.sql
56 lines (48 loc) · 1.23 KB
/
jira_attachment.spec.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
create or replace package jira_attachment
as
/** Integration to the Jira attachment rest endpoints
* @author Morten Egan
* @version 0.0.1
* @project JIRA_UTL
*/
p_version varchar2(50) := '0.0.1';
/** Pipelined function to get attachment meta information
* @author Morten Egan
* @param att_id Id if the attachment
*/
type attachment_rec is record (
filename varchar2(4000)
, author_name varchar2(4000)
, author_link varchar2(4000)
, created varchar2(4000)
, att_size number
, mimetype varchar2(4000)
, content varchar2(4000)
, thumbnail varchar2(4000)
);
type attachment_rec_tab is table of attachment_rec;
function get_attachment (
att_id in varchar2
)
return attachment_rec_tab
pipelined;
/** Delete attachment
* @author Morten Egan
* @param att_id The id of the attachment to delete
*/
procedure delete_attachment (
att_id in varchar2
);
/** Get attachments meta information
* @author Morten Egan
*/
type attachment_meta_rec is record (
enabled varchar2(4000)
, upload_limit number
);
type attachment_meta_rec_tab is table of attachment_meta_rec;
function get_attachment_meta
return attachment_meta_rec_tab
pipelined;
end jira_attachment;
/