public class BulkEditHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BULK_EDIT_PREFIX
Deprecated.
since 5.7.3. Now in
BulkEditService. |
static String |
CONTEXT_DATA
Deprecated.
since 5.7.3. Now in
BulkEditService. |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyMetadata(CoreSession session,
DocumentModel sourceDoc,
List<DocumentModel> targetDocs)
Deprecated.
since 5.7.3. Now in
BulkEditService. |
static List<String> |
getCommonLayouts(TypeManager typeManager,
List<DocumentModel> docs)
Returns the common layouts of the
docs for the edit mode. |
static List<String> |
getCommonLayouts(TypeManager typeManager,
List<DocumentModel> docs,
String mode)
Returns the common layouts of the
docs for the given layout mode. |
static List<String> |
getCommonSchemas(List<DocumentModel> docs)
Returns the common schemas of the
docs. |
protected static List<String> |
getPropertiesToCopy(DocumentModel sourceDoc)
Deprecated.
since 5.7.3. Now in
BulkEditServiceImpl. |
@Deprecated public static final String BULK_EDIT_PREFIX
BulkEditService.@Deprecated public static final String CONTEXT_DATA
BulkEditService.public static List<String> getCommonLayouts(TypeManager typeManager, List<DocumentModel> docs)
docs for the edit mode.public static List<String> getCommonLayouts(TypeManager typeManager, List<DocumentModel> docs, String mode)
docs for the given layout mode.public static List<String> getCommonSchemas(List<DocumentModel> docs)
docs.@Deprecated public static void copyMetadata(CoreSession session, DocumentModel sourceDoc, List<DocumentModel> targetDocs)
BulkEditService.sourceDoc) from sourceDoc to all the
targetDocs.session - the CoreSession to usesourceDoc - the doc where to get the metadata to copytargetDocs - the docs where to set the metadata@Deprecated protected static List<String> getPropertiesToCopy(DocumentModel sourceDoc)
BulkEditServiceImpl.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.Copyright © 2016 Nuxeo SA. All rights reserved.