Seam.GetSelectedDocuments in Sections
Still trying to access the list of selected docs in sections :
the action category for my button is
CURRENT_SELECTION_SECTIONS_LIST
the “Selection is not empty” has been replaced by a custom EL
#{documentsListsManager.isWorkingListEmpty("CURRENT_SELECTION_SECTIONS") == false}
This works but Seam.GetSelectedDocuments is useless : i have to contribute a new, not very original, operation in Nuxeo IDE
@Operation(id=GetSectionSelectedDocuments.ID, category=Constants.CAT_FETCH, requires=Constants.SEAM_CONTEXT, label="GetSectionSelectedDocuments", description="")
public class GetSectionSelectedDocuments {
public static final String ID = "Seam.GetSectionSelectedDocuments";
protected @Context OperationContext ctx;
@OperationMethod
public DocumentModelList run() throws Exception {
List<DocumentModel> res =
OperationHelper.getDocumentListManager().getWorkingList(
DocumentsListsManager.CURRENT_DOCUMENT_SECTION_SELECTION);
return new DocumentModelListImpl(res);
}
}
But I meet the following error: could not access: DocumentsListsManager (?)
Seems there's been a problem with studio / ide / instance update :
everything is working fine with this soultion.
What a pity these kind of operations referencing constants do not accept a parameter : if i want to the same with deleted documents, it seems i ll have to create another operation …