用于复制多线程文件夹结构的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
最满意答案
“倒序”是预期的结果。
如果你愿意,你可以在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.
相关问答
更多-
HTML浮点数元素顺序(HTML float right element order)[2022-01-18]
“倒序”是预期的结果。 如果你愿意,你可以在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 ... -
HTML 5输入type =“数字”元素,用于Chrome上的浮点数(HTML 5 input type=“number” element for floating point numbers on Chrome)[2022-04-25]
尝试 它不会有验证问题,箭头将有一个“1” 约束验证:当元素具有允许的值步长时,应用算法将字符串转换为由元素值给出的字符串的数字的结果是数字,并且从步长基数中减去的数字不是整数允许的值步长的倍数,该元素遭受步进不匹配。 以下范围控件仅接受0..1范围内的值,并允许该范围内的256个步骤: 以下控制允许选择任何时间,以 ... -
是。 IEEE浮点数和双精度数的排列方式使您可以通过对原始二进制表示进行无符号比较来比较它们。 从float转换为原始整数和返回的函数是java.lang.Float.floatToIntBits和java.lang.Float.intBitsToFloat 。 这些功能是处理器内在函数,因此它们的成本极低。 多头和双打也是如此。 这里的转换函数是java.lang.Double.doubleToLongBits和java.lang.Double.longBitsToDouble 。 请注意,如果要对整数使 ...
-
CSS float导致空格(CSS float causes blank space)[2022-03-09]
在你的例子中,可能有可能使用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 float in the same element)[2021-08-15]
你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 ... -
清除CSS中的浮点数(Clear the float in CSS)[2020-01-25]
你的问题是你有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 ... -
在lisp中从double-float创建一个单浮点数组?(Create an array of single-float from double-float in lisp?)[2021-07-07]
当我尝试像这样创建一个单浮点数组时,我得到: (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 ...
-
html输入元素顺序(html input element order)[2023-08-23]
即使我的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(',' ...