public class BulkEditServiceImpl extends DefaultComponent implements BulkEditService
BulkEditService.| Modifier and Type | Field and Description |
|---|---|
static VersioningOption |
DEFAULT_VERSIONING_OPTION
Deprecated.
since 9.1 automatic versioning mechanism has been moved to versioning service, this field is not used
anymore
|
protected VersioningOption |
defaultVersioningOption
Deprecated.
since 9.1 automatic versioning mechanism has been moved to versioning service, this field is not used
anymore
|
static String |
VERSIONING_EP |
lastModified, nameBULK_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, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStarted, getApplicationStartedOrderpublic static final String VERSIONING_EP
@Deprecated public static final VersioningOption DEFAULT_VERSIONING_OPTION
@Deprecated 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 © 2019 Nuxeo. All rights reserved.