1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0//EN">
6 <style type=
"text/css">
9 font-family: verdana
, sans-serif
;
29 text-decoration:underline
;
34 text-decoration: none
;
47 border-bottom-width:1px;
48 border-bottom-style:dotted
;
64 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
67 <big><tt>Global.helma.sqlshell.getProtoRepositories
(protoName)
</tt></big><br>
87 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
89 <td>Sourcecode in helmaTools.zip/Global/helma.sqlshell.js:
90 <pre><font color=
"#aaaaaa">41:
</font> helma.sqlshell.getProtoRepositories = function(protoName) {
91 <font color=
"#aaaaaa">42:
</font> var rep = [];
92 <font color=
"#aaaaaa">43:
</font> var proto = app.getPrototype(protoName);
93 <font color=
"#aaaaaa">44:
</font> if (proto) {
94 <font color=
"#aaaaaa">45:
</font> var repos = proto.getRepositories();
95 <font color=
"#aaaaaa">46:
</font> for (var i in repos) {
96 <font color=
"#aaaaaa">47:
</font> if (repos[i].getClass() == Packages.helma.framework.repository.FileRepository)
97 <font color=
"#aaaaaa">48:
</font> rep.push([i, repos[i].name]);
98 <font color=
"#aaaaaa">49:
</font> }
99 <font color=
"#aaaaaa">50:
</font> }
100 <font color=
"#aaaaaa">51:
</font> return rep;
101 <font color=
"#aaaaaa">52:
</font> }