diff --git a/rm-community/rm-community-repo/source/compatibility/org/alfresco/module/org_alfresco_module_rm/caveat/RMCaveatConfigService.java b/rm-community/rm-community-repo/source/compatibility/org/alfresco/module/org_alfresco_module_rm/caveat/RMCaveatConfigService.java index 876e06ade7..4ef215a322 100644 --- a/rm-community/rm-community-repo/source/compatibility/org/alfresco/module/org_alfresco_module_rm/caveat/RMCaveatConfigService.java +++ b/rm-community/rm-community-repo/source/compatibility/org/alfresco/module/org_alfresco_module_rm/caveat/RMCaveatConfigService.java @@ -33,11 +33,9 @@ import java.util.List; import java.util.Map; import java.util.Set; -import org.alfresco.api.AlfrescoPublicApi; import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.service.cmr.repository.NodeRef; -@AlfrescoPublicApi public interface RMCaveatConfigService { void init(); diff --git a/rm-community/rm-community-repo/source/compatibility/org/alfresco/module/org_alfresco_module_rm/caveat/RMConstraintInfo.java b/rm-community/rm-community-repo/source/compatibility/org/alfresco/module/org_alfresco_module_rm/caveat/RMConstraintInfo.java index a34099ceac..cc6d92cd49 100644 --- a/rm-community/rm-community-repo/source/compatibility/org/alfresco/module/org_alfresco_module_rm/caveat/RMConstraintInfo.java +++ b/rm-community/rm-community-repo/source/compatibility/org/alfresco/module/org_alfresco_module_rm/caveat/RMConstraintInfo.java @@ -29,9 +29,6 @@ package org.alfresco.module.org_alfresco_module_rm.caveat; import java.util.Arrays; -import org.alfresco.api.AlfrescoPublicApi; - -@AlfrescoPublicApi public class RMConstraintInfo { private String name; diff --git a/rm-community/rm-community-repo/source/compatibility/org/alfresco/module/org_alfresco_module_rm/caveat/RMListOfValuesConstraint.java b/rm-community/rm-community-repo/source/compatibility/org/alfresco/module/org_alfresco_module_rm/caveat/RMListOfValuesConstraint.java index ac9b078229..a6e8b51710 100644 --- a/rm-community/rm-community-repo/source/compatibility/org/alfresco/module/org_alfresco_module_rm/caveat/RMListOfValuesConstraint.java +++ b/rm-community/rm-community-repo/source/compatibility/org/alfresco/module/org_alfresco_module_rm/caveat/RMListOfValuesConstraint.java @@ -33,7 +33,6 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import org.alfresco.api.AlfrescoPublicApi; import org.alfresco.repo.dictionary.constraint.ListOfValuesConstraint; import org.alfresco.repo.security.authentication.AuthenticationUtil; import org.alfresco.service.cmr.dictionary.ConstraintException; @@ -60,7 +59,6 @@ public class RMListOfValuesConstraint extends ListOfValuesConstraint // defined match logic used by caveat matching (default = "AND") private MatchLogic matchLogic = MatchLogic.AND; - @AlfrescoPublicApi public enum MatchLogic { // closed marking - all values must match diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/dataset/DataSet.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/dataset/DataSet.java index 99a1079b86..4549ba796e 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/dataset/DataSet.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/dataset/DataSet.java @@ -27,29 +27,26 @@ package org.alfresco.module.org_alfresco_module_rm.dataset; -import org.alfresco.api.AlfrescoPublicApi; - -@AlfrescoPublicApi public interface DataSet { /** * Gets the label of the data set - * + * * @return String the label of the data set */ String getLabel(); /** * Gets the id of the data set - * + * * @return String the id of the data set */ String getId(); /** * Gets the path of the data set - * + * * @return String the path of the data set */ String getPath(); diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/dataset/DataSetService.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/dataset/DataSetService.java index 5453503c65..a54e0fbce8 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/dataset/DataSetService.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/dataset/DataSetService.java @@ -29,23 +29,21 @@ package org.alfresco.module.org_alfresco_module_rm.dataset; import java.util.Map; -import org.alfresco.api.AlfrescoPublicApi; import org.alfresco.service.cmr.repository.NodeRef; -@AlfrescoPublicApi public interface DataSetService { /** * Register a data set implementation with the service - * + * * @param dataSet the data set */ void register(DataSet dataSet); /** * Gets the details of all available data sets. - * + * * @return Map details of all available data sets */ Map getDataSets(); @@ -53,7 +51,7 @@ public interface DataSetService /** * Gets the details of all available data sets for a file plan depending on * the parameter "excludeLoaded". - * + * * @param filePlan the file plan for which the details should be retrieved * @param excludeLoaded if true only data sets will be retrieved which has * not been loaded @@ -65,7 +63,7 @@ public interface DataSetService /** * Gets the details of all loaded data sets for a specified file plan - * + * * @param filePlan the file plan for which the loaded data sets should be * retrieved * @return Map details of all loaded data sets or an empty @@ -76,7 +74,7 @@ public interface DataSetService /** * Loads the data set with the specified id into the specified file plan - * + * * @param filePlan the file plan which the data set will load into * @param dataSetId the id of the data set which will be imported */ @@ -84,7 +82,7 @@ public interface DataSetService /** * Checks if a data set exists with the given data set id - * + * * @param dataSetId the id of the data set which will be checked * @return true if the data set exists, false otherwise */ @@ -93,7 +91,7 @@ public interface DataSetService /** * Checks if a data set with the id "dataSetId" has been loaded into the * specified file plan - * + * * @param filePlan the file plan for which the check should be done * @param dataSetId the id of the data set which should be checked if it has * been loaded to the file plan diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/disposition/property/DispositionProperty.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/disposition/property/DispositionProperty.java index c440f3b3c0..9ae27e4852 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/disposition/property/DispositionProperty.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/disposition/property/DispositionProperty.java @@ -32,7 +32,6 @@ import java.util.Date; import java.util.Map; import java.util.Set; -import org.alfresco.api.AlfrescoPublicApi; import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.module.org_alfresco_module_rm.disposition.DispositionAction; import org.alfresco.module.org_alfresco_module_rm.disposition.DispositionActionDefinition; @@ -56,7 +55,6 @@ import org.alfresco.service.namespace.QName; * * @author Roy Wetherall */ -@AlfrescoPublicApi @BehaviourBean public class DispositionProperty extends BaseBehaviourBean implements NodeServicePolicies.OnUpdatePropertiesPolicy diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/email/CustomEmailMappingService.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/email/CustomEmailMappingService.java index 5da1938b87..7ef98fb654 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/email/CustomEmailMappingService.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/email/CustomEmailMappingService.java @@ -30,12 +30,9 @@ package org.alfresco.module.org_alfresco_module_rm.email; import java.util.List; import java.util.Set; -import org.alfresco.api.AlfrescoPublicApi; - /** * Custom EMail Mapping Service */ -@AlfrescoPublicApi public interface CustomEmailMappingService { /** diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/email/CustomMapping.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/email/CustomMapping.java index d3df3450fa..ec347337ad 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/email/CustomMapping.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/email/CustomMapping.java @@ -27,12 +27,9 @@ package org.alfresco.module.org_alfresco_module_rm.email; -import org.alfresco.api.AlfrescoPublicApi; - /** * Custom EMail Mapping */ -@AlfrescoPublicApi public class CustomMapping { private String from; diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/BaseBehaviourBean.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/BaseBehaviourBean.java index 77e8ee3b13..accd90e76a 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/BaseBehaviourBean.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/BaseBehaviourBean.java @@ -30,7 +30,6 @@ package org.alfresco.module.org_alfresco_module_rm.model; import java.util.HashMap; import java.util.Map; -import org.alfresco.api.AlfrescoPublicApi; import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.module.org_alfresco_module_rm.util.ServiceBaseImpl; import org.alfresco.repo.policy.BehaviourFilter; @@ -44,7 +43,6 @@ import org.apache.commons.logging.LogFactory; * @author Roy Wetherall * @since 2.2 */ -@AlfrescoPublicApi public abstract class BaseBehaviourBean extends ServiceBaseImpl implements RecordsManagementModel, BehaviourRegistry diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/script/slingshot/Version.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/script/slingshot/Version.java index 8c60c241e8..4e0798ff1f 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/script/slingshot/Version.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/script/slingshot/Version.java @@ -30,12 +30,15 @@ package org.alfresco.module.org_alfresco_module_rm.script.slingshot; import static org.alfresco.util.ParameterCheck.mandatory; import static org.alfresco.util.ParameterCheck.mandatoryString; +import org.alfresco.api.AlfrescoPublicApi; + /** * Recordable version class * * @author Tuna Aksoy * @since 2.3 */ +@AlfrescoPublicApi public class Version { /** The version policy */ diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/search/RecordsManagementSearchServiceImpl.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/search/RecordsManagementSearchServiceImpl.java index a9fc922dca..900b25b474 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/search/RecordsManagementSearchServiceImpl.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/search/RecordsManagementSearchServiceImpl.java @@ -31,7 +31,6 @@ import java.util.ArrayList; import java.util.List; import java.util.Map.Entry; -import org.alfresco.api.AlfrescoPublicApi; import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.model.ContentModel; import org.alfresco.module.org_alfresco_module_rm.model.RecordsManagementModel; @@ -64,7 +63,6 @@ import org.springframework.extensions.surf.util.I18NUtil; * * @author Roy Wetherall */ -@AlfrescoPublicApi public class RecordsManagementSearchServiceImpl implements RecordsManagementSearchService { private static final String SITES_SPACE_QNAME_PATH = "/app:company_home/st:sites/"; @@ -216,12 +214,12 @@ public class RecordsManagementSearchServiceImpl implements RecordsManagementSear // execute query ResultSet resultSet = searchService.query(searchParameters); - + // process results List> result = new ArrayList>(resultSet.length()); for (ChildAssociationRef childAssoc : resultSet.getChildAssocRefs()) { - result.add(new Pair(childAssoc.getParentRef(), childAssoc.getChildRef())); + result.add(new Pair(childAssoc.getParentRef(), childAssoc.getChildRef())); } // return results diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/search/ReportDetails.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/search/ReportDetails.java index 33d027835f..3018a4bd16 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/search/ReportDetails.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/search/ReportDetails.java @@ -27,52 +27,55 @@ package org.alfresco.module.org_alfresco_module_rm.search; +import org.alfresco.api.AlfrescoPublicApi; + /** * Report details. - * + * * @author Roy Wetherall */ -public class ReportDetails +@AlfrescoPublicApi +public class ReportDetails { /** Name */ protected String name; - + /** Description */ protected String description; - + /** Search */ protected String search; - + /** Search parameters */ protected RecordsManagementSearchParameters searchParameters; /** - * + * * @param name * @param description * @param search * @param searchParameters */ - public ReportDetails(String name, String description, String search, RecordsManagementSearchParameters searchParameters) + public ReportDetails(String name, String description, String search, RecordsManagementSearchParameters searchParameters) { this.name = name; this.description = description; this.search = search; this.searchParameters = searchParameters; } - + /** * @return {@link String} name */ - public String getName() + public String getName() { return name; } - + /** * @return {@link String} description */ - public String getDescription() + public String getDescription() { return description; } @@ -80,7 +83,7 @@ public class ReportDetails /** * @param description description */ - public void setDescription(String description) + public void setDescription(String description) { this.description = description; } @@ -92,15 +95,15 @@ public class ReportDetails { return search; } - + /** * @param query query string */ public void setSearch(String search) { this.search = search; - } - + } + /** * @return */ @@ -108,7 +111,7 @@ public class ReportDetails { return searchParameters; } - + /** * @param searchParameters */ diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/search/SortItem.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/search/SortItem.java index 48a53a87d5..392cbbcef8 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/search/SortItem.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/search/SortItem.java @@ -27,8 +27,10 @@ package org.alfresco.module.org_alfresco_module_rm.search; +import org.alfresco.api.AlfrescoPublicApi; import org.alfresco.service.namespace.QName; +@AlfrescoPublicApi /*package*/ class SortItem { public QName property = null; diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/util/AuthenticationUtil.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/util/AuthenticationUtil.java index 843cb0db09..c7f2c4a3dd 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/util/AuthenticationUtil.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/util/AuthenticationUtil.java @@ -27,7 +27,6 @@ package org.alfresco.module.org_alfresco_module_rm.util; -import org.alfresco.api.AlfrescoPublicApi; import org.alfresco.repo.security.authentication.AuthenticationException; import org.alfresco.repo.security.authentication.AuthenticationUtil.RunAsWork; @@ -39,7 +38,6 @@ import org.alfresco.repo.security.authentication.AuthenticationUtil.RunAsWork; * @author Roy Wetherall * @since 2.3 */ -@AlfrescoPublicApi public class AuthenticationUtil { /** diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/util/ServiceBaseImpl.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/util/ServiceBaseImpl.java index c56fad63b1..904a592d96 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/util/ServiceBaseImpl.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/util/ServiceBaseImpl.java @@ -31,7 +31,6 @@ import java.util.Map; import java.util.Set; import java.util.WeakHashMap; -import org.alfresco.api.AlfrescoPublicApi; import org.alfresco.module.org_alfresco_module_rm.fileplan.FilePlanComponentKind; import org.alfresco.module.org_alfresco_module_rm.fileplan.FilePlanService; import org.alfresco.module.org_alfresco_module_rm.hold.HoldService; @@ -53,7 +52,6 @@ import org.springframework.context.ApplicationContextAware; * @author Roy Wetherall * @since 2.1 */ -@AlfrescoPublicApi public class ServiceBaseImpl implements RecordsManagementModel, ApplicationContextAware { /** Node service */ @@ -73,9 +71,9 @@ public class ServiceBaseImpl implements RecordsManagementModel, ApplicationConte /** authentication helper */ protected AuthenticationUtil authenticationUtil; - + /** transactional resource helper */ - protected TransactionalResourceHelper transactionalResourceHelper; + protected TransactionalResourceHelper transactionalResourceHelper; /** * @see org.springframework.context.ApplicationContextAware#setApplicationContext(org.springframework.context.ApplicationContext) @@ -117,7 +115,7 @@ public class ServiceBaseImpl implements RecordsManagementModel, ApplicationConte { this.authenticationUtil = authenticationUtil; } - + /** * @param transactionalResourceHelper transactional resource helper */ diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/util/TransactionalResourceHelper.java b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/util/TransactionalResourceHelper.java index 0d66472b07..b9465e221c 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/util/TransactionalResourceHelper.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/util/TransactionalResourceHelper.java @@ -32,16 +32,13 @@ import java.util.Map; import java.util.Set; import java.util.TreeSet; -import org.alfresco.api.AlfrescoPublicApi; - /** * Delegate spring bean for TransactionResourceHelper - * + * * @author Roy Wetherall * @since 2.3 * @see org.alfresco.repo.transaction.TransactionalResourceHelper */ -@AlfrescoPublicApi public class TransactionalResourceHelper { /** @@ -51,7 +48,7 @@ public class TransactionalResourceHelper { return org.alfresco.repo.transaction.TransactionalResourceHelper.getCount(resourceKey); } - + /** * @see org.alfresco.repo.transaction.TransactionalResourceHelper#getCount(Object) */ @@ -59,7 +56,7 @@ public class TransactionalResourceHelper { org.alfresco.repo.transaction.TransactionalResourceHelper.resetCount(resourceKey); } - + /** * @see org.alfresco.repo.transaction.TransactionalResourceHelper#incrementCount(Object) */ @@ -67,7 +64,7 @@ public class TransactionalResourceHelper { return org.alfresco.repo.transaction.TransactionalResourceHelper.incrementCount(resourceKey); } - + /** * @see org.alfresco.repo.transaction.TransactionalResourceHelper#decrementCount(Object, boolean) */ @@ -75,7 +72,7 @@ public class TransactionalResourceHelper { return org.alfresco.repo.transaction.TransactionalResourceHelper.decrementCount(resourceKey, allowNegative); } - + /** * @see org.alfresco.repo.transaction.TransactionalResourceHelper#getCount(Object) */ @@ -83,7 +80,7 @@ public class TransactionalResourceHelper { return org.alfresco.repo.transaction.TransactionalResourceHelper.isResourcePresent(resourceKey); } - + /** * @see org.alfresco.repo.transaction.TransactionalResourceHelper#getMap(Object) */