public class BulkEditServiceImpl extends DefaultComponent implements BulkEditService
BulkEditService
.Modifier and Type | Field and Description |
---|---|
static VersioningOption |
DEFAULT_VERSIONING_OPTION |
static String |
VERSIONING_EP |
BULK_EDIT_PREFIX, CONTEXT_DATA
Constructor and Description |
---|
BulkEditServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
updateDocuments(CoreSession session,
DocumentModel sourceDoc,
List<DocumentModel> targetDocs)
Copy all the marked properties (stored in the ContextData of
sourceDoc ) from sourceDoc to all the
targetDocs . |
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtension
public static final String VERSIONING_EP
public static final VersioningOption DEFAULT_VERSIONING_OPTION
public void updateDocuments(CoreSession session, DocumentModel sourceDoc, List<DocumentModel> targetDocs) throws ClientException
BulkEditService
sourceDoc
) from sourceDoc
to all the
targetDocs
.updateDocuments
in interface BulkEditService
session
- the CoreSession
to usesourceDoc
- the doc where to get the properties to copytargetDocs
- the docs where to set the propertiesClientException
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
Copyright © 2015 Nuxeo SA. All rights reserved.