本文整理匯總了Java中org.alfresco.repo.transfer.TransferCommons類的典型用法代碼示例。如果您正苦於以下問題:Java TransferCommons類的具體用法?Java TransferCommons怎麽用?Java TransferCommons使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
TransferCommons類屬於org.alfresco.repo.transfer包,在下文中一共展示了TransferCommons類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: processNode
import org.alfresco.repo.transfer.TransferCommons; //導入依賴的package包/類
protected void processNode(TransferManifestNormalNode node)
{
//Skip over any nodes that are not parented with a cm:contains association or
//are not content nodes (we don't need their content)
if (!ContentModel.ASSOC_CONTAINS.equals(node.getPrimaryParentAssoc().getTypeQName()) ||
!ContentModel.TYPE_CONTENT.equals(node.getAncestorType()))
{
return;
}
Serializable value = node.getProperties().get(ContentModel.PROP_CONTENT);
if ((value != null) && ContentData.class.isAssignableFrom(value.getClass()))
{
ContentData srcContent = (ContentData) value;
if (srcContent.getContentUrl() != null && !srcContent.getContentUrl().isEmpty())
{
// Only ask for content if content is new or if contentUrl is modified
boolean contentisMissing = fileTransferReceiver.isContentNewOrModified(
node.getNodeRef().toString(), srcContent.getContentUrl());
if (contentisMissing)
{
if (log.isDebugEnabled())
{
log.debug("No node on destination, content is required: " + srcContent.getContentUrl());
}
out.missingContent(node.getNodeRef(), ContentModel.PROP_CONTENT,
TransferCommons.URLToPartName(srcContent.getContentUrl()));
}
}
}
}
開發者ID:Alfresco,項目名稱:alfresco-file-transfer-receiver,代碼行數:33,代碼來源:FileTransferReceiverRequisiteManifestProcessor.java