-
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
222cce5
commit c6def93
Showing
12 changed files
with
85 additions
and
62 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
repository/OrbeonPersistenceApi.package/OrbeonServiceOperationApi.class/class/newOn..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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
instance creation | ||
newOn: anOrbeonSystemManager | ||
|
||
^self new | ||
setWorldManager: anOrbeonSystemManager; | ||
yourself |
4 changes: 4 additions & 0 deletions
4
...OrbeonPersistenceApi.package/OrbeonServiceOperationApi.class/instance/setWorldManager..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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
private | ||
setWorldManager: anOrbeonSystemManager | ||
|
||
systemRoot := anOrbeonSystemManager. |
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
15 changes: 8 additions & 7 deletions
15
...APersistenceOrbeonLayer.class/instance/getAllFormDefinitionVesionsFor.app.allversions..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,19 @@ | ||
service-get | ||
getAllFormDefinitionVesionsFor: formName app: app allversions: allversionBoolean | ||
getAllFormDefinitionVesionsFor: formName app: app allversions: allversionBoolean | ||
"Implemented as stated in: | ||
https://doc.orbeon.com/form-runner/api/persistence/forms-metadata.html#returning-all-form-definition-versions" | ||
| apiOperation | | ||
|
||
<get> | ||
<produces: 'application/xml'> | ||
<path: '/form/{2}/{1}?all-versions={3}'> | ||
|
||
apiOperation := OrbeonAllFormDefinitionVersionsApi new. | ||
apiOperation appName: app; | ||
| apiOperation | | ||
apiOperation := OrbeonAllFormDefinitionVersionsApi newOn: self systemRoot. | ||
apiOperation | ||
appName: app; | ||
formName: formName; | ||
allversions: allversionBoolean; | ||
group: (self requestContext request headerAt: 'orbeon-group'); | ||
user: (self requestContext request headerAt: 'orbeon-username'); | ||
setUserCredentialsFrom: (self requestContext request headerAt: 'orbeon-credentials'). | ||
|
||
setUserCredentialsFrom: (self requestContext request | ||
headerAt: 'orbeon-credentials'). | ||
^apiOperation doIt |
15 changes: 8 additions & 7 deletions
15
...nceOrbeonLayer.class/instance/getAllFormDefinitionVesionsFor.app.allversions.allforms..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,19 +1,20 @@ | ||
service-get | ||
getAllFormDefinitionVesionsFor: formName app: app allversions: allversionBoolean allforms: allformsBoolean | ||
getAllFormDefinitionVesionsFor: formName app: app allversions: allversionBoolean allforms: allformsBoolean | ||
"Implemented as stated in: | ||
https://doc.orbeon.com/form-runner/api/persistence/forms-metadata.html#returning-all-form-definition-versions" | ||
| apiOperation | | ||
|
||
<get> | ||
<produces: 'application/xml'> | ||
<path: '/form/{2}/{1}?all-versions={3}&all-forms={4}'> | ||
|
||
apiOperation := OrbeonAllFormDefinitionVersionsApi new. | ||
apiOperation appName: app; | ||
| apiOperation | | ||
apiOperation := OrbeonAllFormDefinitionVersionsApi newOn: self systemRoot. | ||
apiOperation | ||
appName: app; | ||
formName: formName; | ||
allversions: allversionBoolean; | ||
allforms: allformsBoolean; | ||
group: (self requestContext request headerAt: 'orbeon-group'); | ||
user: (self requestContext request headerAt: 'orbeon-username'); | ||
setUserCredentialsFrom: (self requestContext request headerAt: 'orbeon-credentials'). | ||
|
||
setUserCredentialsFrom: (self requestContext request | ||
headerAt: 'orbeon-credentials'). | ||
^apiOperation doIt |
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
18 changes: 10 additions & 8 deletions
18
...rsistenceApi.package/WAPersistenceOrbeonLayer.class/instance/getToolboxForApplication..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,17 +1,19 @@ | ||
service-get | ||
getToolboxForApplication: appName | ||
getToolboxForApplication: appName | ||
"This method is called by Orbeon when the Form Builder is about to be Opened. | ||
It show the available -Library- forms for the application named <appName> " | ||
| apiOperation | | ||
|
||
<get> | ||
<produces: 'application/xml'> | ||
<path: '/custom/{1}/builder/toolbox'> | ||
|
||
apiOperation := OrbeonGetToolboxApi new. | ||
apiOperation appName: appName; | ||
headerValue: (self requestContext request headerAt: 'orbeon-form-definition-version'); | ||
| apiOperation | | ||
apiOperation := OrbeonGetToolboxApi newOn: self systemRoot. | ||
apiOperation | ||
appName: appName; | ||
headerValue: (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'). | ||
|
||
setUserCredentialsFrom: (self requestContext request | ||
headerAt: 'orbeon-credentials'). | ||
^apiOperation doItIfNotFound: [self noRouteFound: self requestContext] |
18 changes: 10 additions & 8 deletions
18
...enceApi.package/WAPersistenceOrbeonLayer.class/instance/getToolboxForApplication.form..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,17 +1,19 @@ | ||
service-get | ||
getToolboxForApplication: appName form: formName | ||
getToolboxForApplication: appName form: formName | ||
"This method is called by Orbeon when the Form Builder is about to be Opened. | ||
It show the available -Library- forms for the application named <appName> " | ||
| apiOperation | | ||
|
||
<get> | ||
<produces: 'application/xml'> | ||
<path: '/custom/{1}/builder/toolbox?application={1}&form={2}'> | ||
|
||
apiOperation := OrbeonGetToolboxApi new. | ||
apiOperation appName: appName; | ||
headerValue: (self requestContext request headerAt: 'orbeon-form-definition-version'); | ||
| apiOperation | | ||
apiOperation := OrbeonGetToolboxApi newOn: self systemRoot. | ||
apiOperation | ||
appName: appName; | ||
headerValue: (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'). | ||
|
||
setUserCredentialsFrom: (self requestContext request | ||
headerAt: 'orbeon-credentials'). | ||
^apiOperation doItIfNotFound: [self noRouteFound: self requestContext] |
12 changes: 6 additions & 6 deletions
12
...rbeonPersistenceApi.package/WAPersistenceOrbeonLayer.class/instance/reindexOrbeonForms.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,14 +1,14 @@ | ||
service-get | ||
reindexOrbeonForms | ||
"This service is called when a user click on ReIndex Database" | ||
| apiOperation | | ||
|
||
<get> | ||
<path: '/reindex'> | ||
|
||
apiOperation := OrbeonReIndexDatabaseApi new. | ||
apiOperation | ||
| apiOperation | | ||
apiOperation := OrbeonReIndexDatabaseApi newOn: self systemRoot. | ||
apiOperation | ||
group: (self requestContext request headerAt: 'orbeon-group'); | ||
user: (self requestContext request headerAt: 'orbeon-username'); | ||
setUserCredentialsFrom: (self requestContext request headerAt: 'orbeon-credentials'). | ||
|
||
setUserCredentialsFrom: (self requestContext request | ||
headerAt: 'orbeon-credentials'). | ||
^apiOperation doIt |
18 changes: 9 additions & 9 deletions
18
...ceApi.package/WAPersistenceOrbeonLayer.class/instance/sendFileForCustomPDF.app.fileId..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,20 +1,20 @@ | ||
service-get | ||
sendFileForCustomPDF: formName app: app fileId: fileId | ||
sendFileForCustomPDF: formName app: app fileId: fileId | ||
"This service is called when Orbeon requires a Custom PDF of a form or the Form Instance has any attachments and the user has clicked -Send-" | ||
| apiOperation | | ||
|
||
<get> | ||
<produces: 'application/octet-stream'> | ||
<path: '/crud/{2}/{1}/form/{3}'> | ||
|
||
apiOperation := OrbeonSendCustomPdfFileApi new. | ||
apiOperation | ||
| apiOperation | | ||
apiOperation := OrbeonSendCustomPdfFileApi newOn: self systemRoot. | ||
apiOperation | ||
fileId: fileId; | ||
appName: app; | ||
formName: formName; | ||
group: (self requestContext request headerAt: 'orbeon-group'); | ||
user: (self requestContext request headerAt: 'orbeon-username'); | ||
setUserCredentialsFrom: (self requestContext request headerAt: 'orbeon-credentials'). | ||
|
||
self requestContext response contentType: WAMimeType applicationOctetStream. | ||
|
||
setUserCredentialsFrom: (self requestContext request | ||
headerAt: 'orbeon-credentials'). | ||
self requestContext response | ||
contentType: WAMimeType applicationOctetStream. | ||
^apiOperation doIt |
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.