Examples of ImportInfo


Examples of org.apache.jackrabbit.vault.fs.api.ImportInfo

                                String path = parentPath + a.getPlatformPath();
                                infos.put(path, new Info(Type.ADDED, path));
                            }
                        }

                        ImportInfo ret = info.out.close();
                        if (ret != null) {
                            allInfos.merge(ret);
                            if (verbose) {
                                for (Map.Entry e: ret.getModifications().entrySet()) {
                                    log.info("...comitting  {} {}", e.getValue(), e.getKey());
                                }
                            }
                        }
                        // modify parent
                        infos.put(info.parentFile.getPath(), new Info(Type.MODIFIED, info.parentFile.getPath()));

                    } else {
                        // this was a modification
                        ImportInfo ret = info.out.close();
                        if (ret != null) {
                            allInfos.merge(ret);
                        }
                        for (VaultFile file: info.original.values()) {
                            infos.put(file.getPath(), new Info(Type.MODIFIED, file.getPath()));
                            if (verbose) {
                                log.info("...comitting  UPD {}", file.getPath());
                            }
                        }
                        if (verbose && ret != null) {
                            for (Map.Entry e: ret.getModifications().entrySet()) {
                                log.info("...comitting  {} {}", e.getValue(), e.getKey());
                            }
                        }
                    }
                }
View Full Code Here

Examples of org.apache.jackrabbit.vault.fs.api.ImportInfo

     * @throws RepositoryException if an error occurs.
     */
    public ImportInfo remove(boolean recursive) throws RepositoryException {
        assertAttached();
        Node node = getNode();
        ImportInfo info = aggregator.remove(node, recursive, true);
        if (parent != null) {
            parent.invalidate();
        }
        return info;
    }
View Full Code Here

Examples of org.eclipse.dltk.compiler.IElementRequestor.ImportInfo

            .lastIndexOf(NamespaceReference.NAMESPACE_SEPARATOR);
        if (index >= 0) {
          name = name.substring(index + 1);
        }
      }
      ImportInfo info = new ImportInfo();
      String containerName;
      if (fLastNamespace == null) {
        containerName = GLOBAL_NAMESPACE_CONTAINER_NAME;
      } else {
        containerName = fLastNamespace.getName();
View Full Code Here

Examples of org.gatein.wsrp.consumer.migration.ImportInfo

                  {
                     errorCodeToHandle.put(failedPortletsForReason.getErrorCode(), failedPortletsForReason.getImportID());
                  }
               }

               return new ImportInfo(System.currentTimeMillis(), errorCodeToHandle, importIdToPortletContext);
            }
            catch (OperationNotSupported operationNotSupported)
            {
               throw new UnsupportedOperationException(operationNotSupported);
            }
View Full Code Here

Examples of org.gatein.wsrp.consumer.migration.ImportInfo

               portletsToImport.add(exportedPortlet);
            }
         }

         final WSRPConsumer consumer = getConsumer();
         ImportInfo info = consumer.importPortlets(currentExport.getExport(), WSRPUtils.transform(portletsToImport, SELECTABLE_TO_HANDLE));

         ConsumerStructureProvider structureProvider = consumer.getMigrationService().getStructureProvider();
         int importCount = 0;
         for (SelectablePortletHandle importedPortlet : portletsToImport)
         {
            String handle = importedPortlet.getHandle();
            PortletContext portletContext = info.getPortletContextFor(handle);
            if (portletContext != null)
            {
               structureProvider.assignPortletToWindow(portletContext, importedPortlet.getWindow(), importedPortlet.getPage(), handle);
               importCount++;
            }
         }

         // only display success message if we have imported at least one portlet successfully
         if (importCount > 0)
         {
            beanContext.createLocalizedMessage(BeanContext.STATUS, IMPORT_SUCCESS, beanContext.getInfoSeverity(), importCount);
         }

         Map<QName, List<String>> errorCodesToFailedPortletHandlesMapping = info.getErrorCodesToFailedPortletHandlesMapping();
         if (!errorCodesToFailedPortletHandlesMapping.isEmpty())
         {
            for (Map.Entry<QName, List<String>> entry : errorCodesToFailedPortletHandlesMapping.entrySet())
            {
               QName errorCode = entry.getKey();
View Full Code Here

Examples of org.gatein.wsrp.consumer.migration.ImportInfo

                  {
                     errorCodeToHandle.put(failedPortletsForReason.getErrorCode(), failedPortletsForReason.getImportID());
                  }
               }

               return new ImportInfo(System.currentTimeMillis(), errorCodeToHandle, importIdToPortletContext);
            }
            catch (OperationNotSupported operationNotSupported)
            {
               throw new UnsupportedOperationException(operationNotSupported);
            }
