From cbe6ca551e23ca7c78dfb67ab79ce79335e7647f Mon Sep 17 00:00:00 2001 From: Tom Page Date: Fri, 19 Jun 2015 09:52:05 +0000 Subject: [PATCH] RM-2319 Create marker interface for entities created from config files. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@106525 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../classification/ClassificationLevel.java | 4 +-- .../classification/ClassificationReason.java | 6 ++-- .../ClassificationSchemeEntity.java | 31 +++++++++++++++++++ .../classification/ExemptionCategory.java | 4 +-- 4 files changed, 35 insertions(+), 10 deletions(-) create mode 100644 rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationSchemeEntity.java diff --git a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationLevel.java b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationLevel.java index d129a0ed69..dbd92a9a33 100644 --- a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationLevel.java +++ b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationLevel.java @@ -20,8 +20,6 @@ package org.alfresco.module.org_alfresco_module_rm.classification; import static org.apache.commons.lang.StringUtils.isNotBlank; -import java.io.Serializable; - import org.alfresco.module.org_alfresco_module_rm.util.RMParameterCheck; import org.springframework.extensions.surf.util.I18NUtil; @@ -31,7 +29,7 @@ import org.springframework.extensions.surf.util.I18NUtil; * @author Neil Mc Erlean * @since 3.0 */ -public final class ClassificationLevel implements Serializable +public final class ClassificationLevel implements ClassificationSchemeEntity { /** serial version uid */ private static final long serialVersionUID = -3375064867090476422L; diff --git a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationReason.java b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationReason.java index aff361679f..c0cbbf6b35 100644 --- a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationReason.java +++ b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationReason.java @@ -19,8 +19,6 @@ package org.alfresco.module.org_alfresco_module_rm.classification; -import java.io.Serializable; - import org.alfresco.module.org_alfresco_module_rm.util.RMParameterCheck; import org.springframework.extensions.surf.util.I18NUtil; @@ -31,7 +29,7 @@ import org.springframework.extensions.surf.util.I18NUtil; * @author Tom Page * @since 3.0 */ -public final class ClassificationReason implements Serializable +public final class ClassificationReason implements ClassificationSchemeEntity { private static final long serialVersionUID = 4876939094239038838L; private final String id; @@ -39,7 +37,7 @@ public final class ClassificationReason implements Serializable /** * Constructor to create a classification reason. - * + * * @param id The unique identifier that represents this classification reason. * @param displayLabelKey The I18N key for the display label for the reason. */ diff --git a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationSchemeEntity.java b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationSchemeEntity.java new file mode 100644 index 0000000000..8680f3ab62 --- /dev/null +++ b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ClassificationSchemeEntity.java @@ -0,0 +1,31 @@ +/* + * 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; + +import java.io.Serializable; + +/** + * Marker interface for classes that contain basic information about the classification scheme. + * + * @author tpage + * @since 3.0 + */ +public interface ClassificationSchemeEntity extends Serializable +{ +} diff --git a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ExemptionCategory.java b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ExemptionCategory.java index 11b4010e5b..518ca9e05f 100644 --- a/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ExemptionCategory.java +++ b/rm-server/source/java/org/alfresco/module/org_alfresco_module_rm/classification/ExemptionCategory.java @@ -20,8 +20,6 @@ package org.alfresco.module.org_alfresco_module_rm.classification; import static org.apache.commons.lang.StringUtils.isNotBlank; -import java.io.Serializable; - import org.alfresco.module.org_alfresco_module_rm.util.RMParameterCheck; import org.springframework.extensions.surf.util.I18NUtil; @@ -32,7 +30,7 @@ import org.springframework.extensions.surf.util.I18NUtil; * @author tpage * @since 3.0 */ -public final class ExemptionCategory implements Serializable +public final class ExemptionCategory implements ClassificationSchemeEntity { /** serial version uid */ private static final long serialVersionUID = -8990809567320071986L;