mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-01 14:41:46 +00:00
REPO-3035: Service Pack: MNT-10220: Request to add the following functionality classes to the public API
- added BatchProcessor, BatchProcessorWorkProvider, BatchProcessWorkerAdaptor, DefaultCopyBehaviourCallback and CopyDetail classes to the public API
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
*/
|
||||
package org.alfresco.repo.batch;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
/**
|
||||
@@ -33,6 +35,7 @@ import java.util.Collection;
|
||||
* @author Derek Hulley
|
||||
* @since 3.4
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public interface BatchProcessWorkProvider<T>
|
||||
{
|
||||
/**
|
||||
|
@@ -43,6 +43,7 @@ import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.ThreadPoolExecutor;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
import org.alfresco.error.AlfrescoRuntimeException;
|
||||
import org.alfresco.repo.node.integrity.IntegrityException;
|
||||
import org.alfresco.repo.transaction.AlfrescoTransactionSupport;
|
||||
@@ -66,6 +67,7 @@ import org.springframework.context.ApplicationEventPublisher;
|
||||
*
|
||||
* @author dward
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class BatchProcessor<T> implements BatchMonitor
|
||||
{
|
||||
/** The factory for all new threads */
|
||||
@@ -530,6 +532,7 @@ public class BatchProcessor<T> implements BatchMonitor
|
||||
/**
|
||||
* Adaptor that allows implementations to only implement {@link #process(Object)}
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public static abstract class BatchProcessWorkerAdaptor<TT> implements BatchProcessWorker<TT>
|
||||
{
|
||||
/**
|
||||
|
@@ -29,6 +29,7 @@ import java.io.Serializable;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
|
||||
@@ -40,6 +41,7 @@ import org.alfresco.service.namespace.QName;
|
||||
* @author Derek Hulley
|
||||
* @since 3.2
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class CopyDetails
|
||||
{
|
||||
private final NodeRef sourceNodeRef;
|
||||
|
@@ -28,6 +28,7 @@ package org.alfresco.repo.copy;
|
||||
import java.io.Serializable;
|
||||
import java.util.Map;
|
||||
|
||||
import org.alfresco.api.AlfrescoPublicApi;
|
||||
import org.alfresco.repo.copy.traitextender.DefaultCopyBehaviourCallbackExtension;
|
||||
import org.alfresco.repo.copy.traitextender.DefaultCopyBehaviourCallbackTrait;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
@@ -55,6 +56,7 @@ import org.alfresco.util.Pair;
|
||||
* @author Derek Hulley
|
||||
* @since 3.2
|
||||
*/
|
||||
@AlfrescoPublicApi
|
||||
public class DefaultCopyBehaviourCallback extends AbstractCopyBehaviourCallback implements Extensible
|
||||
{
|
||||
private static CopyBehaviourCallback instance = new DefaultCopyBehaviourCallback();
|
||||
|
Reference in New Issue
Block a user