private static void setParentModuleProperties ( ComponentDto componentDto , PathAwareVisitor . Path < ComponentDtoHolder > path ) { componentDto . setProjectUuid ( path . root ( ) . getDto ( ) . uuid ( ) ) ; ComponentDto parentModule = from ( path . getCurrentPath ( ) ) . filter ( ParentModulePathElement . INSTANCE ) . first ( ) . get ( ) . getElement ( ) . getDto ( ) ; componentDto . setUuidPath ( formatUuidPathFromParent ( path . parent ( ) . getDto ( ) ) ) ; componentDto . setRootUuid ( parentModule . uuid ( ) ) ; componentDto . setModuleUuid ( parentModule . uuid ( ) ) ; componentDto . setModuleUuidPath ( parentModule . moduleUuidPath ( ) ) ; }
Applies to a node of type either DIRECTORY or FILE