@Test public void testInitImportUUIDBehaviorRemove() throws Exception { assertTrue(importer.init(mockJackrabbitSession(), root, getNamePathMapper(), isWorkspaceImport(), ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING, new ReferenceChangeTracker(), getSecurityProvider())); }
@Override public boolean init(@NotNull Session session, @NotNull Root root, @NotNull NamePathMapper namePathMapper, boolean isWorkspaceImport, int uuidBehavior, @NotNull ReferenceChangeTracker referenceTracker, @NotNull SecurityProvider securityProvider) { if (!(session instanceof JackrabbitSession)) { log.debug("Importing protected user content requires a JackrabbitSession"); return false; } this.root = root; this.namePathMapper = namePathMapper; this.referenceTracker = referenceTracker; if (initialized) { throw new IllegalStateException("Already initialized"); } if (uuidBehavior == ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW) { log.debug("ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW isn't supported when importing users or groups."); return false; } if (!canInitUserManager((JackrabbitSession) session, isWorkspaceImport)) { return false; } userManager = new UserManagerImpl(root, new PartialValueFactory(namePathMapper), securityProvider); initialized = true; return initialized; }
UserImporter implements ProtectedPropertyImporter, ProtectedNodeImporter, UserConstants { @Override public boolean init(@NotNull Session session, @NotNull Root root, @NotNull NamePathMapper namePathMapper, boolean isWorkspaceImport, int uuidBehavior, @NotNull ReferenceChangeTracker referenceTracker, @NotNull SecurityProvider securityProvider) { if (!(session instanceof JackrabbitSession)) { log.debug("Importing protected user content requires a JackrabbitSession"); return false; } this.root = root; this.namePathMapper = namePathMapper; this.referenceTracker = referenceTracker; if (initialized) { throw new IllegalStateException("Already initialized"); } if (uuidBehavior == ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW) { log.debug("ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW isn't supported when importing users or groups."); return false; } if (!canInitUserManager((JackrabbitSession) session, isWorkspaceImport)) { return false; } userManager = new UserManagerImpl(root, new PartialValueFactory(namePathMapper), securityProvider); initialized = true; return initialized; } }
UserImporter implements ProtectedPropertyImporter, ProtectedNodeImporter, UserConstants { @Override public boolean init(@NotNull Session session, @NotNull Root root, @NotNull NamePathMapper namePathMapper, boolean isWorkspaceImport, int uuidBehavior, @NotNull ReferenceChangeTracker referenceTracker, @NotNull SecurityProvider securityProvider) { if (!(session instanceof JackrabbitSession)) { log.debug("Importing protected user content requires a JackrabbitSession"); return false; } this.root = root; this.namePathMapper = namePathMapper; this.referenceTracker = referenceTracker; if (initialized) { throw new IllegalStateException("Already initialized"); } if (uuidBehavior == ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW) { log.debug("ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW isn't supported when importing users or groups."); return false; } if (!canInitUserManager((JackrabbitSession) session, isWorkspaceImport)) { return false; } userManager = new UserManagerImpl(root, new PartialValueFactory(namePathMapper), securityProvider); initialized = true; return initialized; } UserImporter(ConfigurationParameters config); }
UserImporter implements ProtectedPropertyImporter, ProtectedNodeImporter, UserConstants { @Override public boolean init(@NotNull Session session, @NotNull Root root, @NotNull NamePathMapper namePathMapper, boolean isWorkspaceImport, int uuidBehavior, @NotNull ReferenceChangeTracker referenceTracker, @NotNull SecurityProvider securityProvider) { if (!(session instanceof JackrabbitSession)) { log.debug("Importing protected user content requires a JackrabbitSession"); return false; } this.root = root; this.namePathMapper = namePathMapper; this.referenceTracker = referenceTracker; if (initialized) { throw new IllegalStateException("Already initialized"); } if (uuidBehavior == ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW) { log.debug("ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW isn't supported when importing users or groups."); return false; } if (!canInitUserManager((JackrabbitSession) session, isWorkspaceImport)) { return false; } userManager = new UserManagerImpl(root, new PartialValueFactory(namePathMapper), securityProvider); initialized = true; return initialized; } UserImporter(ConfigurationParameters config); @Override boolean init(@NotNull Session session, @NotNull Root root, @NotNull NamePathMapper namePathMapper,
            boolean isWorkspaceImport, int uuidBehavior,
            @NotNull ReferenceChangeTracker referenceTracker, @NotNull SecurityProvider securityProvider); @Override boolean handlePropInfo(@NotNull Tree parent, @NotNull PropInfo propInfo, @NotNull PropertyDefinition def); @Override void propertiesCompleted(@NotNull Tree protectedParent); @Override void processReferences(); @Override boolean start(@NotNull Tree protectedParent); @Override void startChildInfo(@NotNull NodeInfo childInfo, @NotNull List<PropInfo> propInfos); @Override void endChildInfo(); @Override void end(@NotNull Tree protectedParent); }
UserImporter implements ProtectedPropertyImporter, ProtectedNodeImporter, UserConstants { @Override public boolean init(@NotNull Session session, @NotNull Root root, @NotNull NamePathMapper namePathMapper, boolean isWorkspaceImport, int uuidBehavior, @NotNull ReferenceChangeTracker referenceTracker, @NotNull SecurityProvider securityProvider) { if (!(session instanceof JackrabbitSession)) { log.debug("Importing protected user content requires a JackrabbitSession"); return false; } this.root = root; this.namePathMapper = namePathMapper; this.referenceTracker = referenceTracker; if (initialized) { throw new IllegalStateException("Already initialized"); } if (uuidBehavior == ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW) { log.debug("ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW isn't supported when importing users or groups."); return false; } if (!canInitUserManager((JackrabbitSession) session, isWorkspaceImport)) { return false; } userManager = new UserManagerImpl(root, new PartialValueFactory(namePathMapper), securityProvider); initialized = true; return initialized; } UserImporter(ConfigurationParameters config); @Override boolean init(@NotNull Session session, @NotNull Root root, @NotNull NamePathMapper namePathMapper,
            boolean isWorkspaceImport, int uuidBehavior,
            @NotNull ReferenceChangeTracker referenceTracker, @NotNull SecurityProvider securityProvider); @Override boolean handlePropInfo(@NotNull Tree parent, @NotNull PropInfo propInfo, @NotNull PropertyDefinition def); @Override void propertiesCompleted(@NotNull Tree protectedParent); @Override void processReferences(); @Override boolean start(@NotNull Tree protectedParent); @Override void startChildInfo(@NotNull NodeInfo childInfo, @NotNull List<PropInfo> propInfos); @Override void endChildInfo(); @Override void end(@NotNull Tree protectedParent);  }