test_class.declarator: filterProvider
test_class.modifier: private
test_class.original_string: private FilterProvider filterProvider;
test_class.type: FilterProvider
test_class.var_name: filterProvider
test_class.declarator: importer
test_class.modifier: private
test_class.original_string: private PrincipalPolicyImporter importer;
test_class.type: PrincipalPolicyImporter
test_class.var_name: importer
test_class.file: oak-authorization-principalbased/src/test/java/org/apache/jackrabbit/oak/spi/security/authorization/principalbased/impl/PrincipalPolicyImporterTest.java
test_class.identifier: PrincipalPolicyImporterTest
test_class.superclass: extends AbstractPrincipalBasedTest
test_case.body: @Test(expected = IllegalStateException.class)
      public void testStartChildInfoWithoutPolicy() throws Exception {
          importer.startChildInfo(mock(NodeInfo.class), mock(List.class));
      }
test_case.class_method_signature: PrincipalPolicyImporterTest.testStartChildInfoWithoutPolicy()
test_case.full_signature: @Test(expected = IllegalStateException.class) public void testStartChildInfoWithoutPolicy()
test_case.identifier: testStartChildInfoWithoutPolicy
test_case.invocations: startChildInfo mock mock
test_case.modifiers: @Test(expected = IllegalStateException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testStartChildInfoWithoutPolicy()
focal_class.declarator: log = LoggerFactory.getLogger(PrincipalPolicyImporter.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(PrincipalPolicyImporter.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: session
focal_class.modifier: private
focal_class.original_string: private Session session;
focal_class.type: Session
focal_class.var_name: session
focal_class.declarator: mgrProvider
focal_class.modifier: private final
focal_class.original_string: private final MgrProvider mgrProvider;
focal_class.type: MgrProvider
focal_class.var_name: mgrProvider
focal_class.declarator: filterProvider
focal_class.modifier: private final
focal_class.original_string: private final FilterProvider filterProvider;
focal_class.type: FilterProvider
focal_class.var_name: filterProvider
focal_class.declarator: filter
focal_class.modifier: private
focal_class.original_string: private Filter filter;
focal_class.type: Filter
focal_class.var_name: filter
focal_class.declarator: authorizationConfiguration
focal_class.modifier: private
focal_class.original_string: private AuthorizationConfiguration authorizationConfiguration;
focal_class.type: AuthorizationConfiguration
focal_class.var_name: authorizationConfiguration
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: initialized
focal_class.modifier: private
focal_class.original_string: private boolean initialized;
focal_class.type: boolean
focal_class.var_name: initialized
focal_class.declarator: policy
focal_class.modifier: private
focal_class.original_string: private PrincipalPolicyImpl policy;
focal_class.type: PrincipalPolicyImpl
focal_class.var_name: policy
focal_class.declarator: entry
focal_class.modifier: private
focal_class.original_string: private Entry entry;
focal_class.type: Entry
focal_class.var_name: entry
focal_class.file: oak-authorization-principalbased/src/main/java/org/apache/jackrabbit/oak/spi/security/authorization/principalbased/impl/PrincipalPolicyImporter.java
focal_class.identifier: PrincipalPolicyImporter
focal_class.interfaces: implements ProtectedNodeImporter, ProtectedPropertyImporter, Constants
focal_class.class_method_signature: PrincipalPolicyImporter.PrincipalPolicyImporter(@NotNull FilterProvider filterProvider, @NotNull MgrProvider mgrProvider)
focal_class.full_signature:   PrincipalPolicyImporter(@NotNull FilterProvider filterProvider, @NotNull MgrProvider mgrProvider)
focal_class.identifier: PrincipalPolicyImporter
focal_class.parameters: (@NotNull FilterProvider filterProvider, @NotNull MgrProvider mgrProvider)
focal_class.signature:  PrincipalPolicyImporter(@NotNull FilterProvider filterProvider, @NotNull MgrProvider mgrProvider)
focal_class.class_method_signature: PrincipalPolicyImporter.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: PrincipalPolicyImporter.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: PrincipalPolicyImporter.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: PrincipalPolicyImporter.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: PrincipalPolicyImporter.start(@NotNull Tree protectedParent)
focal_class.full_signature: @Override public boolean start(@NotNull Tree protectedParent)
focal_class.identifier: start
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull Tree protectedParent)
focal_class.return: boolean
focal_class.signature: boolean start(@NotNull Tree protectedParent)
focal_class.class_method_signature: PrincipalPolicyImporter.end(@NotNull Tree protectedParent)
focal_class.full_signature: @Override public void end(@NotNull Tree protectedParent)
focal_class.identifier: end
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull Tree protectedParent)
focal_class.return: void
focal_class.signature: void end(@NotNull Tree protectedParent)
focal_class.class_method_signature: PrincipalPolicyImporter.startChildInfo(@NotNull NodeInfo childInfo, @NotNull List<PropInfo> propInfos)
focal_class.full_signature: @Override public void startChildInfo(@NotNull NodeInfo childInfo, @NotNull List<PropInfo> propInfos)
focal_class.identifier: startChildInfo
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull NodeInfo childInfo, @NotNull List<PropInfo> propInfos)
focal_class.return: void
focal_class.signature: void startChildInfo(@NotNull NodeInfo childInfo, @NotNull List<PropInfo> propInfos)
focal_class.class_method_signature: PrincipalPolicyImporter.endChildInfo()
focal_class.full_signature: @Override public void endChildInfo()
focal_class.identifier: endChildInfo
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void endChildInfo()
focal_class.class_method_signature: PrincipalPolicyImporter.isValidPrincipalProperty(@NotNull PropInfo propertyInfo, @NotNull PropertyDefinition def)
focal_class.full_signature: private boolean isValidPrincipalProperty(@NotNull PropInfo propertyInfo, @NotNull PropertyDefinition def)
focal_class.identifier: isValidPrincipalProperty
focal_class.modifiers: private
focal_class.parameters: (@NotNull PropInfo propertyInfo, @NotNull PropertyDefinition def)
focal_class.return: boolean
focal_class.signature: boolean isValidPrincipalProperty(@NotNull PropInfo propertyInfo, @NotNull PropertyDefinition def)
focal_class.class_method_signature: PrincipalPolicyImporter.isValidProtectedParent(@NotNull Tree protectedParent, @NotNull PrincipalPolicyImpl policy)
focal_class.full_signature: private static boolean isValidProtectedParent(@NotNull Tree protectedParent, @NotNull PrincipalPolicyImpl policy)
focal_class.identifier: isValidProtectedParent
focal_class.modifiers: private static
focal_class.parameters: (@NotNull Tree protectedParent, @NotNull PrincipalPolicyImpl policy)
focal_class.return: boolean
focal_class.signature: boolean isValidProtectedParent(@NotNull Tree protectedParent, @NotNull PrincipalPolicyImpl policy)
focal_class.class_method_signature: PrincipalPolicyImporter.getOakName(@Nullable String name)
focal_class.full_signature: @Nullable private String getOakName(@Nullable String name)
focal_class.identifier: getOakName
focal_class.modifiers: @Nullable private
focal_class.parameters: (@Nullable String name)
focal_class.return: String
focal_class.signature: String getOakName(@Nullable String name)
focal_class.class_method_signature: PrincipalPolicyImporter.getAccessControlManager()
focal_class.full_signature: private AccessControlManager getAccessControlManager()
focal_class.identifier: getAccessControlManager
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: AccessControlManager
focal_class.signature: AccessControlManager getAccessControlManager()
focal_class.class_method_signature: PrincipalPolicyImporter.getNamePathMapper()
focal_class.full_signature: private NamePathMapper getNamePathMapper()
focal_class.identifier: getNamePathMapper
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: NamePathMapper
focal_class.signature: NamePathMapper getNamePathMapper()
focal_method.body: @Override
      public void startChildInfo(@NotNull NodeInfo childInfo, @NotNull List<PropInfo> propInfos) throws RepositoryException {
          checkState(policy != null);
          String ntName = getOakName(childInfo.getPrimaryTypeName());
          if (NT_REP_PRINCIPAL_ENTRY.equals(ntName)) {
              if (entry != null) {
                  throw new ConstraintViolationException("Invalid child node sequence: Entries must not be nested.");
              }
              entry = new Entry(propInfos);
          } else if (NT_REP_RESTRICTIONS.equals(ntName)) {
              if (entry == null) {
                  throw new ConstraintViolationException("Invalid child node sequence: Restriction must be associated with an Entry");
              }
              entry.addRestrictions(propInfos);
          } else {
              throw new ConstraintViolationException("Invalid child node '"+childInfo.getName()+"' with type " + ntName);
          }
      }
focal_method.class_method_signature: PrincipalPolicyImporter.startChildInfo(@NotNull NodeInfo childInfo, @NotNull List<PropInfo> propInfos)
focal_method.full_signature: @Override public void startChildInfo(@NotNull NodeInfo childInfo, @NotNull List<PropInfo> propInfos)
focal_method.identifier: startChildInfo
focal_method.invocations: checkState getOakName getPrimaryTypeName equals equals addRestrictions getName
focal_method.modifiers: @Override public
focal_method.parameters: (@NotNull NodeInfo childInfo, @NotNull List<PropInfo> propInfos)
focal_method.return: void
focal_method.signature: void startChildInfo(@NotNull NodeInfo childInfo, @NotNull List<PropInfo> propInfos)