mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-2812 Update following review comments.
The class dependency used to determine the classes to include based on the initial services is: Depth 0: Service interfaces. Depth 1: ClearanceLevel <- SecurityClearanceService RecordsManagementActionCondition <- RecordsManagementActionService ClassificationAspectProperties <- ContentClassificationService Version <- RecordableVersionConfigService, RecordableVersionService Role <- FilePlanRoleService CaveatGroupType <- CaveatSchemeService RecordsManagementEvent <- RecordsManagementEventService Group <- CapabilityService RelationshipDisplayName <- RelationshipService RecordsManagementActionResult <- RecordsManagementActionService RecordsManagementAction <- RecordsManagementActionService Relationship <- RelationshipService ProtectedModelArtifact <- ModelSecurityService ReportGenerator <- ReportService RecordsManagementSearchParameters <- RecordsManagementSearchService SecurityClearance <- SecurityClearanceService SortDirection <- CaveatSchemeService RecordsManagementEventType <- RecordsManagementEventService Report <- ReportService UserQueryParams <- SecurityClearanceService CaveatMarkSortField <- CaveatSchemeService ProtectedProperty <- ModelSecurityService RelationshipDefinition <- RelationshipService Capability <- FilePlanRoleService, CapabilityService ExemptionCategory <- ClassificationSchemeService CaveatGroup <- CaveatMarkingService, CaveatSchemeService ClassificationReason <- ClassificationSchemeService ProtectedAspect <- ModelSecurityService MetadataReferral <- ReferralAdminService, ReferredMetadataService CaveatMark <- CaveatClearanceService, CaveatMarkingService, ContentClassificationService, CaveatSchemeService, ClassificationSchemeService SavedSearchDetails <- RecordsManagementSearchService IdentifierGenerator <- IdentifierService Depth 2: RecordsManagementActionConditionDefinition <- RecordsManagementActionCondition ReferralRegistry <- MetadataReferral ClassificationSchemeEntity <- ExemptionCategory, ClassificationReason RecordsManagementActionDefinition <- RecordsManagementAction ReportDetails <- SavedSearchDetails SortItem <- RecordsManagementSearchParameters SavedSearchDetailsCompatibility <- SavedSearchDetails Depth 3: RecordsManagementModel <- SavedSearchDetailsCompatibility Depth 4: RecordsManagementCustomModel <- RecordsManagementModel
This commit is contained in:
@@ -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();
|
||||
|
@@ -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;
|
||||
|
@@ -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
|
||||
|
@@ -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();
|
||||
|
@@ -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<String, DataSet> details of all available data sets
|
||||
*/
|
||||
Map<String, DataSet> 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<String, DataSet> 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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
{
|
||||
/**
|
||||
|
@@ -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;
|
||||
|
@@ -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
|
||||
|
@@ -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 */
|
||||
|
@@ -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<Pair<NodeRef, NodeRef>> result = new ArrayList<Pair<NodeRef, NodeRef>>(resultSet.length());
|
||||
for (ChildAssociationRef childAssoc : resultSet.getChildAssocRefs())
|
||||
{
|
||||
result.add(new Pair<NodeRef, NodeRef>(childAssoc.getParentRef(), childAssoc.getChildRef()));
|
||||
result.add(new Pair<NodeRef, NodeRef>(childAssoc.getParentRef(), childAssoc.getChildRef()));
|
||||
}
|
||||
|
||||
// return results
|
||||
|
@@ -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
|
||||
*/
|
||||
|
@@ -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;
|
||||
|
@@ -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
|
||||
{
|
||||
/**
|
||||
|
@@ -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
|
||||
*/
|
||||
|
@@ -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)
|
||||
*/
|
||||
|
Reference in New Issue
Block a user