05-17-2011 06:14 AM
protected void executeImpl(Action action, NodeRef node) {
// TODO Auto-generated method stub
logger.debug("executeImpl");
//logger del nombre del nodo, funciona bien y me da su nombre
logger.debug("node.name: "+nodeService.getProperty(node, ContentModel.PROP_NAME));
//Cojo el parent del nodo
ChildAssociationRef childAssociationRef = nodeService.getPrimaryParent(node);
NodeRef parent = childAssociationRef.getParentRef();
//logger del nombre del parent, funciona correctamente y me da el nombre del parent
logger.debug("parent.name: "+nodeService.getProperty(parent, ContentModel.PROP_NAME));
//Aqui es donde tengo los problemas, teniendo el parent no consigo obtener el nodo de otro fuchero
NodeRef nodoPrueba = nodeService.getChildByName(parent, ContentModel.PROP_CONTENT, "prueba.txt");
NodeRef nodoPrueba2 = nodeService.getChildByName(parent, ContentModel.PROP_CONTENT, "eec2e919-9bd8-44ef-9315-99b554bf5d3a");
// el nodeRef del nodo: workspace://SpacesStore/eec2e919-9bd8-44ef-9315-99b554bf5d3a
}
05-17-2011 07:28 AM
NodeRef nodoPrueba = fileFolderService.searchSimple(parent, "prueba.txt");
05-18-2011 02:58 AM
05-18-2011 04:25 AM
05-19-2011 02:11 AM
NodeRef nodoPrueba = nodeService.getChildByName(parent, ContentModel.ASSOC_CONTAINS, "prueba.txt");
NodeRef nodoPrueba = fileFolderService.searchSimple(parent, "prueba.txt");
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.