From b1e8da11987b15d314d6946afd6267faee7c87aa Mon Sep 17 00:00:00 2001 From: Tom Page Date: Fri, 26 Jun 2015 15:36:13 +0000 Subject: [PATCH] RM-2130 Make CollectionPostMethodInvocationProcessor concrete. +review RM-113 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/DEV/ENFORCE@107253 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- ...llectionPostMethodInvocationProcessor.java | 11 +++-- .../ListPostMethodInvocationProcessor.java | 40 ------------------- .../SetPostMethodInvocationProcessor.java | 40 ------------------- 3 files changed, 7 insertions(+), 84 deletions(-) delete mode 100644 rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/interceptor/processor/ListPostMethodInvocationProcessor.java delete mode 100644 rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/interceptor/processor/SetPostMethodInvocationProcessor.java diff --git a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/interceptor/processor/CollectionPostMethodInvocationProcessor.java b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/interceptor/processor/CollectionPostMethodInvocationProcessor.java index 7c0160f65f..109c86cc38 100644 --- a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/interceptor/processor/CollectionPostMethodInvocationProcessor.java +++ b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/interceptor/processor/CollectionPostMethodInvocationProcessor.java @@ -27,11 +27,8 @@ import java.util.Iterator; * @author Tuna Aksoy * @since 3.0 */ -public abstract class CollectionPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor +public class CollectionPostMethodInvocationProcessor extends BasePostMethodInvocationProcessor { - /** - * @see org.alfresco.module.org_alfresco_module_rm.classification.interceptor.processor.BasePostMethodInvocationProcessor#process(java.lang.Object) - */ @SuppressWarnings({ "rawtypes" }) @Override public T process(T object) @@ -57,4 +54,10 @@ public abstract class CollectionPostMethodInvocationProcessor extends BasePostMe return result; } + + @Override + protected Class getClassName() + { + return Collection.class; + } } diff --git a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/interceptor/processor/ListPostMethodInvocationProcessor.java b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/interceptor/processor/ListPostMethodInvocationProcessor.java deleted file mode 100644 index 3c2cb1f6cf..0000000000 --- a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/interceptor/processor/ListPostMethodInvocationProcessor.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2005-2015 Alfresco Software Limited. - * - * This file is part of Alfresco - * - * Alfresco is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Alfresco is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with Alfresco. If not, see . - */ -package org.alfresco.module.org_alfresco_module_rm.classification.interceptor.processor; - -import java.util.List; - -/** - * List Post Method Invocation Processor - * - * @author Tuna Aksoy - * @since 3.0 - */ -public class ListPostMethodInvocationProcessor extends CollectionPostMethodInvocationProcessor -{ - /** - * @see org.alfresco.module.org_alfresco_module_rm.classification.interceptor.processor.BasePostMethodInvocationProcessor#getClassName() - */ - @SuppressWarnings("rawtypes") - @Override - protected Class getClassName() - { - return List.class; - } -} diff --git a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/interceptor/processor/SetPostMethodInvocationProcessor.java b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/interceptor/processor/SetPostMethodInvocationProcessor.java deleted file mode 100644 index c0abfd73f3..0000000000 --- a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/interceptor/processor/SetPostMethodInvocationProcessor.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2005-2015 Alfresco Software Limited. - * - * This file is part of Alfresco - * - * Alfresco is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Alfresco is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with Alfresco. If not, see . - */ -package org.alfresco.module.org_alfresco_module_rm.classification.interceptor.processor; - -import java.util.Set; - -/** - * Set Post Method Invocation Processor - * - * @author Tuna Aksoy - * @since 3.0 - */ -public class SetPostMethodInvocationProcessor extends CollectionPostMethodInvocationProcessor -{ - /** - * @see org.alfresco.module.org_alfresco_module_rm.classification.interceptor.processor.BasePostMethodInvocationProcessor#getClassName() - */ - @SuppressWarnings("rawtypes") - @Override - protected Class getClassName() - { - return Set.class; - } -}