test_class.declarator: importer
test_class.modifier: private
test_class.original_string: private CugImporter importer;
test_class.type: CugImporter
test_class.var_name: importer
test_class.file: oak-authorization-cug/src/test/java/org/apache/jackrabbit/oak/spi/security/authorization/cug/impl/CugImporterTest.java
test_class.identifier: CugImporterTest
test_class.superclass: extends AbstractCugTest
test_case.body: @Test(expected = IllegalStateException.class)
      public void testInitTwice() {
          Session session = mock(Session.class);
          assertTrue(importer.init(session, root, getNamePathMapper(), true, ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW, new ReferenceChangeTracker(), getSecurityProvider()));
          importer.init(session, root, getNamePathMapper(), true, ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW, new ReferenceChangeTracker(), getSecurityProvider());
      }
test_case.class_method_signature: CugImporterTest.testInitTwice()
test_case.full_signature: @Test(expected = IllegalStateException.class) public void testInitTwice()
test_case.identifier: testInitTwice
test_case.invocations: mock assertTrue init getNamePathMapper getSecurityProvider init getNamePathMapper getSecurityProvider
test_case.modifiers: @Test(expected = IllegalStateException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testInitTwice()
focal_class.declarator: log = LoggerFactory.getLogger(CugImporter.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(CugImporter.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: mountInfoProvider
focal_class.modifier: private final
focal_class.original_string: private final MountInfoProvider mountInfoProvider;
focal_class.type: MountInfoProvider
focal_class.var_name: mountInfoProvider
focal_class.declarator: initialized
focal_class.modifier: private
focal_class.original_string: private boolean initialized;
focal_class.type: boolean
focal_class.var_name: initialized
focal_class.declarator: supportedPaths
focal_class.modifier: private
focal_class.original_string: private Set<String> supportedPaths;
focal_class.type: Set<String>
focal_class.var_name: supportedPaths
focal_class.declarator: importBehavior
focal_class.modifier: private
focal_class.original_string: private int importBehavior;
focal_class.type: int
focal_class.var_name: importBehavior
focal_class.declarator: principalManager
focal_class.modifier: private
focal_class.original_string: private PrincipalManager principalManager;
focal_class.type: PrincipalManager
focal_class.var_name: principalManager
focal_class.file: oak-authorization-cug/src/main/java/org/apache/jackrabbit/oak/spi/security/authorization/cug/impl/CugImporter.java
focal_class.identifier: CugImporter
focal_class.interfaces: implements ProtectedPropertyImporter, CugConstants
focal_class.class_method_signature: CugImporter.CugImporter(@NotNull MountInfoProvider mountInfoProvider)
focal_class.full_signature:   CugImporter(@NotNull MountInfoProvider mountInfoProvider)
focal_class.identifier: CugImporter
focal_class.parameters: (@NotNull MountInfoProvider mountInfoProvider)
focal_class.signature:  CugImporter(@NotNull MountInfoProvider mountInfoProvider)
focal_class.class_method_signature: CugImporter.init(@NotNull Session session, @NotNull Root root, @NotNull NamePathMapper namePathMapper, boolean isWorkspaceImport, int uuidBehavior, @NotNull ReferenceChangeTracker referenceTracker, @NotNull SecurityProvider securityProvider)
focal_class.full_signature: @Override public boolean init(@NotNull Session session, @NotNull Root root, @NotNull NamePathMapper namePathMapper, boolean isWorkspaceImport, int uuidBehavior, @NotNull ReferenceChangeTracker referenceTracker, @NotNull SecurityProvider securityProvider)
focal_class.identifier: init
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull Session session, @NotNull Root root, @NotNull NamePathMapper namePathMapper, boolean isWorkspaceImport, int uuidBehavior, @NotNull ReferenceChangeTracker referenceTracker, @NotNull SecurityProvider securityProvider)
focal_class.return: boolean
focal_class.signature: boolean init(@NotNull Session session, @NotNull Root root, @NotNull NamePathMapper namePathMapper, boolean isWorkspaceImport, int uuidBehavior, @NotNull ReferenceChangeTracker referenceTracker, @NotNull SecurityProvider securityProvider)
focal_class.class_method_signature: CugImporter.processReferences()
focal_class.full_signature: @Override public void processReferences()
focal_class.identifier: processReferences
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void processReferences()
focal_class.class_method_signature: CugImporter.handlePropInfo(@NotNull Tree parent, @NotNull PropInfo protectedPropInfo, @NotNull PropertyDefinition def)
focal_class.full_signature: @Override public boolean handlePropInfo(@NotNull Tree parent, @NotNull PropInfo protectedPropInfo, @NotNull PropertyDefinition def)
focal_class.identifier: handlePropInfo
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull Tree parent, @NotNull PropInfo protectedPropInfo, @NotNull PropertyDefinition def)
focal_class.return: boolean
focal_class.signature: boolean handlePropInfo(@NotNull Tree parent, @NotNull PropInfo protectedPropInfo, @NotNull PropertyDefinition def)
focal_class.class_method_signature: CugImporter.propertiesCompleted(@NotNull Tree protectedParent)
focal_class.full_signature: @Override public void propertiesCompleted(@NotNull Tree protectedParent)
focal_class.identifier: propertiesCompleted
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull Tree protectedParent)
focal_class.return: void
focal_class.signature: void propertiesCompleted(@NotNull Tree protectedParent)
focal_class.class_method_signature: CugImporter.isValid(@NotNull PropInfo propInfo, @NotNull PropertyDefinition def)
focal_class.full_signature: private boolean isValid(@NotNull PropInfo propInfo, @NotNull PropertyDefinition def)
focal_class.identifier: isValid
focal_class.modifiers: private
focal_class.parameters: (@NotNull PropInfo propInfo, @NotNull PropertyDefinition def)
focal_class.return: boolean
focal_class.signature: boolean isValid(@NotNull PropInfo propInfo, @NotNull PropertyDefinition def)
focal_method.body: @Override
      public boolean init(@NotNull Session session, @NotNull Root root, @NotNull NamePathMapper namePathMapper, boolean isWorkspaceImport, int uuidBehavior, @NotNull ReferenceChangeTracker referenceTracker, @NotNull SecurityProvider securityProvider) {
          if (initialized) {
              throw new IllegalStateException("Already initialized");
          }
          try {
              ConfigurationParameters config = securityProvider.getConfiguration(AuthorizationConfiguration.class).getParameters();
              supportedPaths = CugUtil.getSupportedPaths(config, mountInfoProvider);
              importBehavior = CugUtil.getImportBehavior(config);
  
              if (isWorkspaceImport) {
                  PrincipalConfiguration pConfig = securityProvider.getConfiguration(PrincipalConfiguration.class);
                  principalManager = pConfig.getPrincipalManager(root, namePathMapper);
              } else {
                  principalManager = ((JackrabbitSession) session).getPrincipalManager();
              }
              initialized = true;
          } catch (RepositoryException e) {
              log.warn("Error while initializing cug importer", e);
          }
          return initialized;
      }
