public class BulkEditServiceImpl extends DefaultComponent implements BulkEditService
BulkEditService.| Modifier and Type | Field and Description |
|---|---|
static VersioningOption |
DEFAULT_VERSIONING_OPTION |
protected VersioningOption |
defaultVersioningOption |
static String |
VERSIONING_EP |
lastModifiedBULK_EDIT_PREFIX, CONTEXT_DATA| Constructor and Description |
|---|
BulkEditServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkIn(DocumentModel doc)
Deprecated.
since 7.3. The option is passed to the CoreSession#saveDocument method.
|
protected List<String> |
getPropertiesToCopy(DocumentModel sourceDoc)
Extracts the properties to be copied from
sourceDoc. |
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, setModifiedNow, unregisterExtensionpublic static final String VERSIONING_EP
public static final VersioningOption DEFAULT_VERSIONING_OPTION
protected VersioningOption defaultVersioningOption
public BulkEditServiceImpl()
public void updateDocuments(CoreSession session, DocumentModel sourceDoc, List<DocumentModel> targetDocs)
BulkEditServicesourceDoc) from sourceDoc to all the
targetDocs.updateDocuments in interface BulkEditServicesession - the CoreSession to usesourceDoc - the doc where to get the properties to copytargetDocs - the docs where to set the propertiesprotected List<String> getPropertiesToCopy(DocumentModel sourceDoc)
sourceDoc. The properties are stored in the ContextData of
sourceDoc: the key is the xpath property, the value is true if the property has to be copied,
false otherwise.@Deprecated protected void checkIn(DocumentModel doc)
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution in class DefaultComponentCopyright © 2016 Nuxeo SA. All rights reserved.