Skip to content

Commit cc469fa

Browse files
committed
Updated the SIF3 Framework to use the final approved version of the SIF AU 3.4.1 Data Model.
1 parent 50e71dc commit cc469fa

21 files changed

Lines changed: 605 additions & 584 deletions

File tree

Code/Sif3FrameworkDemo/Sif.Framework.Demo.Au.Consumer/Models/StudentPersonal.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016 Systemic Pty Ltd
2+
* Copyright 2017 Systemic Pty Ltd
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,8 +21,8 @@
2121
namespace Sif.Framework.Demo.Au.Consumer.Models
2222
{
2323

24-
[XmlRoot("StudentPersonal", Namespace = "http://www.sifassociation.org/au/datamodel/3.4", IsNullable = false)]
25-
[XmlType(Namespace = "http://www.sifassociation.org/au/datamodel/3.4")]
24+
[XmlRoot("StudentPersonal", Namespace = "http://www.sifassociation.org/datamodel/au/3.4", IsNullable = false)]
25+
[XmlType(Namespace = "http://www.sifassociation.org/datamodel/au/3.4")]
2626
public class StudentPersonal : StudentPersonalType, IDataModel
2727
{
2828
}

Code/Sif3FrameworkDemo/Sif.Framework.Demo.Au.Consumer/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("3.2.1.0")]
36-
[assembly: AssemblyFileVersion("3.2.1.0")]
35+
[assembly: AssemblyVersion("3.2.1.1")]
36+
[assembly: AssemblyFileVersion("3.2.1.1")]
3737

3838
// Configure log4net using the .config file
3939
[assembly: log4net.Config.XmlConfigurator(Watch = true)]

Code/Sif3FrameworkDemo/Sif.Framework.Demo.Au.Consumer/SifFramework.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<add key="consumer.environment.template.applicationKey" value="Sif3DemoApp"/>
1414
<add key="consumer.environment.template.authenticationMethod" value="SIF_HMACSHA256"/>
1515
<add key="consumer.environment.template.consumerName" value="DemoConsumer"/>
16-
<add key="consumer.environment.template.dataModelNamespace" value="http://www.sifassociation.org/au/datamodel/3.4"/>
16+
<add key="consumer.environment.template.dataModelNamespace" value="http://www.sifassociation.org/datamodel/au/3.4"/>
1717
<add key="consumer.environment.template.solutionId" value="Sif3Framework"/>
1818
<add key="consumer.environment.template.supportedInfrastructureVersion" value="3.2"/>
1919
<add key="consumer.paging.navigationPageSize" value="5"/>

