public class BulkEditHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BULK_EDIT_PREFIX |
Modifier and Type | Method and Description |
---|---|
static void |
copyMetadata(CoreSession session,
DocumentModel sourceDoc,
List<DocumentModel> targetDocs)
Copy all the marked properties (stored in the ContextData of
sourceDoc ) from sourceDoc to all the targetDocs . |
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 . |
public static final String BULK_EDIT_PREFIX
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
.public static void copyMetadata(CoreSession session, DocumentModel sourceDoc, List<DocumentModel> targetDocs) throws ClientException
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 metadatasClientException
Copyright © 2011 Nuxeo SA. All Rights Reserved.