View Full Code Here

Examples of org.gatein.wsrp.consumer.migration.ImportInfo

               portletsToImport.add(exportedPortlet);
            }
         }

         final WSRPConsumer consumer = getConsumer();
         ImportInfo info = consumer.importPortlets(currentExport.getExport(), WSRPUtils.transform(portletsToImport, SELECTABLE_TO_HANDLE));

         ConsumerStructureProvider structureProvider = consumer.getMigrationService().getStructureProvider();
         int importCount = 0;
         for (SelectablePortletHandle importedPortlet : portletsToImport)
         {
            String handle = importedPortlet.getHandle();
            PortletContext portletContext = info.getPortletContextFor(handle);
            if (portletContext != null)
            {
               structureProvider.assignPortletToWindow(portletContext, importedPortlet.getWindow(), importedPortlet.getPage(), handle);
               importCount++;
            }
         }

         // only display success message if we have imported at least one portlet successfully
         if (importCount > 0)
         {
            beanContext.createLocalizedMessage(BeanContext.STATUS, IMPORT_SUCCESS, beanContext.getInfoSeverity(), importCount);
         }

         SortedMap<QName, List<String>> errorCodesToFailedPortletHandlesMapping = info.getErrorCodesToFailedPortletHandlesMapping();
         if (!errorCodesToFailedPortletHandlesMapping.isEmpty())
         {
            for (Map.Entry<QName, List<String>> entry : errorCodesToFailedPortletHandlesMapping.entrySet())
            {
               QName errorCode = entry.getKey();
View Full Code Here

Examples of org.gatein.wsrp.consumer.migration.ImportInfo

               {
                  errorCodeToHandle.put(failedPortletsForReason.getErrorCode(), failedPortletsForReason.getImportID());
               }
            }

            return new ImportInfo(System.currentTimeMillis(), errorCodeToHandle, importIdToPortletContext);
         }
         catch (OperationNotSupported operationNotSupported)
         {
            throw new UnsupportedOperationException(operationNotSupported);
         }
View Full Code Here

Examples of org.gatein.wsrp.consumer.migration.ImportInfo

                  {
                     errorCodeToHandle.put(failedPortletsForReason.getErrorCode(), failedPortletsForReason.getImportID());
                  }
               }

               return new ImportInfo(System.currentTimeMillis(), errorCodeToHandle, importIdToPortletContext);
            }
            catch (OperationNotSupported operationNotSupported)
            {
               throw new UnsupportedOperationException(operationNotSupported);
            }
View Full Code Here

Examples of org.python.pydev.core.ICodeCompletionASTManager.ImportInfo

            //list of Object[], IToken or ICompletionProposal
            List<Object> tokensList = new ArrayList<Object>();
            lazyStartShell(request);
            String trimmed = request.activationToken.replace('.', ' ').trim();

            ImportInfo importsTipper = getImportsTipperStr(request);

            int line = request.doc.getLineOfOffset(request.documentOffset);
            IRegion region = request.doc.getLineInformation(line);

            ICompletionState state = new CompletionState(line, request.documentOffset - region.getOffset(), null,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.