mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-1203 (As a records user I want to create a new hold so that I can add records to it)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@63190 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -23,18 +23,19 @@ package org.alfresco.module.org_alfresco_module_rm.fileplan;
|
||||
* <br>
|
||||
* Helpful when trying to determine the characteristics of a kind
|
||||
* of file plan component.
|
||||
*
|
||||
*
|
||||
* @author Roy Wetherall
|
||||
*/
|
||||
public enum FilePlanComponentKind
|
||||
{
|
||||
FILE_PLAN_COMPONENT,
|
||||
FILE_PLAN,
|
||||
RECORD_CATEGORY,
|
||||
RECORD_FOLDER,
|
||||
RECORD,
|
||||
TRANSFER,
|
||||
HOLD,
|
||||
FILE_PLAN_COMPONENT,
|
||||
FILE_PLAN,
|
||||
RECORD_CATEGORY,
|
||||
RECORD_FOLDER,
|
||||
RECORD,
|
||||
TRANSFER,
|
||||
HOLD,
|
||||
HOLD_CONTAINER_CHILD,
|
||||
DISPOSITION_SCHEDULE,
|
||||
UNFILED_RECORD_CONTAINER,
|
||||
UNFILED_RECORD_CONTAINER_CHILD;
|
||||
|
@@ -218,6 +218,10 @@ public class FilePlanServiceImpl extends ServiceBaseImpl
|
||||
{
|
||||
result = FilePlanComponentKind.HOLD;
|
||||
}
|
||||
else if (instanceOf(nodeRef, TYPE_HOLD_CONTAINER_CHILD))
|
||||
{
|
||||
result = FilePlanComponentKind.HOLD_CONTAINER_CHILD;
|
||||
}
|
||||
else if (getTransferService().isTransfer(nodeRef) == true)
|
||||
{
|
||||
result = FilePlanComponentKind.TRANSFER;
|
||||
|
@@ -260,6 +260,11 @@ public class JSONConversionComponent extends org.alfresco.repo.jscript.app.JSONC
|
||||
result = "hold-container";
|
||||
break;
|
||||
}
|
||||
case HOLD_CONTAINER_CHILD:
|
||||
{
|
||||
result = "hold-container-child";
|
||||
break;
|
||||
}
|
||||
case TRANSFER:
|
||||
{
|
||||
result = "transfer-container";
|
||||
|
@@ -65,7 +65,8 @@ public interface RecordsManagementModel extends RecordsManagementCustomModel
|
||||
|
||||
// Hold container
|
||||
public static final QName TYPE_HOLD_CONTAINER = QName.createQName(RM_URI, "holdContainer");
|
||||
|
||||
public static final QName TYPE_HOLD_CONTAINER_CHILD = QName.createQName(RM_URI, "holdContainerChild");
|
||||
|
||||
// Transfer container
|
||||
public static final QName TYPE_TRANSFER_CONTAINER = QName.createQName(RM_URI, "transferContainer");
|
||||
|
||||
@@ -255,9 +256,9 @@ public interface RecordsManagementModel extends RecordsManagementCustomModel
|
||||
public static final QName PROP_RECORD_REJECTION_USER_ID = QName.createQName(RM_URI, "recordRejectionUserId");
|
||||
public static final QName PROP_RECORD_REJECTION_DATE = QName.createQName(RM_URI, "recordRejectionDate");
|
||||
public static final QName PROP_RECORD_REJECTION_REASON = QName.createQName(RM_URI, "recordRejectionReason");
|
||||
|
||||
|
||||
// Countable aspect
|
||||
public static final QName ASPECT_COUNTABLE = QName.createQName(RM_URI, "countable");
|
||||
public static final QName PROP_COUNT = QName.createQName(RM_URI, "count");
|
||||
|
||||
|
||||
}
|
||||
|
@@ -37,7 +37,7 @@ import org.alfresco.service.cmr.repository.NodeRef;
|
||||
*/
|
||||
public class RMv22CapabilityPatch extends AbstractModulePatch
|
||||
{
|
||||
|
||||
|
||||
/** File plan service */
|
||||
private FilePlanService filePlanService;
|
||||
|
||||
@@ -119,7 +119,7 @@ public class RMv22CapabilityPatch extends AbstractModulePatch
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @see org.alfresco.module.org_alfresco_module_rm.patch.AbstractModulePatch#applyInternal()
|
||||
*/
|
||||
@@ -145,6 +145,10 @@ public class RMv22CapabilityPatch extends AbstractModulePatch
|
||||
"FileDestructionReport",
|
||||
FilePlanRoleService.ROLE_ADMIN,
|
||||
FilePlanRoleService.ROLE_RECORDS_MANAGER);
|
||||
addCapability(filePlan,
|
||||
"CreateHold",
|
||||
FilePlanRoleService.ROLE_ADMIN,
|
||||
FilePlanRoleService.ROLE_RECORDS_MANAGER);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user