use of org.nuxeo.drive.service.VersioningFileSystemItemFactory in project nuxeo-drive-server by nuxeo.
the class NuxeoDriveSetVersioningOptions method run.
@OperationMethod
public void run() {
NuxeoDriveIntegrationTestsHelper.checkOperationAllowed();
FileSystemItemAdapterService fileSystemItemAdapterService = Framework.getService(FileSystemItemAdapterService.class);
VersioningFileSystemItemFactory defaultFileSystemItemFactory = (VersioningFileSystemItemFactory) ((FileSystemItemAdapterServiceImpl) fileSystemItemAdapterService).getFileSystemItemFactory("defaultFileSystemItemFactory");
if (delay != null) {
defaultFileSystemItemFactory.setVersioningDelay(Double.parseDouble(delay));
}
if (option != null) {
defaultFileSystemItemFactory.setVersioningOption(VersioningOption.valueOf(option));
}
}
Aggregations