Skip to content

Commit

Permalink
update 30 to fix issue #423
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobuzzi committed Jul 30, 2021
1 parent 18af96a commit c77a09c
Show file tree
Hide file tree
Showing 36 changed files with 76 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"doIt" : "brunobb 07/22/2021 13:20",
"generateXmlNodeForFormBuilderVersionList:with:" : "brunobb 04/22/2021 10:17",
"generateXmlWithAllFormDefinitionsIn:" : "brunobb 04/22/2021 09:52",
"generateXmlWithLatestFormDefinitionVersionIn:" : "brunobb 04/22/2021 09:50" } }
"generateXmlWithLatestFormDefinitionVersionIn:" : "brunobb 07/29/2021 14:29" } }
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
other
doIt

summary := OrbeonFormDefinitionsSummary
newFor: user
summary := OrbeonFormDefinitionsSummary newOn: systemRoot
for: user
group: group
credentials: userCredentials
pageSize: pageSize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"class" : {
"newOn:withXml:" : "brunobb 06/04/2021 14:08" },
"instance" : {
"doIt" : "brunobb 06/05/2020 19:54",
"doIt" : "brunobb 07/27/2021 12:27",
"generateXmlAnswerForBuilderSummary" : "BrunoBB 12/30/2016 03:27",
"generateXmlNodeForAllDefinitionWith:" : "brunobb 02/19/2021 13:39",
"generateXmlNodeForDefinition:with:" : "BrunoBB 12/30/2016 04:13",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
other
createOrbeonSavedDefinition

^self defaultSavedFormDefinitionClass newNamed: self getFormName inAppNamed: self getApplicationName
^self defaultSavedFormDefinitionClass newNamed: self getFormName in: (systemRoot getExistingApplicationOrCreateNewNamed: self getApplicationName)
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
},
"instance" : {
"createAndStoreSavedDefinitionOnApplication" : "brunobb 03/25/2021 14:35",
"createOrbeonSavedDefinition" : "brunobb 04/27/2021 13:10",
"createOrbeonSavedDefinition" : "brunobb 07/27/2021 11:57",
"ifRequiredUpdateForm" : "brunobb 07/22/2021 13:12",
"initialize" : "brunobb 02/15/2018 13:03",
"isCreationRejectedFor:" : "brunobb 06/26/2020 13:55",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ createPublishedDefinition
"The receiver create a new definition <anOrbeonFormDefinition> named <formName> in application <anOrbeonApplication> with id <id>"
| anOrbeonPublishedDefinition |

anOrbeonPublishedDefinition := self defaultPublishedFormDefinitionClass newNamed: self getFormName inAppNamed: self getApplicationName.
anOrbeonPublishedDefinition := self defaultPublishedFormDefinitionClass newNamed: self getFormName in: (systemRoot getExistingApplicationOrCreateNewNamed: self getApplicationName).
anOrbeonPublishedDefinition associateSavedAndPublishedForms.

^anOrbeonPublishedDefinition "new definition to be published"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"class" : {
},
"instance" : {
"createPublishedDefinition" : "brunobb 04/27/2021 14:48",
"createPublishedDefinition" : "brunobb 07/27/2021 11:58",
"doItIfNotFound:" : "brunobb 07/22/2021 13:29",
"headerVersion" : "brunobb 02/15/2018 13:07",
"headerVersion:" : "brunobb 02/15/2018 13:07",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
other
doIt
| savedDefinition |
| savedDefinition builder |

savedDefinition := self defaultSavedFormDefinitionClass new.
builder := systemRoot newFormBuilderFor: xmlString.
appName := builder getApplicationName.
formName := builder getFormName.

savedDefinition := self defaultSavedFormDefinitionClass newNamed: formName in: (systemRoot getExistingApplicationOrCreateNewNamed: appName).

savedDefinition xmlString: xmlString;
id: id;
setMetadata; "set: application, formName, title, description"
setTitleAndDescriptionWith: builder;
version: 1; "when a form is duplicate it always start at version 1"
updateLastModifiedTime.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"class" : {
},
"instance" : {
"doIt" : "brunobb 04/27/2021 13:08" } }
"doIt" : "brunobb 07/28/2021 14:16" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
other
newOn: anOrbeonSystemRoot for: user group: group credentials: credentials pageSize: pageSize pageNumber: pageNumber xmlQuery: xmlDocument

^self new setRoot: anOrbeonSystemRoot user: user group: group credentials: credentials pageSize: pageSize pageNumber: pageNumber xmlQuery: xmlDocument
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ streams building
buildStreamFormDefinitions
| allSavedDefinitions |

allSavedDefinitions := self systemRoot getAllSavedDefinitions.
allSavedDefinitions := systemRoot getAllSavedDefinitions.

summaryStream fetchFormDefinitionsOn: allSavedDefinitions from: self pageFrom to: self pageTo
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
private
setRoot: anOrbeonSystemRoot user: username group: groupname credentials: credentials pageSize: pSize pageNumber: pNumber xmlQuery: xmlDocument

returnedFormsSize := 0.
totalFormsSize := 0.
summaryStream := OrbeonSummaryStream newOn: self.

systemRoot := anOrbeonSystemRoot.
user := username.
group := groupname.
userCredentials := credentials.
pageSize := pSize.
pageNumber := pNumber.
xmlQuery := xmlDocument
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"class" : {
},
"newOn:for:group:credentials:pageSize:pageNumber:xmlQuery:" : "brunobb 07/27/2021 12:25" },
"instance" : {
"buildStreamFormDefinitions" : "brunobb 07/22/2021 13:18",
"buildStreamFormDefinitions" : "brunobb 07/27/2021 12:28",
"buildStreams" : "brunobb 06/05/2020 19:58",
"selectFormsDefinitionsFrom:" : "brunobb 11/24/2020 12:38" } }
"selectFormsDefinitionsFrom:" : "brunobb 11/24/2020 12:38",
"setRoot:user:group:credentials:pageSize:pageNumber:xmlQuery:" : "brunobb 07/27/2021 12:26" } }
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
],
"commentStamp" : "",
"instvars" : [
"definitionsReadStream" ],
"definitionsReadStream",
"systemRoot" ],
"name" : "OrbeonFormDefinitionsSummary",
"pools" : [
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
instance creation
newOn: anOrbeonSystemRoot

^self new setRoot: anOrbeonSystemRoot
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ getDefinitionUsedAttachmentIDs

allAttachmentIds := Dictionary new.

self getOrbeonApplicationClass doInCache: [:eachApp |
root doInCache: [:eachApp |
eachApp definitionsRegistryKeysAndValuesDo: [:formName :registry |

registry currentVersionsDo: [:eachDef |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ getInstanceDefinitionUsedAttachmentIDs

allAttachmentIds := Dictionary new.

self getOrbeonApplicationClass doInCache: [:eachApp |
root doInCache: [:eachApp |
eachApp definitionsRegistryKeysAndValuesDo: [:formName :registry |

registry savedDefinitionsDo: [:eachInstDef |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ getInstancesUsedAttachmentIDs

allAttachmentIds := Dictionary new.

self getOrbeonApplicationClass doInCache: [:eachApp |
root doInCache: [:eachApp |
eachApp definitionsRegistryKeysAndValuesDo: [:formName :registry |

registry currentVersionsDo: [:eachDef |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ physicallyRemoveFormInstances
"This is a Time and Resource consuming Operation"
"Remove all FormInstances where <deleted> is 'Y' "

(self getOrbeonApplicationClass getAllInstances select: [:each | each deleted = 'Y']) do: [:each |
(root getAllInstances select: [:each | each deleted = 'Y']) do: [:each |
each definition removeInstance: each]
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ physicallyRemovePublishedForms
"This is a Time and Resource consuming Operation"
"Remove all FormDefinitions where <deleted> is 'Y' "

(self getOrbeonApplicationClass getAllFormDefinitions select: [:each | each deleted = 'Y']) do: [:each |
(root getAllFormDefinitions select: [:each | each deleted = 'Y']) do: [:each |
each getApplication removeDefinition: each]
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ physicallyRemoveSavedForms
"This is a Time and Resource consuming Operation"
"Remove all FormInstanceDefinitions where <deleted> is 'Y' "

(self getOrbeonApplicationClass getAllSavedDefinitions select: [:each | each deleted = 'Y']) do: [:each |
(root getAllSavedDefinitions select: [:each | each deleted = 'Y']) do: [:each |
each getApplication removeSavedDefinition: each]
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
private
setRoot: anOrbeonSystemRoot

root := anOrbeonSystemRoot
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"class" : {
"attachmentStructureExistAt:" : "brunobb 09/10/2020 12:44",
"createEmptyAttachmentStructure" : "brunobb 06/13/2020 17:23",
"createEmptyAttachmentStructureAt:" : "brunobb 09/10/2020 12:51",
"deleteAllOSFiles" : "brunobb 06/13/2020 17:23",
"deleteAllOSFilesAt:" : "brunobb 05/29/2020 11:43",
"deleteUnusedFormInstanceOSFiles" : "BrunoBB 05/04/2016 14:52",
"deleteUnusedOSFiles:pathSelector:" : "brunobb 03/12/2020 15:05",
"deleteUnusedPublishedFormsOSFiles" : "BrunoBB 05/04/2016 14:53",
"deleteUnusedSavedFormsOSFiles" : "BrunoBB 05/04/2016 14:52",
"getDefinitionUsedAttachmentIDs" : "brunobb 08/14/2020 10:39",
"getInstanceDefinitionUsedAttachmentIDs" : "brunobb 08/14/2020 10:39",
"getInstancesUsedAttachmentIDs" : "bruno 07/17/2020 11:05",
"physicallyRemoveFormInstances" : "BrunoBB 02/08/2016 11:29",
"physicallyRemovePublishedForms" : "BrunoBB 05/04/2016 14:54",
"physicallyRemoveSavedForms" : "brunobb 07/03/2020 13:45" },
"newOn:" : "brunobb 07/22/2021 14:59" },
"instance" : {
} }
"attachmentStructureExistAt:" : "brunobb 07/22/2021 14:49",
"createEmptyAttachmentStructure" : "brunobb 07/22/2021 14:47",
"createEmptyAttachmentStructureAt:" : "brunobb 07/22/2021 14:47",
"deleteAllOSFiles" : "brunobb 07/22/2021 14:47",
"deleteAllOSFilesAt:" : "brunobb 07/22/2021 14:47",
"deleteUnusedFormInstanceOSFiles" : "brunobb 07/22/2021 14:47",
"deleteUnusedOSFiles:pathSelector:" : "brunobb 07/22/2021 14:48",
"deleteUnusedPublishedFormsOSFiles" : "brunobb 07/22/2021 14:48",
"deleteUnusedSavedFormsOSFiles" : "brunobb 07/22/2021 14:48",
"getDefinitionUsedAttachmentIDs" : "brunobb 07/22/2021 14:51",
"getInstanceDefinitionUsedAttachmentIDs" : "brunobb 07/22/2021 14:51",
"getInstancesUsedAttachmentIDs" : "brunobb 07/22/2021 14:51",
"physicallyRemoveFormInstances" : "brunobb 07/22/2021 14:54",
"physicallyRemovePublishedForms" : "brunobb 07/22/2021 14:54",
"physicallyRemoveSavedForms" : "brunobb 07/22/2021 14:54",
"setRoot:" : "brunobb 07/22/2021 14:50" } }
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
],
"commentStamp" : "",
"instvars" : [
],
"root" ],
"name" : "OrbeonMaintenanceScript",
"pools" : [
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ other
setApplicationAndFormNameFromXmlString
| reader |

reader := self defaultOrbeonFormBuilderClass for: xmlString.
reader := systemRoot newFormBuilderFor: xmlString.
appName := reader getApplicationName.
formName := reader getFormName.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"id:" : "brunobb 02/15/2018 12:44",
"parseXmlString" : "brunobb 02/15/2018 13:05",
"seasideMimeDocument" : "brunobb 02/17/2018 09:10",
"setApplicationAndFormNameFromXmlString" : "brunobb 04/16/2021 08:01",
"setApplicationAndFormNameFromXmlString" : "brunobb 07/24/2021 13:00",
"setId:" : "brunobb 06/26/2020 15:14",
"setUserCredentialsFrom:" : "brunobb 08/27/2020 12:07",
"setWorldManager:" : "brunobb 06/15/2021 10:46",
Expand Down

Large diffs are not rendered by default.

0 comments on commit c77a09c

Please sign in to comment.