-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d92dee5
commit 1c1d67f
Showing
7 changed files
with
34 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 13 additions & 8 deletions
21
...eApi.package/WAPersistenceOrbeonLayer.class/instance/publishFormDefinition.app.withId..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
service-put | ||
publishFormDefinition: formName app: app withId: documentId | ||
publishFormDefinition: formName app: app withId: documentId | ||
"This method is called by Orbeon when a Form Definition has been published with form name <formName> in application <app> with form id <documentId>" | ||
| apiOperation | | ||
|
||
<put> | ||
<consumes: 'application/xml'> | ||
<path: '/crud/{2}/{1}/form/form.xhtml?document={3}'> | ||
|
||
apiOperation := OrbeonFormBuilderPublishApi newWithXml: (self requestContext request bodyDecodeUsing: 'utf-8') id: documentId. | ||
| apiOperation | | ||
apiOperation := OrbeonFormBuilderPublishApi | ||
newOn: self systemRoot | ||
withXml: (self requestContext request bodyDecodeUsing: 'utf-8') | ||
id: documentId. | ||
apiOperation | ||
appName: app; | ||
formName: formName; | ||
headerVersion: (self requestContext request headerAt: 'orbeon-form-definition-version'); | ||
headerVersion: (self requestContext request | ||
headerAt: 'orbeon-form-definition-version'); | ||
group: (self requestContext request headerAt: 'orbeon-group'); | ||
user: (self requestContext request headerAt: 'orbeon-username'); | ||
setUserCredentialsFrom: (self requestContext request headerAt: 'orbeon-credentials'). | ||
|
||
^apiOperation doItIfNotFound: [OrbeonPersistenceApiException signal: 'Error performing the publishing']. | ||
setUserCredentialsFrom: (self requestContext request | ||
headerAt: 'orbeon-credentials'). | ||
^apiOperation doItIfNotFound: | ||
[OrbeonPersistenceApiException signal: 'Error performing the publishing'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
repository/OrbeonPersistenceApi.package/monticello.meta/version
Large diffs are not rendered by default.
Oops, something went wrong.