mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merge branch 'master' of gitlab.alfresco.com:records-management/records-management into feature/remove-dynamic-authorities
This commit is contained in:
@@ -146,7 +146,7 @@ accessionComplete.description=Accession complete
|
|||||||
# Split Email
|
# Split Email
|
||||||
splitEmail.title=Split email
|
splitEmail.title=Split email
|
||||||
splitEmail.description=Split email
|
splitEmail.description=Split email
|
||||||
# Create Disposition Schedule
|
# Create Rentention Schedule
|
||||||
createDispositionSchedule.title=Create retention schedule
|
createDispositionSchedule.title=Create retention schedule
|
||||||
createDispositionSchedule.description=Create retention schedule
|
createDispositionSchedule.description=Create retention schedule
|
||||||
# File Destruction Report
|
# File Destruction Report
|
||||||
|
@@ -104,7 +104,7 @@ public class DispositionSelectionStrategy implements RecordsManagementModel
|
|||||||
|
|
||||||
if (logger.isDebugEnabled())
|
if (logger.isDebugEnabled())
|
||||||
{
|
{
|
||||||
logger.debug("Selected disposition schedule: " + dispSchedule);
|
logger.debug("Selected retention schedule: " + dispSchedule);
|
||||||
}
|
}
|
||||||
|
|
||||||
NodeRef result = null;
|
NodeRef result = null;
|
||||||
|
@@ -361,7 +361,7 @@ public class DispositionServiceImpl extends ServiceBaseImpl
|
|||||||
// Make sure we are dealing with an RM node
|
// Make sure we are dealing with an RM node
|
||||||
if (!filePlanService.isFilePlanComponent(nodeRef))
|
if (!filePlanService.isFilePlanComponent(nodeRef))
|
||||||
{
|
{
|
||||||
throw new AlfrescoRuntimeException("Can not find the associated disposition schedule for a non records management component. (nodeRef=" + nodeRef.toString() + ")");
|
throw new AlfrescoRuntimeException("Can not find the associated retention schedule for a non records management component. (nodeRef=" + nodeRef.toString() + ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.nodeService.hasAspect(nodeRef, ASPECT_SCHEDULED))
|
if (this.nodeService.hasAspect(nodeRef, ASPECT_SCHEDULED))
|
||||||
@@ -398,7 +398,7 @@ public class DispositionServiceImpl extends ServiceBaseImpl
|
|||||||
// only the first disposition schedule will be considered
|
// only the first disposition schedule will be considered
|
||||||
if (logger.isWarnEnabled())
|
if (logger.isWarnEnabled())
|
||||||
{
|
{
|
||||||
logger.warn("Disposition schedule has more than one associated records management container. " +
|
logger.warn("Retention schedule has more than one associated records management container. " +
|
||||||
"This is not currently supported so only the first container will be considered. " +
|
"This is not currently supported so only the first container will be considered. " +
|
||||||
"(dispositionScheduleNodeRef=" + dispositionSchedule.getNodeRef().toString() + ")");
|
"(dispositionScheduleNodeRef=" + dispositionSchedule.getNodeRef().toString() + ")");
|
||||||
}
|
}
|
||||||
@@ -492,7 +492,7 @@ public class DispositionServiceImpl extends ServiceBaseImpl
|
|||||||
// Check exists
|
// Check exists
|
||||||
if (!nodeService.exists(nodeRef))
|
if (!nodeService.exists(nodeRef))
|
||||||
{
|
{
|
||||||
throw new AlfrescoRuntimeException("Unable to create disposition schedule, because node does not exist. (nodeRef=" + nodeRef.toString() + ")");
|
throw new AlfrescoRuntimeException("Unable to create retention schedule, because node does not exist. (nodeRef=" + nodeRef.toString() + ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check is sub-type of rm:recordCategory
|
// Check is sub-type of rm:recordCategory
|
||||||
@@ -500,7 +500,7 @@ public class DispositionServiceImpl extends ServiceBaseImpl
|
|||||||
if (!TYPE_RECORD_CATEGORY.equals(nodeRefType) &&
|
if (!TYPE_RECORD_CATEGORY.equals(nodeRefType) &&
|
||||||
!dictionaryService.isSubClass(nodeRefType, TYPE_RECORD_CATEGORY))
|
!dictionaryService.isSubClass(nodeRefType, TYPE_RECORD_CATEGORY))
|
||||||
{
|
{
|
||||||
throw new AlfrescoRuntimeException("Unable to create disposition schedule on a node that is not a records management container.");
|
throw new AlfrescoRuntimeException("Unable to create retention schedule on a node that is not a records management container.");
|
||||||
}
|
}
|
||||||
|
|
||||||
behaviourFilter.disableBehaviour(nodeRef, ASPECT_SCHEDULED);
|
behaviourFilter.disableBehaviour(nodeRef, ASPECT_SCHEDULED);
|
||||||
@@ -522,7 +522,7 @@ public class DispositionServiceImpl extends ServiceBaseImpl
|
|||||||
List<NodeRef> items = getDisposableItemsImpl(currentDispositionSchdule.isRecordLevelDisposition(), nodeRef);
|
List<NodeRef> items = getDisposableItemsImpl(currentDispositionSchdule.isRecordLevelDisposition(), nodeRef);
|
||||||
if (items.size() != 0)
|
if (items.size() != 0)
|
||||||
{
|
{
|
||||||
throw new AlfrescoRuntimeException("Can not create a disposition schedule if there are disposable items already under the control of an other disposition schedule");
|
throw new AlfrescoRuntimeException("Can not create a retention schedule if there are disposable items already under the control of an other retention schedule");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -537,7 +537,7 @@ public class DispositionServiceImpl extends ServiceBaseImpl
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Error since the node already has a disposition schedule set
|
// Error since the node already has a disposition schedule set
|
||||||
throw new AlfrescoRuntimeException("Unable to create disposition schedule on node that already has a disposition schedule.");
|
throw new AlfrescoRuntimeException("Unable to create retention schedule on node that already has a retention schedule.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
|
@@ -1813,8 +1813,8 @@ public class RecordServiceImpl extends BaseBehaviourBean
|
|||||||
if (recordDispositionSchedule.isRecordLevelDisposition() != recordFolderDispositionSchedule.isRecordLevelDisposition())
|
if (recordDispositionSchedule.isRecordLevelDisposition() != recordFolderDispositionSchedule.isRecordLevelDisposition())
|
||||||
{
|
{
|
||||||
// we can't link a record to an incompatible disposition schedule
|
// we can't link a record to an incompatible disposition schedule
|
||||||
throw new RecordLinkRuntimeException("Can not link a record to a record folder with an incompatible disposition schedule. "
|
throw new RecordLinkRuntimeException("Can not link a record to a record folder with an incompatible retention schedule. "
|
||||||
+ "They must either both be record level or record folder level dispositions.");
|
+ "They must either both be record level or record folder level retentions.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -285,7 +285,6 @@ public class RecordServiceImplUnitTest extends BaseUnitTest
|
|||||||
|
|
||||||
// expect exception
|
// expect exception
|
||||||
exception.expect(RecordLinkRuntimeException.class);
|
exception.expect(RecordLinkRuntimeException.class);
|
||||||
exception.expectMessage("incompatible disposition schedule");
|
|
||||||
|
|
||||||
// link
|
// link
|
||||||
recordService.link(record, recordFolder);
|
recordService.link(record, recordFolder);
|
||||||
|
Reference in New Issue
Block a user