diff --git a/rm-server/config/alfresco/module/org_alfresco_module_rm/rm-action-context.xml b/rm-server/config/alfresco/module/org_alfresco_module_rm/rm-action-context.xml
index ce88a33169..16e705a25a 100644
--- a/rm-server/config/alfresco/module/org_alfresco_module_rm/rm-action-context.xml
+++ b/rm-server/config/alfresco/module/org_alfresco_module_rm/rm-action-context.xml
@@ -586,7 +586,6 @@
class="org.alfresco.module.org_alfresco_module_rm.vital.BroadcastVitalRecordDefinitionAction"
parent="rmAction">
-
diff --git a/rm-server/config/alfresco/module/org_alfresco_module_rm/rm-model-context.xml b/rm-server/config/alfresco/module/org_alfresco_module_rm/rm-model-context.xml
index 433223bedd..7741c02f69 100644
--- a/rm-server/config/alfresco/module/org_alfresco_module_rm/rm-model-context.xml
+++ b/rm-server/config/alfresco/module/org_alfresco_module_rm/rm-model-context.xml
@@ -101,7 +101,6 @@
-
diff --git a/rm-server/config/alfresco/module/org_alfresco_module_rm/rm-report-context.xml b/rm-server/config/alfresco/module/org_alfresco_module_rm/rm-report-context.xml
index 1ccdc2d8ad..9887108d07 100644
--- a/rm-server/config/alfresco/module/org_alfresco_module_rm/rm-report-context.xml
+++ b/rm-server/config/alfresco/module/org_alfresco_module_rm/rm-report-context.xml
@@ -31,9 +31,6 @@
-
-
-
@@ -77,7 +74,6 @@
-
diff --git a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/RecordAspect.java b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/RecordAspect.java
index f79d10f4cc..f513365b06 100644
--- a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/RecordAspect.java
+++ b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/RecordAspect.java
@@ -28,7 +28,6 @@ import org.alfresco.module.org_alfresco_module_rm.RecordsManagementPolicies;
import org.alfresco.module.org_alfresco_module_rm.model.BaseBehaviourBean;
import org.alfresco.module.org_alfresco_module_rm.model.RecordsManagementCustomModel;
import org.alfresco.module.org_alfresco_module_rm.model.behaviour.RecordsManagementSearchBehaviour;
-import org.alfresco.module.org_alfresco_module_rm.record.RecordService;
import org.alfresco.module.org_alfresco_module_rm.security.ExtendedSecurityService;
import org.alfresco.repo.copy.CopyBehaviourCallback;
import org.alfresco.repo.copy.CopyDetails;
@@ -47,7 +46,7 @@ import org.alfresco.service.namespace.QName;
/**
* rma:record behaviour bean
- *
+ *
* @author Roy Wetherall
* @since 2.2
*/
@@ -64,16 +63,13 @@ public class RecordAspect extends BaseBehaviourBean
/** Well-known location of the scripts folder. */
// TODO make configurable
private NodeRef scriptsFolderNodeRef = new NodeRef("workspace", "SpacesStore", "rm_behavior_scripts");
-
+
/** extended security service */
protected ExtendedSecurityService extendedSecurityService;
-
+
/** script service */
protected ScriptService scriptService;
-
- /** record service */
- protected RecordService recordService;
-
+
/**
* @param extendedSecurityService extended security service
*/
@@ -89,18 +85,10 @@ public class RecordAspect extends BaseBehaviourBean
{
this.scriptService = scriptService;
}
-
- /**
- * @param recordService record service
- */
- public void setRecordService(RecordService recordService)
- {
- this.recordService = recordService;
- }
-
+
/**
* Behaviour to ensure renditions have the appropriate extended security.
- *
+ *
* @see org.alfresco.repo.node.NodeServicePolicies.OnCreateChildAssociationPolicy#onCreateChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef, boolean)
*/
@Override
@@ -158,7 +146,7 @@ public class RecordAspect extends BaseBehaviourBean
}
// Execute script if for the reference event
- executeReferenceScript("onCreate", reference, fromNodeRef, toNodeRef);
+ executeReferenceScript("onCreate", reference, fromNodeRef, toNodeRef);
}
/**
@@ -180,9 +168,9 @@ public class RecordAspect extends BaseBehaviourBean
}
// Execute script if for the reference event
- executeReferenceScript("onRemove", reference, fromNodeRef, toNodeRef);
+ executeReferenceScript("onRemove", reference, fromNodeRef, toNodeRef);
}
-
+
/**
* Record copy callback
*/
@@ -217,7 +205,7 @@ public class RecordAspect extends BaseBehaviourBean
/**
* Record move behaviour
- *
+ *
* @see org.alfresco.repo.node.NodeServicePolicies.OnMoveNodePolicy#onMoveNode(org.alfresco.service.cmr.repository.ChildAssociationRef, org.alfresco.service.cmr.repository.ChildAssociationRef)
*/
@Override
@@ -247,7 +235,7 @@ public class RecordAspect extends BaseBehaviourBean
}, AuthenticationUtil.getAdminUserName());
}
}
-
+
/**
* Executes a reference script if present
*
diff --git a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/type/RmSiteType.java b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/type/RmSiteType.java
index 39e5df9b41..5ecfc139ee 100644
--- a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/type/RmSiteType.java
+++ b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/type/RmSiteType.java
@@ -28,7 +28,6 @@ import org.alfresco.module.org_alfresco_module_rm.model.BaseBehaviourBean;
import org.alfresco.module.org_alfresco_module_rm.search.RecordsManagementSearchService;
import org.alfresco.repo.node.NodeServicePolicies;
import org.alfresco.repo.policy.Behaviour.NotificationFrequency;
-import org.alfresco.repo.policy.PolicyComponent;
import org.alfresco.repo.policy.annotation.Behaviour;
import org.alfresco.repo.policy.annotation.BehaviourBean;
import org.alfresco.repo.policy.annotation.BehaviourKind;
@@ -48,7 +47,7 @@ import org.alfresco.util.PropertyMap;
/**
* Behaviour associated with the RM Site type
- *
+ *
* @author Roy Wetherall
* @since 2.2
*/
@@ -65,40 +64,28 @@ public class RmSiteType extends BaseBehaviourBean
public static final String COMPONENT_DOCUMENT_LIBRARY = "documentLibrary";
public static final String DEFAULT_SITE_NAME = "rm";
public static final QName DEFAULT_FILE_PLAN_TYPE = TYPE_FILE_PLAN;
-
- /** Policy component */
- protected PolicyComponent policyComponent;
-
+
/** Site service */
protected SiteService siteService;
-
+
/** Record Management Search Service */
protected RecordsManagementSearchService recordsManagementSearchService;
-
+
/** Capability service */
protected CapabilityService capabilityService;
-
+
/** Map of file plan type's key'ed by corresponding site types */
protected Map mapFilePlanType = new HashMap(3);
-
- /**
- * Set the policy component
- * @param policyComponent policy component
- */
- public void setPolicyComponent(PolicyComponent policyComponent)
- {
- this.policyComponent = policyComponent;
- }
-
+
/**
* Set the site service
* @param siteService site service
*/
- public void setSiteService(SiteService siteService)
+ public void setSiteService(SiteService siteService)
{
this.siteService = siteService;
}
-
+
/**
* @param recordsManagementSearchService records management search service
*/
@@ -106,7 +93,7 @@ public class RmSiteType extends BaseBehaviourBean
{
this.recordsManagementSearchService = recordsManagementSearchService;
}
-
+
/**
* @param capabilityService capability service
*/
@@ -114,10 +101,10 @@ public class RmSiteType extends BaseBehaviourBean
{
this.capabilityService = capabilityService;
}
-
+
/**
* Registers a file plan type for a specific site type.
- *
+ *
* @param siteType siteType sub-type of rma:rmsite
* @param filePlanType filePlanType sub-type of rma:filePlan
* @since 2.2
@@ -126,21 +113,21 @@ public class RmSiteType extends BaseBehaviourBean
{
ParameterCheck.mandatory("siteType", siteType);
ParameterCheck.mandatory("filePlanType", filePlanType);
-
+
// check that the registered site type is a subtype of rma:rmsite
if (dictionaryService.isSubClass(siteType, TYPE_RM_SITE) == false)
{
throw new AlfrescoRuntimeException(
"Can't register site type, because site type is not a sub type of rma:rmsite (siteType=" + siteType.toString() + ")");
}
-
+
// check that the registered file plan type is a sub type of rma:filePlan
if (dictionaryService.isSubClass(filePlanType, TYPE_FILE_PLAN) == false)
{
throw new AlfrescoRuntimeException(
"Can't register file plan type, because site type is not a sub type of rma:filePlan (filePlanType=" + filePlanType.toString() + ")");
}
-
+
// add site and file plan types to map
mapFilePlanType.put(siteType, filePlanType);
}
@@ -154,17 +141,17 @@ public class RmSiteType extends BaseBehaviourBean
kind = BehaviourKind.CLASS,
notificationFrequency = NotificationFrequency.FIRST_EVENT
)
- public void onCreateNode(ChildAssociationRef childAssocRef)
- {
+ public void onCreateNode(ChildAssociationRef childAssocRef)
+ {
final NodeRef rmSite = childAssocRef.getChildRef();
-
+
// Do not execute behaviour if this has been created in the archive store
if(rmSite.getStoreRef().equals(StoreRef.STORE_REF_ARCHIVE_SPACESSTORE) == true)
{
// This is not the spaces store - probably the archive store
return;
}
-
+
if (nodeService.exists(rmSite) == true)
{
AuthenticationUtil.runAs(new AuthenticationUtil.RunAsWork