mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merge remote-tracking branch 'origin/release/V2.3' into merge-2.4/Merge231AfterReleaseIn24
# Conflicts: # rm-automation/src/main/java/org/alfresco/po/common/util/Utils.java # rm-automation/src/main/java/org/alfresco/po/rm/disposition/edit/steps/EditDispositionSchedulePage.java # rm-automation/src/main/java/org/alfresco/po/share/rules/RuleActions.java # rm-automation/src/test/java/org/alfresco/test/TestData.java # rm-automation/src/test/java/org/alfresco/test/coreTests/level2/addRelationship/AddRelationship.java # rm-automation/src/test/java/org/alfresco/test/coreTests/level2/audit/AuditAccess.java # rm-automation/src/test/java/org/alfresco/test/coreTests/level2/disposition_schedule/FoldersDispositionSchedule.java # rm-automation/src/test/java/org/alfresco/test/coreTests/level2/node_browser/NodeBrowser.java # rm-automation/src/test/java/org/alfresco/test/coreTests/level2/rules/CopyToRuleOnFolders.java # rm-automation/src/test/java/org/alfresco/test/coreTests/level2/rules/FileToRuleAppliedOnUnfiledRecords.java # rm-automation/src/test/java/org/alfresco/test/coreTests/level2/rules/LinkToRuleOnFolders.java # rm-automation/src/test/java/org/alfresco/test/coreTests/level2/rules/MoveToRuleOnFolders.java # rm-automation/src/test/java/org/alfresco/test/coreTests/level2/userDashboard/AdminDashboardMyDocumentsFilter.java # rm-automation/src/test/java/org/alfresco/test/coreTests/level2/versions/RecordVersions.java # rm-automation/src/test/java/org/alfresco/test/coreTests/smoke/BasicRulesIntegration.java # rm-automation/src/test/java/org/alfresco/test/coreTests/smoke/CreateCategories.java # rm-automation/src/test/java/org/alfresco/test/coreTests/smoke/CreateElectronicRecords.java # rm-automation/src/test/java/org/alfresco/test/coreTests/smoke/CreateFolders.java # rm-automation/src/test/java/org/alfresco/test/coreTests/smoke/CreateNonElectronicRecords.java # rm-automation/src/test/java/org/alfresco/test/coreTests/smoke/DeclareInPlaceRecord.java # rm-automation/src/test/java/org/alfresco/test/coreTests/smoke/DeclareVersionAsRecord.java # rm-automation/src/test/java/org/alfresco/test/coreTests/smoke/FileUnfiledRecords.java # rm-automation/src/test/java/org/alfresco/test/coreTests/smoke/RecordsDispositionSchedule.java # rm-automation/src/test/java/org/alfresco/test/coreTests/smoke/RecordsDispositionScheduleWithGhosting.java # rm-automation/src/test/java/org/alfresco/test/coreTests/smoke/RejectRecord.java # rm-automation/src/test/java/org/alfresco/test/coreTests/smoke/SearchRecords.java # rm-automation/src/test/java/org/alfresco/test/integration/level2/audit/AuditAccess.java # rm-automation/src/test/java/org/alfresco/test/integration/level2/disposition_schedule/DispositionScheduleLinkedRecords.java # rm-automation/src/test/java/org/alfresco/test/integration/level2/disposition_schedule/FoldersDispositionSchedule.java # rm-automation/src/test/java/org/alfresco/test/integration/level2/node_browser/NodeBrowser.java # rm-automation/src/test/java/org/alfresco/test/integration/level2/rules/CopyToRuleOnFolders.java # rm-automation/src/test/java/org/alfresco/test/integration/level2/rules/FileToRuleAppliedOnUnfiledRecords.java # rm-automation/src/test/java/org/alfresco/test/integration/level2/rules/LinkToRuleOnFolders.java # rm-automation/src/test/java/org/alfresco/test/integration/level2/rules/MoveToRuleOnFolders.java # rm-automation/src/test/java/org/alfresco/test/integration/level2/rules/RulesAppliedOnWholeFilePlan.java # rm-automation/src/test/java/org/alfresco/test/integration/level2/rules/SetPropertyValueCollSiteAndFilePlan.java # rm-automation/src/test/java/org/alfresco/test/integration/level2/userDashboard/AdminDashboardMyDocumentsFilter.java # rm-automation/src/test/java/org/alfresco/test/integration/smoke/CreateCategories.java # rm-automation/src/test/java/org/alfresco/test/integration/smoke/DeclareVersionAsRecord.java # rm-automation/src/test/java/org/alfresco/test/integration/smoke/RecordsDispositionSchedule.java # rm-automation/src/test/java/org/alfresco/test/integration/smoke/RecordsDispositionScheduleWithGhosting.java # rm-automation/src/test/java/org/alfresco/test/integration/smoke/RejectRecord.java # rm-automation/src/test/resources/coreTests.xml # rm-automation/src/test/resources/testng.xml
This commit is contained in:
@@ -40,7 +40,7 @@ import org.alfresco.service.namespace.QName;
|
||||
*/
|
||||
public final class RecordsManagementAuditQueryParameters
|
||||
{
|
||||
private int maxEntries = -1;
|
||||
private int maxEntries = Integer.MAX_VALUE;
|
||||
private String user;
|
||||
private NodeRef nodeRef;
|
||||
private Date dateFrom;
|
||||
|
@@ -519,48 +519,45 @@ public class RecordsManagementSearchBehaviour implements RecordsManagementModel
|
||||
*/
|
||||
private void updateDispositionActionProperties(NodeRef record, NodeRef dispositionAction)
|
||||
{
|
||||
if (!methodCached("updateDispositionActionProperties", record))
|
||||
Map<QName, Serializable> props = nodeService.getProperties(record);
|
||||
|
||||
DispositionAction da = new DispositionActionImpl(recordsManagementServiceRegistry, dispositionAction);
|
||||
|
||||
props.put(PROP_RS_DISPOSITION_ACTION_NAME, da.getName());
|
||||
props.put(PROP_RS_DISPOSITION_ACTION_AS_OF, da.getAsOfDate());
|
||||
props.put(PROP_RS_DISPOSITION_EVENTS_ELIGIBLE, nodeService.getProperty(dispositionAction, PROP_DISPOSITION_EVENTS_ELIGIBLE));
|
||||
|
||||
DispositionActionDefinition daDefinition = da.getDispositionActionDefinition();
|
||||
if (daDefinition != null)
|
||||
{
|
||||
Map<QName, Serializable> props = nodeService.getProperties(record);
|
||||
|
||||
DispositionAction da = new DispositionActionImpl(recordsManagementServiceRegistry, dispositionAction);
|
||||
|
||||
props.put(PROP_RS_DISPOSITION_ACTION_NAME, da.getName());
|
||||
props.put(PROP_RS_DISPOSITION_ACTION_AS_OF, da.getAsOfDate());
|
||||
props.put(PROP_RS_DISPOSITION_EVENTS_ELIGIBLE, nodeService.getProperty(dispositionAction, PROP_DISPOSITION_EVENTS_ELIGIBLE));
|
||||
|
||||
DispositionActionDefinition daDefinition = da.getDispositionActionDefinition();
|
||||
if (daDefinition != null)
|
||||
Period period = daDefinition.getPeriod();
|
||||
if (period != null)
|
||||
{
|
||||
Period period = daDefinition.getPeriod();
|
||||
if (period != null)
|
||||
{
|
||||
props.put(PROP_RS_DISPOSITION_PERIOD, period.getPeriodType());
|
||||
props.put(PROP_RS_DISPOSITION_PERIOD_EXPRESSION, period.getExpression());
|
||||
}
|
||||
else
|
||||
{
|
||||
props.put(PROP_RS_DISPOSITION_PERIOD, null);
|
||||
props.put(PROP_RS_DISPOSITION_PERIOD_EXPRESSION, null);
|
||||
}
|
||||
props.put(PROP_RS_DISPOSITION_PERIOD, period.getPeriodType());
|
||||
props.put(PROP_RS_DISPOSITION_PERIOD_EXPRESSION, period.getExpression());
|
||||
}
|
||||
|
||||
nodeService.setProperties(record, props);
|
||||
|
||||
if (logger.isDebugEnabled())
|
||||
else
|
||||
{
|
||||
logger.debug("Set rma:recordSearchDispositionActionName for node " + record + " to: " +
|
||||
props.get(PROP_RS_DISPOSITION_ACTION_NAME));
|
||||
logger.debug("Set rma:recordSearchDispositionActionAsOf for node " + record + " to: " +
|
||||
props.get(PROP_RS_DISPOSITION_ACTION_AS_OF));
|
||||
logger.debug("Set rma:recordSearchDispositionEventsEligible for node " + record + " to: " +
|
||||
props.get(PROP_RS_DISPOSITION_EVENTS_ELIGIBLE));
|
||||
logger.debug("Set rma:recordSearchDispositionPeriod for node " + record + " to: " +
|
||||
props.get(PROP_RS_DISPOSITION_PERIOD));
|
||||
logger.debug("Set rma:recordSearchDispositionPeriodExpression for node " + record + " to: " +
|
||||
props.get(PROP_RS_DISPOSITION_PERIOD_EXPRESSION));
|
||||
props.put(PROP_RS_DISPOSITION_PERIOD, null);
|
||||
props.put(PROP_RS_DISPOSITION_PERIOD_EXPRESSION, null);
|
||||
}
|
||||
}
|
||||
|
||||
nodeService.setProperties(record, props);
|
||||
|
||||
if (logger.isDebugEnabled())
|
||||
{
|
||||
logger.debug("Set rma:recordSearchDispositionActionName for node " + record + " to: " +
|
||||
props.get(PROP_RS_DISPOSITION_ACTION_NAME));
|
||||
logger.debug("Set rma:recordSearchDispositionActionAsOf for node " + record + " to: " +
|
||||
props.get(PROP_RS_DISPOSITION_ACTION_AS_OF));
|
||||
logger.debug("Set rma:recordSearchDispositionEventsEligible for node " + record + " to: " +
|
||||
props.get(PROP_RS_DISPOSITION_EVENTS_ELIGIBLE));
|
||||
logger.debug("Set rma:recordSearchDispositionPeriod for node " + record + " to: " +
|
||||
props.get(PROP_RS_DISPOSITION_PERIOD));
|
||||
logger.debug("Set rma:recordSearchDispositionPeriodExpression for node " + record + " to: " +
|
||||
props.get(PROP_RS_DISPOSITION_PERIOD_EXPRESSION));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user