-
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
55b3ea9
commit aa65651
Showing
26 changed files
with
233 additions
and
9 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
repository/Orbeon.package/OrbeonSystemRoot.class/instance/applicationNamed..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 @@ | ||
applications | ||
applicationNamed: applicationName | ||
|
||
^self applicationNamed: applicationName ifNone: ['No Applicaiton named [', applicationName, ']'] |
4 changes: 4 additions & 0 deletions
4
repository/Orbeon.package/OrbeonSystemRoot.class/instance/applicationNamed.ifNone..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 @@ | ||
applications | ||
applicationNamed: applicationName ifNone: aBlock | ||
|
||
^applications at: applicationName ifAbsent: aBlock |
4 changes: 4 additions & 0 deletions
4
repository/Orbeon.package/OrbeonSystemRoot.class/instance/doInCache..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 @@ | ||
applications | ||
doInCache: aBlock | ||
|
||
^applications do: aBlock |
9 changes: 9 additions & 0 deletions
9
repository/Orbeon.package/OrbeonSystemRoot.class/instance/formDefinitionNamed.in..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,9 @@ | ||
applications | ||
formDefinitionNamed: aString in: appName | ||
"The receiver answer an <OrbeonFormDefinition> named <aString> in OrbeonApplication named <appName>. | ||
If the form definition does not exist then answer <nil>" | ||
| app | | ||
|
||
app := self applicationNamed: appName ifNone: [^nil]. | ||
|
||
^app definitionNamed: aString |
8 changes: 8 additions & 0 deletions
8
repository/Orbeon.package/OrbeonSystemRoot.class/instance/getAllFormDefinitions.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,8 @@ | ||
charts | ||
getAllFormDefinitions | ||
| definitions | | ||
|
||
definitions := OrderedCollection new. | ||
applications do: [:application | definitions addAll: application getAllDefinitions]. | ||
|
||
^definitions |
5 changes: 5 additions & 0 deletions
5
repository/Orbeon.package/OrbeonSystemRoot.class/instance/getChartsFor..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,5 @@ | ||
charts | ||
getChartsFor: anOrbeonUser | ||
"The receiver answer a collection of <BIChartDefinition> for the user <anOrbeonUser>" | ||
|
||
^usersChartsAndDashboardRepository getChartsFor: anOrbeonUser |
15 changes: 15 additions & 0 deletions
15
....class/instance/getInstancesCreationDayDistributionQuantityFrom.to.satisfying.onError..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,15 @@ | ||
charts | ||
getInstancesCreationDayDistributionQuantityFrom: startDate to: endDate satisfying: formConditionBlock onError: errorHandler | ||
| distribution | | ||
|
||
distribution := Dictionary new. | ||
applications do: [:each | | definitionDistribution | | ||
definitionDistribution := each getInstancesCreationDayDistributionQuantityFrom: startDate to: endDate satisfying: formConditionBlock onError: errorHandler. | ||
definitionDistribution keysAndValuesDo: [:key : value | | ||
(distribution includesKey: key) | ||
ifTrue: [distribution at: key put: (distribution at: key) + value] | ||
ifFalse: [distribution at: key put: value] | ||
] | ||
]. | ||
|
||
^distribution |
15 changes: 15 additions & 0 deletions
15
...Root.class/instance/getInstancesCreationDistributionByMonthFrom.to.satisfying.onError..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,15 @@ | ||
charts | ||
getInstancesCreationDistributionByMonthFrom: startDate to: endDate satisfying: formConditionBlock onError: errorHandler | ||
| distribution | | ||
|
||
distribution := OrderPreservingDictionary new. | ||
applications do: [:each | | definitionDistribution | | ||
definitionDistribution := each getInstancesCreationDistributionByMonthFrom: startDate to: endDate satisfying: formConditionBlock onError: errorHandler. | ||
definitionDistribution keysAndValuesDo: [:key : value | | ||
(distribution includesKey: key) | ||
ifTrue: [distribution at: key put: (distribution at: key) + value] | ||
ifFalse: [distribution at: key put: value] | ||
] | ||
]. | ||
|
||
^distribution |
15 changes: 15 additions & 0 deletions
15
...ss/instance/getInstancesModificationDayDistributionQuantityFrom.to.satisfying.onError..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,15 @@ | ||
charts | ||
getInstancesModificationDayDistributionQuantityFrom: startDate to: endDate satisfying: formConditionBlock onError: errorHandler | ||
| distribution | | ||
|
||
distribution := Dictionary new. | ||
applications do: [:each | | definitionDistribution | | ||
definitionDistribution := each getInstancesModificationDayDistributionQuantityFrom: startDate to: endDate satisfying: formConditionBlock onError: errorHandler. | ||
definitionDistribution keysAndValuesDo: [:key : value | | ||
(distribution includesKey: key) | ||
ifTrue: [distribution at: key put: (distribution at: key) + value] | ||
ifFalse: [distribution at: key put: value] | ||
] | ||
]. | ||
|
||
^distribution |
15 changes: 15 additions & 0 deletions
15
....class/instance/getInstancesModificationDistributionByMonthFrom.to.satisfying.onError..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,15 @@ | ||
charts | ||
getInstancesModificationDistributionByMonthFrom: startDate to: endDate satisfying: formConditionBlock onError: errorHandler | ||
| distribution | | ||
|
||
distribution := OrderPreservingDictionary new. | ||
applications do: [:each | | definitionDistribution | | ||
definitionDistribution := each getInstancesModificationDistributionByMonthFrom: startDate to: endDate satisfying: formConditionBlock onError: errorHandler. | ||
definitionDistribution keysAndValuesDo: [:key : value | | ||
(distribution includesKey: key) | ||
ifTrue: [distribution at: key put: (distribution at: key) + value] | ||
ifFalse: [distribution at: key put: value] | ||
] | ||
]. | ||
|
||
^distribution |
10 changes: 10 additions & 0 deletions
10
...ackage/OrbeonSystemRoot.class/instance/getInstancesQuantityFrom.to.satisfying.onError..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,10 @@ | ||
charts | ||
getInstancesQuantityFrom: startDate to: endDate satisfying: formConditionBlock onError: errorHandler | ||
| distribution | | ||
|
||
distribution := Dictionary new. | ||
applications do: [:each | | ||
distribution at: each applicationName put: (each getInstancesQuantityFrom: startDate to: endDate satisfying: formConditionBlock onError: errorHandler). | ||
]. | ||
|
||
^distribution |
10 changes: 10 additions & 0 deletions
10
...lass/instance/getLastPublishedDefinitionNamed.fromApplicationNamed.withVersion.ifNone..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,10 @@ | ||
applications | ||
getLastPublishedDefinitionNamed: defName fromApplicationNamed: appName withVersion: version ifNone: aBlock | ||
"Answer the OrbeonFormDefinition named <defName> and version equal to <version> from the OrbeonApplication named <appName> if none evaluate <aBlock>" | ||
| app | | ||
|
||
app := self applicationNamed: appName ifNone: [^aBlock value]. | ||
|
||
(app hasDefinitionNamed: defName) ifFalse: [^aBlock value]. | ||
|
||
^(app getAllDefinitionsNamed: defName) detect: [:each | each version = version] ifNone: [aBlock value] |
9 changes: 9 additions & 0 deletions
9
...ry/Orbeon.package/OrbeonSystemRoot.class/instance/getLatestSavedDefinition.app.ifNone..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,9 @@ | ||
applications | ||
getLatestSavedDefinition: formName app: app ifNone: aBlock | ||
"Answer the lastest saved definition named <formName> in orbeon application named <app>. | ||
If any search fail then rise an exception" | ||
| application | | ||
|
||
application := self applicationNamed: app ifNone: [^aBlock value]. | ||
|
||
^application getLatestSavedDefinition: formName ifNone: [^aBlock value] |
4 changes: 4 additions & 0 deletions
4
repository/Orbeon.package/OrbeonSystemRoot.class/instance/hasApplicationNamed..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 @@ | ||
applications | ||
hasApplicationNamed: applicationName | ||
|
||
^applicationName includesKey: applicationName |
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
4 changes: 4 additions & 0 deletions
4
repository/Orbeon.package/OrbeonSystemRoot.class/instance/removeChart..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 @@ | ||
charts | ||
removeChart: aBIChartDefinition | ||
|
||
^usersChartsAndDashboardRepository removeChart: aBIChartDefinition |
12 changes: 12 additions & 0 deletions
12
...emRoot.class/instance/reportCreationDayDistributionQuantityFrom.to.satisfying.onError..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,12 @@ | ||
charts | ||
reportCreationDayDistributionQuantityFrom: startDate to: endDate satisfying: formConditionBlock onError: errorHandler | ||
| distribution | | ||
|
||
distribution := self getInstancesCreationDayDistributionQuantityFrom: startDate to: endDate satisfying: formConditionBlock onError: errorHandler. | ||
|
||
^(OrbeonGlobalDistributionReport distribution: distribution) | ||
name: 'Global Creation Day Distribution'; | ||
description: 'Display the number of created forms in each day of all Orbeon Application'; | ||
startDate: startDate; | ||
endDate: endDate; | ||
yourself |
12 changes: 12 additions & 0 deletions
12
...SystemRoot.class/instance/reportCreationDistributionByMonthFrom.to.satisfying.onError..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,12 @@ | ||
charts | ||
reportCreationDistributionByMonthFrom: startDate to: endDate satisfying: formConditionBlock onError: errorHandler | ||
| distribution | | ||
|
||
distribution := self getInstancesCreationDistributionByMonthFrom: startDate to: endDate satisfying: formConditionBlock onError: errorHandler. | ||
|
||
^(OrbeonGlobalDistributionReport distribution: distribution) | ||
name: 'Global Quantity Creation Distribution by Month'; | ||
description: 'Display by month the quantity of created forms in of all Orbeon Application'; | ||
startDate: startDate; | ||
endDate: endDate; | ||
yourself |
12 changes: 12 additions & 0 deletions
12
...ot.class/instance/reportModificationDayDistributionQuantityFrom.to.satisfying.onError..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,12 @@ | ||
charts | ||
reportModificationDayDistributionQuantityFrom: startDate to: endDate satisfying: formConditionBlock onError: errorHandler | ||
| distribution | | ||
|
||
distribution := self getInstancesModificationDayDistributionQuantityFrom: startDate to: endDate satisfying: formConditionBlock onError: errorHandler. | ||
|
||
^(OrbeonGlobalDistributionReport distribution: distribution) | ||
name: 'Global Modification Day Distribution'; | ||
description: 'Display the number of updated forms in each day of all Orbeon Application'; | ||
startDate: startDate; | ||
endDate: endDate; | ||
yourself |
10 changes: 10 additions & 0 deletions
10
...emRoot.class/instance/reportModificationDistributionByMonthFrom.to.satisfying.onError..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,10 @@ | ||
charts | ||
reportModificationDistributionByMonthFrom: startDate to: endDate satisfying: formConditionBlock onError: errorHandler | ||
| distribution | | ||
|
||
distribution := self getInstancesModificationDistributionByMonthFrom: startDate to: endDate satisfying: formConditionBlock onError: errorHandler. | ||
|
||
^(OrbeonGlobalDistributionReport distribution: distribution) | ||
startDate: startDate; | ||
endDate: endDate; | ||
yourself |
15 changes: 15 additions & 0 deletions
15
.../OrbeonSystemRoot.class/instance/reportQuantityDistributionFrom.to.satisfying.onError..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,15 @@ | ||
charts | ||
reportQuantityDistributionFrom: startDate to: endDate satisfying: formConditionBlock onError: errorHandler | ||
| secondsToRun distribution | | ||
|
||
secondsToRun := Time secondsElapsedTime: [distribution := self getInstancesQuantityFrom: startDate to: endDate satisfying: formConditionBlock onError: errorHandler]. | ||
|
||
^(OrbeonGlobalDistributionReport distribution: distribution) | ||
name: 'Global Quantity Distribution by Application'; | ||
description: 'Display the quantity of forms in each Orbeon Application'; | ||
xTitle: 'Orbeon Application'; | ||
yTitle: 'Form Instances'; | ||
startDate: startDate; | ||
endDate: endDate; | ||
sumSecondsToConstruct: secondsToRun; | ||
yourself |
4 changes: 4 additions & 0 deletions
4
repository/Orbeon.package/OrbeonSystemRoot.class/instance/selectInCache..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 @@ | ||
applications | ||
selectInCache: aBlock | ||
|
||
^applications select: aBlock |
4 changes: 4 additions & 0 deletions
4
repository/Orbeon.package/OrbeonSystemRoot.class/instance/storeChart..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 @@ | ||
charts | ||
storeChart: aBIChartDefinition | ||
|
||
^usersChartsAndDashboardRepository storeChart: aBIChartDefinition |
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
Large diffs are not rendered by default.
Oops, something went wrong.