Code/Sif3FrameworkDemo/Sif.Framework.Demo.Au.Provider/Models/SchoolInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016 Systemic Pty Ltd
2+
* Copyright 2017 Systemic Pty Ltd
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,8 +21,8 @@
2121
namespace Sif.Framework.Demo.Au.Provider.Models
2222
{
2323

24-
[XmlRoot("SchoolInfo", Namespace = "http://www.sifassociation.org/au/datamodel/3.4", IsNullable = false)]
25-
[XmlType(Namespace = "http://www.sifassociation.org/au/datamodel/3.4")]
24+
[XmlRoot("SchoolInfo", Namespace = "http://www.sifassociation.org/datamodel/au/3.4", IsNullable = false)]
25+
[XmlType(Namespace = "http://www.sifassociation.org/datamodel/au/3.4")]
2626
public class SchoolInfo : SchoolInfoType, IDataModel
2727
{
2828
}

Code/Sif3FrameworkDemo/Sif.Framework.Demo.Au.Provider/Models/StudentPersonal.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016 Systemic Pty Ltd
2+
* Copyright 2017 Systemic Pty Ltd
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,8 +21,8 @@
2121
namespace Sif.Framework.Demo.Au.Provider.Models
2222
{
2323

24-
[XmlRoot("StudentPersonal", Namespace = "http://www.sifassociation.org/au/datamodel/3.4", IsNullable = false)]
25-
[XmlType(Namespace = "http://www.sifassociation.org/au/datamodel/3.4")]
24+
[XmlRoot("StudentPersonal", Namespace = "http://www.sifassociation.org/datamodel/au/3.4", IsNullable = false)]
25+
[XmlType(Namespace = "http://www.sifassociation.org/datamodel/au/3.4")]
2626
public class StudentPersonal : StudentPersonalType, IDataModel
2727
{
2828
}

Code/Sif3FrameworkDemo/Sif.Framework.Demo.Au.Provider/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
//
3232
// You can specify all the values or you can default the Revision and Build Numbers
3333
// by using the '*' as shown below:
34-
[assembly: AssemblyVersion("3.2.1.0")]
35-
[assembly: AssemblyFileVersion("3.2.1.0")]
34+
[assembly: AssemblyVersion("3.2.1.1")]
35+
[assembly: AssemblyFileVersion("3.2.1.1")]

Code/Sif3FrameworkDemo/Sif.Framework.Demo.Au.Provider/SifFramework.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<add key="provider.environment.template.applicationKey" value="Sif3DemoApp"/>
1414
<add key="provider.environment.template.authenticationMethod" value="Basic"/>
1515
<add key="provider.environment.template.consumerName" value="DemoProvider"/>
16-
<add key="provider.environment.template.dataModelNamespace" value="http://www.sifassociation.org/au/datamodel/3.4"/>
16+
<add key="provider.environment.template.dataModelNamespace" value="http://www.sifassociation.org/datamodel/au/3.4"/>
1717
<add key="provider.environment.template.supportedInfrastructureVersion" value="3.2"/>
1818
</appSettings>
1919
<sifFramework>

Code/Sif3FrameworkDemo/Sif.Framework.Demo.Hits.Consumer/ConsumerApp.cs

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016 Systemic Pty Ltd
2+
* Copyright 2017 Systemic Pty Ltd
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -51,12 +51,17 @@ void RunSchoolInfoConsumer()
5151
// Query all schools.
5252
IEnumerable<SchoolInfo> allSchools = schoolInfoConsumer.Query();
5353

54-
foreach (SchoolInfo school in allSchools)
54+
if (log.IsInfoEnabled) log.Info("School count is " + (allSchools == null ? 0 : allSchools.Count()));
55+
56+
if (allSchools != null)
5557
{
56-
if (log.IsInfoEnabled) log.Info("School " + school.SchoolName + " has a RefId of " + school.RefId + ".");
57-
}
5858

59-
if (log.IsInfoEnabled) log.Info("School count is " + allSchools.Count());
59+
foreach (SchoolInfo school in allSchools)
60+
{
61+
if (log.IsInfoEnabled) log.Info("School " + school.SchoolName + " has a RefId of " + school.RefId + ".");
62+
}
63+
64+
}
6065

6166
// Create multiple schools.
6267
MultipleCreateResponse createResponse = schoolInfoConsumer.Create(CreateSchools());
@@ -130,12 +135,18 @@ void RunStaffPersonalConsumer()
130135
conditions.Add(condition);
131136
IEnumerable<StaffPersonal> staffPersonals = staffPersonalConsumer.QueryByServicePath(conditions);
132137

133-
foreach (StaffPersonal staffPersonal in staffPersonals)
138+
if (log.IsInfoEnabled) log.Info("Staff count is " + (staffPersonals == null ? 0 : staffPersonals.Count()));
139+
140+
if (staffPersonals != null)
134141
{
135-
if (log.IsInfoEnabled) log.Info("Staff name is " + staffPersonal.PersonInfo.Name.GivenName + " " + staffPersonal.PersonInfo.Name.FamilyName);
142+
143+
foreach (StaffPersonal staffPersonal in staffPersonals)
144+
{
145+
if (log.IsInfoEnabled) log.Info("Staff name is " + staffPersonal.PersonInfo.Name.GivenName + " " + staffPersonal.PersonInfo.Name.FamilyName);
146+
}
147+
136148
}
137149

138-
if (log.IsInfoEnabled) log.Info("Staff count is " + staffPersonals.Count());
139150
}
140151
finally
141152
{

Code/Sif3FrameworkDemo/Sif.Framework.Demo.Hits.Consumer/Models/SchoolInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016 Systemic Pty Ltd
2+
* Copyright 2017 Systemic Pty Ltd
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,8 +21,8 @@
2121
namespace Sif.Framework.Demo.Hits.Consumer.Models
2222
{
2323

24-
[XmlRoot("SchoolInfo", Namespace = "http://www.sifassociation.org/au/datamodel/3.4", IsNullable = false)]
25-
[XmlType(Namespace = "http://www.sifassociation.org/au/datamodel/3.4")]
24+
[XmlRoot("SchoolInfo", Namespace = "http://www.sifassociation.org/datamodel/au/3.4", IsNullable = false)]
25+
[XmlType(Namespace = "http://www.sifassociation.org/datamodel/au/3.4")]
2626
public class SchoolInfo : SchoolInfoType, IDataModel
2727
{
2828
}

Code/Sif3FrameworkDemo/Sif.Framework.Demo.Hits.Consumer/Models/StaffPersonal.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016 Systemic Pty Ltd
2+
* Copyright 2017 Systemic Pty Ltd
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,8 +21,8 @@
2121
namespace Sif.Framework.Demo.Hits.Consumer.Models
2222
{
2323

24-
[XmlRoot("StaffPersonal", Namespace = "http://www.sifassociation.org/au/datamodel/3.4", IsNullable = false)]
25-
[XmlType(Namespace = "http://www.sifassociation.org/au/datamodel/3.4")]
24+
[XmlRoot("StaffPersonal", Namespace = "http://www.sifassociation.org/datamodel/au/3.4", IsNullable = false)]
25+
[XmlType(Namespace = "http://www.sifassociation.org/datamodel/au/3.4")]
2626
public class StaffPersonal : StaffPersonalType, IDataModel
2727
{
2828
}

0 commit comments

Comments
 (0)