01-31-2013 11:00 AM
02-01-2013 02:54 AM
private List<NodeRef> getRepositoryPackageContents(NodeRef workflowPackage)
{
List<NodeRef> contents = new ArrayList<NodeRef>();
// get existing workflow package items
List<ChildAssociationRef> packageAssocs = protectedNodeService.getChildAssocs(workflowPackage);
for (ChildAssociationRef assoc : packageAssocs)
{
// create our Node representation from the NodeRef
NodeRef nodeRef = assoc.getChildRef();
QName assocType = assoc.getTypeQName();
if (!protectedNodeService.exists(nodeRef))
{
if (logger.isDebugEnabled())
logger.debug("Ignoring " + nodeRef + " as it has been removed from the repository");
}
else if (!ContentModel.ASSOC_CONTAINS.equals(assocType) && !WorkflowModel.ASSOC_PACKAGE_CONTAINS.equals(assocType))
{
if (logger.isDebugEnabled())
logger.debug("Ignoring " + nodeRef + " as it has an invalid association type: "+assocType);
}
else
{
if (checkTypeIsInDataDictionary(nodeRef))
{
contents.add(nodeRef);
}
}
}
return contents;
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.