Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
acs-service-contract
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
acs-service-contract
Commits
e1a99071
Commit
e1a99071
authored
Nov 03, 2020
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Updated to OpenACS 5.9.1
parent
f3cf52e5
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
36 additions
and
51 deletions
+36
-51
acs-service-contract.info
acs-service-contract.info
+4
-4
acs-sc-packages-create.sql
sql/oracle/acs-sc-packages-create.sql
+1
-1
upgrade-4.7d2-4.7d3.sql
sql/oracle/upgrade/upgrade-4.7d2-4.7d3.sql
+1
-1
upgrade-4.7d3-5.0d1.sql
sql/oracle/upgrade/upgrade-4.7d3-5.0d1.sql
+1
-1
acs-sc-packages-create.sql
sql/postgresql/acs-sc-packages-create.sql
+4
-3
acs-service-contract-procs.tcl
tcl/acs-service-contract-procs.tcl
+6
-6
contract-procs.tcl
tcl/contract-procs.tcl
+1
-7
implementation-procs.tcl
tcl/implementation-procs.tcl
+1
-1
msg-type-procs-oracle.xql
tcl/msg-type-procs-oracle.xql
+0
-10
msg-type-procs.tcl
tcl/msg-type-procs.tcl
+1
-1
binding-display.adp
www/binding-display.adp
+1
-1
contract-display.adp
www/contract-display.adp
+1
-1
index.adp
www/doc/index.adp
+5
-5
index.html
www/doc/index.html
+2
-2
index.stx
www/doc/index.stx
+2
-2
index.xml
www/doc/index.xml
+2
-2
notes.adp
www/doc/notes.adp
+2
-2
notes.html
www/doc/notes.html
+1
-1
No files found.
acs-service-contract.info
View file @
e1a99071
...
...
@@ -7,10 +7,10 @@
<initial-install-p>
t
</initial-install-p>
<singleton-p>
t
</singleton-p>
<version
name=
"5.9.
0"
url=
"http://openacs.org/repository/download/apm/acs-service-contract-5.9.0
.apm"
>
<version
name=
"5.9.
1"
url=
"http://openacs.org/repository/download/apm/acs-service-contract-5.9.1
.apm"
>
<owner
url=
"http://openacs.org"
>
OpenACS
</owner>
<summary>
API and UI for service contracts
</summary>
<release-date>
201
5-10-04
</release-date>
<release-date>
201
7-08-06
</release-date>
<maturity>
3
</maturity>
<vendor
url=
"http://openacs.org"
>
OpenACS
</vendor>
<description
format=
"text/html"
>
Service contracts defines an API for the creation of interfaces and discovery of interface implementations.
...
...
@@ -18,8 +18,8 @@
url or the contracts used by dotlrn and new-portals to allow packages to provide portalized panes.
</description>
<license>
GPL version 2
</license>
<provides
url=
"acs-service-contract"
version=
"5.9.
0
"
/>
<requires
url=
"acs-kernel"
version=
"5.9.
0
"
/>
<provides
url=
"acs-service-contract"
version=
"5.9.
1
"
/>
<requires
url=
"acs-kernel"
version=
"5.9.
1
"
/>
<callbacks>
</callbacks>
...
...
sql/oracle/acs-sc-packages-create.sql
View file @
e1a99071
...
...
@@ -77,7 +77,7 @@ as
impl_name
acs_sc_impls
.
impl_name
%
TYPE
);
/* Next 2 functions are deprecated but left here for backwards compat
a
bility */
/* Next 2 functions are deprecated but left here for backwards compat
i
bility */
function
new_alias
(
impl_contract_name
acs_sc_contracts
.
contract_name
%
TYPE
,
...
...
sql/oracle/upgrade/upgrade-4.7d2-4.7d3.sql
View file @
e1a99071
...
...
@@ -33,7 +33,7 @@ as
impl_name
acs_sc_impls
.
impl_name
%
TYPE
);
/* Next 2 functions are deprecated but left here for backwards compat
a
bility */
/* Next 2 functions are deprecated but left here for backwards compat
i
bility */
function
new_alias
(
impl_contract_name
acs_sc_contracts
.
contract_name
%
TYPE
,
...
...
sql/oracle/upgrade/upgrade-4.7d3-5.0d1.sql
View file @
e1a99071
...
...
@@ -372,7 +372,7 @@ as
impl_name
acs_sc_impls
.
impl_name
%
TYPE
);
/* Next 2 functions are deprecated but left here for backwards compat
a
bility */
/* Next 2 functions are deprecated but left here for backwards compat
i
bility */
function
new_alias
(
impl_contract_name
acs_sc_contracts
.
contract_name
%
TYPE
,
...
...
sql/postgresql/acs-sc-packages-create.sql
View file @
e1a99071
...
...
@@ -433,11 +433,12 @@ CREATE OR REPLACE FUNCTION acs_sc_impl__delete(
p_impl_name
varchar
)
RETURNS
integer
AS
$$
DECLARE
v_impl_id
integer
;
BEGIN
delete
from
acs_sc_impls
where
impl_contract_name
=
p_impl_contract_name
and
impl_name
=
p_impl_name
;
v_impl_id
:
=
acs_sc_impl__get_id
(
p_impl_contract_name
,
p_impl_name
);
perform
acs_object__delete
(
v_impl_id
)
;
return
0
;
...
...
tcl/acs-service-contract-procs.tcl
View file @
e1a99071
...
...
@@ -91,7 +91,7 @@ ad_proc -public acs_sc_binding_exists_p {
@author Neophytos Demetriou
}
{
return
[
db_string binding_exists_p
{
*SQL*
}]
return
[
db_string binding_exists_p
{}]
}
...
...
@@ -126,7 +126,7 @@ ad_proc -private acs_sc_get_alias {
if
{
!
[
set
exists_p
]}
{
return
""
}
db_0or1row get_alias
{
*SQL*
}
db_0or1row get_alias
{}
return
[
list
$impl
_alias
$impl
_pl
]
...
...
@@ -160,14 +160,14 @@ ad_proc -private acs_sc_proc {
error
"ACS-SC: Cannot find alias for
$proc
_name"
}
if
{
!
[
db_0or1row get_operation_definition
{
*SQL*
}]}
{
if
{
!
[
db_0or1row get_operation_definition
{}]}
{
ns_log warning
"ACS-SC: operation definition not found for contract
$contract
operation
$operation
"
return 0
}
append docblock
"
\n
<b>acs-service-contract operation. Call via acs_sc::invoke.</b>
\n\n
$operation
_desc
\n\n
"
db_foreach operation_inputtype_element
{
*SQL*
}
{
db_foreach operation_inputtype_element
{}
{
lappend arguments
"
$element
_name"
append docblock
"
\n
@param
$element
_name
$element
_msg_type_name"
if
{
$element
_msg_type_isset_p
}
{
...
...
@@ -175,7 +175,7 @@ ad_proc -private acs_sc_proc {
}
}
db_foreach operation_outputtype_element
{
*SQL*
}
{
db_foreach operation_outputtype_element
{}
{
append docblock
"
\n
@return <b>
$element
_name</b> -
$element
_msg_type_name"
if
{
$element
_msg_type_isset_p
}
{
append docblock
"
\[\]
"
...
...
@@ -209,7 +209,7 @@ ad_proc -private acs_sc_get_statement {
}
{
Builds the statement to call from the provided metadata.
@param impl_alias
t
cl or plpgsql proc to call
@param impl_alias
T
cl or plpgsql proc to call
@param impl_pl programmimg language of the proc to call
(
TCL or PLPGSQL
)
@param arguments list of argument names
...
...
tcl/contract-procs.tcl
View file @
e1a99071
...
...
@@ -192,13 +192,7 @@ ad_proc -public acs_sc::contract::get_operations {
}
{
Get a list of names of operations for the contract.
}
{
return
[
db_list select_operations
{
select o.operation_name
from acs_sc_operations o,
acs_sc_contracts c
where c.contract_name = :contract_name
and o.contract_id = c.contract_id
}]
return
[
db_list select_operations
{}]
}
...
...
tcl/implementation-procs.tcl
View file @
e1a99071
...
...
@@ -88,7 +88,7 @@ ad_proc -public acs_sc::impl::new_from_spec {
<li>owner: Owner of the implementation, use the package-key.
<li>name: Name of your implementation.
<li>name: Pretty name of your implementation. You'd typically use this when displaying the service contract implementation through a UI.
<li>aliases: Specification of the
t
cl procedures for each of the service contract's operations.
<li>aliases: Specification of the
T
cl procedures for each of the service contract's operations.
</ul>
The aliases section is itself an array-list. The keys are the operation names
...
...
tcl/msg-type-procs-oracle.xql
View file @
e1a99071
...
...
@@ -13,16 +13,6 @@
end;
</querytext>
</fullquery>
<fullquery
name=
"acs_sc::msg_type::delete.delete_by_id"
>
<querytext>
begin
acs_sc_msg_type.del(
msg_type_id => :msg_type_id
);
end;
</querytext>
</fullquery>
<fullquery
name=
"acs_sc::msg_type::delete.delete_by_name"
>
<querytext>
...
...
tcl/msg-type-procs.tcl
View file @
e1a99071
...
...
@@ -36,7 +36,7 @@ ad_proc -public acs_sc::msg_type::delete {
# It seems like delete by ID doesn't work, because our PG bind thing turns all integers into strings
# by wrapping them in single quotes, causing PG to invoke the function for deleting by name
if
{
$name
eq
""
}
{
if
{
$name
eq
""
}
{
# get msg_type name
db_1row select_name
{
select msg_type_name as name
...
...
www/binding-display.adp
View file @
e1a99071
...
...
@@ -8,7 +8,7 @@
<h2>Contract details</h2>
<ul>
<multiple name=contract>
<li> <
b>@contract.operation_name@</b
> -
<li> <
strong>@contract.operation_name@</strong
> -
@contract.operation_desc@
<ul>
<group column="operation_name">
...
...
www/contract-display.adp
View file @
e1a99071
...
...
@@ -4,7 +4,7 @@
<ul>
<multiple name=contract>
<li> <
b>@contract.operation_name@</b
> -
<li> <
strong>@contract.operation_name@</strong
> -
@contract.operation_desc@
<ul>
<group column="operation_name">
...
...
www/doc/index.adp
View file @
e1a99071
<
property
name
=
"context"
>{/
doc
/
acs
-
service
-
contract
{
Service
Contracts
}}
{
ACS
Service
Contract
Documentation
}</
property
>
<
property
name
=
"context"
>{/
doc
/
acs
-
service
-
contract
{
ACS
Service
Contracts
}}
{
ACS
Service
Contract
Documentation
}</
property
>
<
property
name
=
"doc(title)"
>
ACS
Service
Contract
Documentation
</
property
>
<
master
>
<
h1
>
ACS
Service
Contract
Documentation
</
h1
>
...
...
@@ -30,16 +30,16 @@ only available through tcl.</p>
documentation
through
ad_proc
.</
p
>
<
p
>
The
Service
Contract
interface
specification
was
inspired
by
WDSL
,
the
interface
specfication
for
web
services
.</
p
>
<
h2
>
Hitchiker
'
s Guide to Service Contract Definitions</h2>
<
h2
>
Hitchiker
&#
39
;
s
Guide
to
Service
Contract
Definitions
</
h2
>
<
ul
>
<li>contract - anal
a
gous to interface, contracts serve as logical
<
li
>
contract
-
anal
o
gous
to
interface
,
contracts
serve
as
logical
containers
for
operations
.</
li
><
li
>
operation
-
a
method
of
an
interface
.
defines
a
method
signature
,
including
both
input
and
outputs
as
well
as
metadata
such
as
caching
.</
li
><
li
>
implementation
-
an
implementation
is
a
set
of
concrete
functions
that
fufills
an
interface
.</
li
><
li
>
implementation
alias
-
is
the
method
of
an
implementation
that
fufills
a
given
operation
of
the
contract
.</
li
><
li
>
bindings
-
association
between
an
interface
and
an
implementation
.</
li
><
li
>
types
-
define
the
kind
of
input
and
outputs
a
operation
rec
ie
ves.</li>
rec
ei
ves
.</
li
>
</
ul
>
<
h2
>
Usage
</
h2
>
<
h3
>
Design
the
Contract
</
h3
>
...
...
@@ -47,7 +47,7 @@ recieves.</li>
mind
that
all
implementations
need
to
implement
it
and
that
extension
of
the
contract
after
deployment
is
often
not
practical
.
In
other
words
take
the
time
to
do
a
little
future
proofing
and
thinking about possible uses that you weren
'
t
planning
on
.</
p
>
thinking
about
possible
uses
that
you
weren
&#
39
;
t
planning
on
.</
p
>
<
h3
>
Defining
Operations
</
h3
>
<
p
>
Next
define
the
logical
operations
that
will
make
up
your
contract
</
p
>
...
...
www/doc/index.html
View file @
e1a99071
...
...
@@ -24,7 +24,7 @@
documentation through ad_proc.
</p><p>
The Service Contract interface specification was inspired by
WDSL, the interface specfication for web services.
</p><h2>
Hitchiker's Guide to Service Contract Definitions
</h2>
<ul>
<li>
contract - anal
a
gous to interface, contracts serve as logical
<li>
contract - anal
o
gous to interface, contracts serve as logical
containers for operations.
</li>
<li>
operation - a method of an interface. defines a method signature,
including both input and outputs as well as metadata
...
...
@@ -34,7 +34,7 @@
<li>
implementation alias - is the method of an implementation that
fufills a given operation of the contract.
</li>
<li>
bindings - association between an interface and an implementation.
</li>
<li>
types - define the kind of input and outputs a operation rec
ie
ves.
</li>
<li>
types - define the kind of input and outputs a operation rec
ei
ves.
</li>
</ul>
<h2>
Usage
</h2>
<h3>
Design the Contract
</h3>
...
...
www/doc/index.stx
View file @
e1a99071
...
...
@@ -38,7 +38,7 @@ ACS Service Contract Documentation
Hitchiker's Guide to Service Contract Definitions
- contract - anal
a
gous to interface, contracts serve as logical
- contract - anal
o
gous to interface, contracts serve as logical
containers for operations.
- operation - a method of an interface. defines a method signature,
...
...
@@ -53,7 +53,7 @@ ACS Service Contract Documentation
- bindings - association between an interface and an implementation.
- types - define the kind of input and outputs a operation rec
ie
ves.
- types - define the kind of input and outputs a operation rec
ei
ves.
Usage
...
...
www/doc/index.xml
View file @
e1a99071
...
...
@@ -70,7 +70,7 @@ The Service Contract interface specification was inspired by
<title>
Hitchiker's Guide to Service Contract Definitions
</title>
<itemizedlist>
<listitem><para>
contract - anal
a
gous to interface, contracts serve as logical
contract - anal
o
gous to interface, contracts serve as logical
containers for operations.
</para></listitem>
<listitem><para>
operation - a method of an interface. defines a method signature,
...
...
@@ -85,7 +85,7 @@ implementation alias - is the method of an implementation that
<listitem><para>
bindings - association between an interface and an implementation.
</para></listitem>
<listitem><para>
types - define the kind of input and outputs a operation rec
ie
ves.
</para></listitem>
types - define the kind of input and outputs a operation rec
ei
ves.
</para></listitem>
</itemizedlist>
</section>
...
...
www/doc/notes.adp
View file @
e1a99071
<property name="context">{/doc/acs-service-contract {Service Contracts}} {}</property>
<property name="context">{/doc/acs-service-contract {
ACS
Service Contracts}} {}</property>
<property name="doc(title)"></property>
<master>
...
...
@@ -18,5 +18,5 @@ Binding - A concrete implementation for a particular interface.
Function - The implementation of an operation. Actors Registrar -
An entity that defines the specification of a contract and
registers it with the repository. Provider - Provides an
implementation of the contract. Depend
a
nt - Something that uses a
implementation of the contract. Depend
e
nt - Something that uses a
contract.
www/doc/notes.html
View file @
e1a99071
...
...
@@ -32,7 +32,7 @@ Registrar - An entity that defines the specification of a contract and registers
Provider - Provides an implementation of the contract.
Depend
a
nt - Something that uses a contract.
Depend
e
nt - Something that uses a contract.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment