mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM Bugs:
- Images not showing in search results - Undeclared saved search showing record folders - Records eligable for destruction saved search is showing already ghosted records - rma:transferring aspect added to objects being transferred - Records eligable for transfer saved search is showing transferring and transfered records - Grandle explodedDeploy target updated to copy 'web' source git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@35352 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -197,6 +197,7 @@ subprojects {
|
|||||||
if (explodedWebAppDir.exists() == true) {
|
if (explodedWebAppDir.exists() == true) {
|
||||||
|
|
||||||
// copy module properties
|
// copy module properties
|
||||||
|
// TODO but not so important for now
|
||||||
|
|
||||||
// copy jars
|
// copy jars
|
||||||
if (jarFileObj.exists()) {
|
if (jarFileObj.exists()) {
|
||||||
@@ -220,6 +221,11 @@ subprojects {
|
|||||||
|
|
||||||
// copy web
|
// copy web
|
||||||
if (sourceWebObj.exists() == true) {
|
if (sourceWebObj.exists() == true) {
|
||||||
|
copy {
|
||||||
|
from sourceWebObj
|
||||||
|
into "${explodedWebAppDir}"
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@@ -919,6 +919,11 @@
|
|||||||
</property>
|
</property>
|
||||||
</properties>
|
</properties>
|
||||||
</aspect>
|
</aspect>
|
||||||
|
|
||||||
|
<!-- Indicates that an object is being transferred -->
|
||||||
|
<aspect name="rma:transferring">
|
||||||
|
<title>TransferringS</title>
|
||||||
|
</aspect>
|
||||||
|
|
||||||
<!-- Transfered marker aspect -->
|
<!-- Transfered marker aspect -->
|
||||||
<aspect name="rma:transferred">
|
<aspect name="rma:transferred">
|
||||||
|
@@ -308,7 +308,8 @@
|
|||||||
"search" : "ISNODE:T AND NOT ASPECT:\"rma:declaredRecord\"",
|
"search" : "ISNODE:T AND NOT ASPECT:\"rma:declaredRecord\"",
|
||||||
"searchparams" :
|
"searchparams" :
|
||||||
{
|
{
|
||||||
"records" : true,
|
"records" : true,
|
||||||
|
"recordfolders" : false,
|
||||||
"undeclaredrecords" : true
|
"undeclaredrecords" : true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -325,7 +326,7 @@
|
|||||||
{
|
{
|
||||||
"name" : "Records Eligible For Transfer",
|
"name" : "Records Eligible For Transfer",
|
||||||
"description" : "All records currently eligible for transfer.",
|
"description" : "All records currently eligible for transfer.",
|
||||||
"search" : "dispositionActionName:\"transfer\" AND (dispositionEventsEligible:true OR dispositionActionAsOf:[MIN TO TODAY])",
|
"search" : "dispositionActionName:\"transfer\" AND (dispositionEventsEligible:true OR dispositionActionAsOf:[MIN TO TODAY]) AND NOT ASPECT:"rma:transferred" AND NOT ASPECT:"rma:transferring"",
|
||||||
"searchparams" :
|
"searchparams" :
|
||||||
{
|
{
|
||||||
"records" : true,
|
"records" : true,
|
||||||
@@ -336,7 +337,7 @@
|
|||||||
{
|
{
|
||||||
"name" : "Records Eligible For Destruction",
|
"name" : "Records Eligible For Destruction",
|
||||||
"description" : "All records currently eligible for destruction.",
|
"description" : "All records currently eligible for destruction.",
|
||||||
"search" : "dispositionActionName:\"destroy\" AND (dispositionEventsEligible:true OR dispositionActionAsOf:[MIN TO TODAY])",
|
"search" : "dispositionActionName:\"destroy\" AND (dispositionEventsEligible:true OR dispositionActionAsOf:[MIN TO TODAY]) AND NOT ASPECT:\"rma:ghosted\"",
|
||||||
"searchparams" :
|
"searchparams" :
|
||||||
{
|
{
|
||||||
"records" : true,
|
"records" : true,
|
||||||
|
@@ -104,7 +104,7 @@ public class TransferAction extends RMDispositionActionExecuterAbstractBase
|
|||||||
// Get the root rm node
|
// Get the root rm node
|
||||||
NodeRef root = this.recordsManagementService.getFilePlan(dispositionLifeCycleNodeRef);
|
NodeRef root = this.recordsManagementService.getFilePlan(dispositionLifeCycleNodeRef);
|
||||||
|
|
||||||
// Get the hold object
|
// Get the transfer object
|
||||||
NodeRef transferNodeRef = (NodeRef)AlfrescoTransactionSupport.getResource(KEY_TRANSFER_NODEREF);
|
NodeRef transferNodeRef = (NodeRef)AlfrescoTransactionSupport.getResource(KEY_TRANSFER_NODEREF);
|
||||||
if (transferNodeRef == null)
|
if (transferNodeRef == null)
|
||||||
{
|
{
|
||||||
@@ -139,7 +139,7 @@ public class TransferAction extends RMDispositionActionExecuterAbstractBase
|
|||||||
AlfrescoTransactionSupport.bindResource(KEY_TRANSFER_NODEREF, transferNodeRef);
|
AlfrescoTransactionSupport.bindResource(KEY_TRANSFER_NODEREF, transferNodeRef);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Link the record to the hold
|
// Link the record to the trasnfer object
|
||||||
this.nodeService.addChild(transferNodeRef,
|
this.nodeService.addChild(transferNodeRef,
|
||||||
dispositionLifeCycleNodeRef,
|
dispositionLifeCycleNodeRef,
|
||||||
ASSOC_TRANSFERRED,
|
ASSOC_TRANSFERRED,
|
||||||
@@ -148,6 +148,9 @@ public class TransferAction extends RMDispositionActionExecuterAbstractBase
|
|||||||
// Set PDF indicator flag
|
// Set PDF indicator flag
|
||||||
setPDFIndicationFlag(transferNodeRef, dispositionLifeCycleNodeRef);
|
setPDFIndicationFlag(transferNodeRef, dispositionLifeCycleNodeRef);
|
||||||
|
|
||||||
|
// Set the transferring indicator aspect
|
||||||
|
nodeService.addAspect(dispositionLifeCycleNodeRef, ASPECT_TRANSFERRING, null);
|
||||||
|
|
||||||
// Set the return value of the action
|
// Set the return value of the action
|
||||||
action.setParameterValue(ActionExecuter.PARAM_RESULT, transferNodeRef);
|
action.setParameterValue(ActionExecuter.PARAM_RESULT, transferNodeRef);
|
||||||
}
|
}
|
||||||
|
@@ -116,6 +116,9 @@ public class TransferCompleteAction extends RMActionExecuterAbstractBase
|
|||||||
nodeService.setProperty(da.getNodeRef(), PROP_DISPOSITION_ACTION_COMPLETED_BY, AuthenticationUtil.getRunAsUser());
|
nodeService.setProperty(da.getNodeRef(), PROP_DISPOSITION_ACTION_COMPLETED_BY, AuthenticationUtil.getRunAsUser());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove the transferring indicator aspect
|
||||||
|
nodeService.removeAspect(nodeRef, ASPECT_TRANSFERRING);
|
||||||
|
|
||||||
// Determine which marker aspect to use
|
// Determine which marker aspect to use
|
||||||
QName markerAspectQName = null;
|
QName markerAspectQName = null;
|
||||||
if (accessionIndicator == true)
|
if (accessionIndicator == true)
|
||||||
|
@@ -188,6 +188,9 @@ public interface RecordsManagementModel extends RecordsManagementCustomModel
|
|||||||
public static final QName PROP_TRANSFER_LOCATION = QName.createQName(RM_URI, "transferLocation");
|
public static final QName PROP_TRANSFER_LOCATION = QName.createQName(RM_URI, "transferLocation");
|
||||||
public static final QName ASSOC_TRANSFERRED = QName.createQName(RM_URI, "transferred");
|
public static final QName ASSOC_TRANSFERRED = QName.createQName(RM_URI, "transferred");
|
||||||
|
|
||||||
|
// Transferring aspect
|
||||||
|
public static final QName ASPECT_TRANSFERRING = QName.createQName(RM_URI, "transferring");
|
||||||
|
|
||||||
// Versioned record aspect
|
// Versioned record aspect
|
||||||
public static final QName ASPECT_VERSIONED_RECORD = QName.createQName(RM_URI, "versionedRecord");
|
public static final QName ASPECT_VERSIONED_RECORD = QName.createQName(RM_URI, "versionedRecord");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user