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
BULK_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, getLastModified, registerExtension, setLastModified, setModifiedNow, start, stop, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted, getApplicationStartedOrder
public 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)
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 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 DefaultComponent
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
Copyright © 2018 Nuxeo. All rights reserved.