-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/4.11.0' into main
- Loading branch information
Showing
275 changed files
with
9,275 additions
and
1,238 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
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
42 changes: 42 additions & 0 deletions
42
...vy/uk/ac/ox/softeng/maurodatamapper/search/bridge/spi/OffsetDateTimeBridgeProvider.groovy
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,42 @@ | ||
/* | ||
* Copyright 2020 University of Oxford and Health and Social Care Information Centre, also known as NHS Digital | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
package uk.ac.ox.softeng.maurodatamapper.search.bridge.spi | ||
|
||
|
||
import uk.ac.ox.softeng.maurodatamapper.search.bridge.OffsetDateTimeBridge | ||
import uk.ac.ox.softeng.maurodatamapper.util.Utils | ||
|
||
import org.hibernate.search.bridge.FieldBridge | ||
import org.hibernate.search.bridge.spi.BridgeProvider | ||
import org.hibernate.search.bridge.util.impl.String2FieldBridgeAdaptor | ||
|
||
import java.time.OffsetDateTime | ||
|
||
/** | ||
* @since 13/09/2021 | ||
*/ | ||
class OffsetDateTimeBridgeProvider implements BridgeProvider { | ||
@Override | ||
FieldBridge provideFieldBridge(BridgeProviderContext bridgeProviderContext) { | ||
if ( | ||
bridgeProviderContext.returnType.simpleName == OffsetDateTime.simpleName && Utils.parentClassIsAssignableFromChild(OffsetDateTime, bridgeProviderContext.returnType)) { | ||
return new String2FieldBridgeAdaptor(new OffsetDateTimeBridge()) | ||
} | ||
null | ||
} | ||
} |
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
48 changes: 48 additions & 0 deletions
48
...mmon/src/main/groovy/uk/ac/ox/softeng/maurodatamapper/security/basic/AnonymousUser.groovy
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,48 @@ | ||
/* | ||
* Copyright 2020 University of Oxford and Health and Social Care Information Centre, also known as NHS Digital | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
package uk.ac.ox.softeng.maurodatamapper.security.basic | ||
|
||
import uk.ac.ox.softeng.maurodatamapper.security.User | ||
|
||
/** | ||
* @since 21/10/2019 | ||
*/ | ||
@Singleton | ||
class AnonymousUser implements User { | ||
|
||
public static final String ANONYMOUS_EMAIL_ADDRESS = '[email protected]' | ||
|
||
String emailAddress = ANONYMOUS_EMAIL_ADDRESS | ||
String firstName = 'Anonymous' | ||
String lastName = 'User' | ||
String tempPassword | ||
|
||
@Override | ||
UUID getId() { | ||
UUID.randomUUID() | ||
} | ||
|
||
UUID ident() { | ||
id | ||
} | ||
|
||
@Override | ||
String getDomainType() { | ||
AnonymousUser | ||
} | ||
} |
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
1 change: 1 addition & 0 deletions
1
...ommon/src/main/resources/META-INF/services/org.hibernate.search.bridge.spi.BridgeProvider
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 @@ | ||
uk.ac.ox.softeng.maurodatamapper.search.bridge.spi.OffsetDateTimeBridgeProvider |
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
5 changes: 5 additions & 0 deletions
5
mdm-core/grails-app/conf/db/migration/core/V2_11_0__allow_emails_to_not_have_a_provider.sql
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 @@ | ||
ALTER TABLE core.email | ||
ALTER COLUMN email_service_used DROP NOT NULL; | ||
|
||
ALTER TABLE core.email | ||
ALTER COLUMN date_time_sent DROP NOT NULL; |
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 |
---|---|---|
|
@@ -21,13 +21,16 @@ maurodatamapper: | |
public: false | ||
bootstrap: | ||
authority: true | ||
email: | ||
from: | ||
address: '' | ||
--- | ||
simplejavamail: | ||
smtp: | ||
username: [email protected] | ||
password: password | ||
host: smtp.gmail.com | ||
port: 587 | ||
username: '' | ||
password: '' | ||
host: '' | ||
port: '' | ||
transportstrategy: SMTP_TLS | ||
javaxmail.debug: false | ||
--- | ||
|
@@ -98,10 +101,18 @@ hibernate: | |
batch_size: 30 | ||
order_inserts: true | ||
order_updates: true | ||
|
||
grails: | ||
plugins: | ||
hibernatesearch: | ||
rebuildIndexOnStart: true | ||
environments: | ||
development: | ||
grails: | ||
views: | ||
markup: | ||
cacheTemplates: false | ||
cacheTemplates: false | ||
production: | ||
grails: | ||
plugins: | ||
hibernatesearch: | ||
rebuildIndexOnStart: false |
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
Oops, something went wrong.