首页 \ 问答 \ 用于复制多线程文件夹结构的CMIS访问者模式?(CMIS Visitor pattern for copying folder structure multithreaded?)

用于复制多线程文件夹结构的CMIS访问者模式?(CMIS Visitor pattern for copying folder structure multithreaded?)

我想将一个特定的文件夹结构从一个Alfresco实例复制到另一个实例。

此文件夹结构包含应移动的大量数据,但仅包含不超过30天的数据。

我想实现一个基于访问者模式的java工具,它遍历文件夹结构。 如果访问了节点,我会锁定节点并继续前进,如果没有访问,我会将节点复制到另一个实例。

这是一个好主意还是有人有其他想法或经验?

关心Kaffi


I would like to copy a specific folder structure from one instance of Alfresco to another.

This folder structures includes huge amount of data which should moved, but only this one which are not older than 30 days.

I thought to implement a visitor pattern based java tool which iterates through the folder structure. If the node was visited I would lock the node and go forward, if it wasn't visited I would copy the node to the other instance.

Is this a good Idea or do somebody have other ideas, or experiance with that?

Regards Kaffi


原文:https://stackoverflow.com/questions/37213490
更新时间:2024-04-15 10:04

最满意答案

“倒序”是预期的结果。

如果你愿意,你可以在CSS规范中挖掘,但是你的例子应该是应该的。

如果您希望它们以与标记相同的顺序显示,请将.container向右浮动,其剩余的孩子。

更新了jsfiddle


That 'inverted order' is the intended result.

You can dig around in the CSS Specification if you'd like, but your example renders as it ought to.

If you'd like them to display in the same order as the markup, float the .container right, its children left.

Updated jsfiddle

相关问答

更多
  • “倒序”是预期的结果。 如果你愿意,你可以在CSS规范中挖掘,但是你的例子应该是应该的。 如果您希望它们以与标记相同的顺序显示,请将.container向右浮动,其剩余的孩子。 更新了jsfiddle That 'inverted order' is the intended result. You can dig around in the CSS Specification if you'd like, but your example renders as it ought to. If you'd ...
  • 尝试 它不会有验证问题,箭头将有一个“1” 约束验证:当元素具有允许的值步长时,应用算法将字符串转换为由元素值给出的字符串的数字的结果是数字,并且从步长基数中减去的数字不是整数允许的值步长的倍数,该元素遭受步进不匹配。 以下范围控件仅接受0..1范围内的值,并允许该范围内的256个步骤: 以下控制允许选择任何时间,以 ...
  • 是。 IEEE浮点数和双精度数的排列方式使您可以通过对原始二进制表示进行无符号比较来比较它们。 从float转换为原始整数和返回的函数是java.lang.Float.floatToIntBits和java.lang.Float.intBitsToFloat 。 这些功能是处理器内在函数,因此它们的成本极低。 多头和双打也是如此。 这里的转换函数是java.lang.Double.doubleToLongBits和java.lang.Double.longBitsToDouble 。 请注意,如果要对整数使 ...
  • 在你的例子中,可能有可能使用float:left用于不均匀的块和float:right对于偶数块而言是float:right的,但通常只使用css是不可能的。 您将需要javascript或2个单独的列(或组合......)。 由于您已经使用了javascript,因此在数组中加载所有可见块并将它们分成两列非常容易。 In your example it might be possible using float:left for the uneven blocks and float:right for ...
  • 你clear: left在你不想在浮动元素旁边冒泡的第一个元素上。 .test + * { clear: left; } 或者...因为它有一个固定的宽度,所以不要首先浮动.test 。 You put clear: left on the first element that you don't want to bubble up beside the floated element. .test + * { clear: left; } or … since it has a fixed width ...
  • 你的问题是你有100%+ 1px有几种方法可以解决一个是盒子模块的技巧 section{box-sizing: border-box;} 另外就是把它的尺寸计算出来之前也很会工作 your problem is you have 100% + 1px there is several method to solve that one is trick of box module section{box-sizing: border-box;} other is to calculate your siz ...
  • 当我尝试像这样创建一个单浮点数组时,我得到: (make-array 2 :element-type 'double-float :initial-contents #(3.0 4.0)) 你是在尝试创建一个单浮点数组 (你的文本说的是什么)还是一个双浮点数组 (代码建议的那个)? 要创建一个双浮点数组 ,你可以使用(make-array ...:element-type'double-float ...) ,并且创建一个单浮点数组 ,你可以使用(make-array ...:element类型'单一浮动 ...
  • 该特定方法采用Object类型的数组。 float类型不会扩展Object类,但Float会扩展。 Float sortedData[]=new Float[100]; ... Arrays.sort(sortedData,Collections.reverseOrder()); That specific method, takes an array of type Object. The type float does not extend the Object class, but Float do ...
  • 即使我的jsfiddle适用于Firefox,您也应该尝试使用for属性:

    Even if my jsfidd ...
  • 您无法对这些数据进行排序,将整个值解析为一个数字: function int_arr(a, b) { return parseFloat(a) - parseFloat(b); // parseFloat('5,089.8 ft2') -> 5 } 您需要拆分空间上的值并将数字转换为浮点表示,删除, 因此'5,089.8 ft2'在用于比较时变为5089.8 ,而不是5 function int_arr(a, b) { var na = a.split(' ')[0].replace(',' ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。