focal_method.class_method_signature: CugImporter.init(@NotNull Session session, @NotNull Root root, @NotNull NamePathMapper namePathMapper, boolean isWorkspaceImport, int uuidBehavior, @NotNull ReferenceChangeTracker referenceTracker, @NotNull SecurityProvider securityProvider)
focal_method.full_signature: @Override public boolean init(@NotNull Session session, @NotNull Root root, @NotNull NamePathMapper namePathMapper, boolean isWorkspaceImport, int uuidBehavior, @NotNull ReferenceChangeTracker referenceTracker, @NotNull SecurityProvider securityProvider)
focal_method.identifier: init
focal_method.invocations: getParameters getConfiguration getSupportedPaths getImportBehavior getConfiguration getPrincipalManager getPrincipalManager warn
focal_method.modifiers: @Override public
focal_method.parameters: (@NotNull Session session, @NotNull Root root, @NotNull NamePathMapper namePathMapper, boolean isWorkspaceImport, int uuidBehavior, @NotNull ReferenceChangeTracker referenceTracker, @NotNull SecurityProvider securityProvider)
focal_method.return: boolean
focal_method.signature: boolean init(@NotNull Session session, @NotNull Root root, @NotNull NamePathMapper namePathMapper, boolean isWorkspaceImport, int uuidBehavior, @NotNull ReferenceChangeTracker referenceTracker, @NotNull SecurityProvider securityProvider)