-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task nxp 32775 retention align 2025 #184
base: lts-2025
Are you sure you want to change the base?
Conversation
1724a54
to
c24c3b4
Compare
c24c3b4
to
a4c37f0
Compare
<dependency> | ||
<groupId>org.nuxeo.ecm.platform</groupId> | ||
<artifactId>nuxeo-search-core</artifactId> | ||
<scope>test</scope> | ||
</dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For information, this is a transitive dependency of nuxeo-platform-query-api which is already in the compile scope.
@@ -132,7 +132,7 @@ public void saveRetainUntil(Calendar retainUntil) { | |||
} | |||
|
|||
public void setRule(RetentionRule rule, CoreSession session) { | |||
setRuleIds(Arrays.asList(rule.getDocument().getId())); | |||
setRuleIds(Collections.singletonList(rule.getDocument().getId())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setRuleIds(Collections.singletonList(rule.getDocument().getId())); | |
setRuleIds(List.of(rule.getDocument().getId())); |
LogEntry entry = LogEntry.builder(name, new Date()) | ||
.category(RetentionConstants.EVENT_CATEGORY) | ||
.principalName(session.getPrincipal().getName()) | ||
.comment(evctx.getInput()) | ||
.build(); | ||
Framework.getService(AuditBackend.class).addLogEntries(Collections.singletonList(entry)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a good idea (for all Nuxeo versions), this should be done by the audit itself by contributing to `"org.nuxeo.audit.service.AuditComponent#event".
@Deploy("org.nuxeo.retention.core:OSGI-INF/retention-core-types.xml") | ||
@Deploy("org.nuxeo.retention.core:OSGI-INF/retention-adapters.xml") | ||
@Deploy("org.nuxeo.retention.core:OSGI-INF/retention-vocabularies.xml") | ||
@Deploy("org.nuxeo.retention.core:OSGI-INF/retention-content-template.xml") | ||
@Deploy("org.nuxeo.retention.core:OSGI-INF/retention-service-framework.xml") | ||
@Deploy("org.nuxeo.retention.core:OSGI-INF/retention-listeners.xml") | ||
@Deploy("org.nuxeo.retention.core:OSGI-INF/retention-operations.xml") | ||
@Deploy("org.nuxeo.retention.core:OSGI-INF/retention-actions.xml") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not just @Deploy("org.nuxeo.retention.core")
?
No description provided.