test_class.declarator: userManager
test_class.modifier: private
test_class.original_string: private UserManager userManager;
test_class.type: UserManager
test_class.var_name: userManager
test_class.declarator: valueFactory
test_class.modifier: private
test_class.original_string: private ValueFactory valueFactory;
test_class.type: ValueFactory
test_class.var_name: valueFactory
test_class.declarator: syncCtx
test_class.modifier: private
test_class.original_string: private DefaultSyncContext syncCtx;
test_class.type: DefaultSyncContext
test_class.var_name: syncCtx
test_class.file: oak-auth-external/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/external/basic/DefaultSyncContextTest.java
test_class.identifier: DefaultSyncContextTest
test_class.superclass: extends AbstractExternalAuthTest
test_case.body: @Test
      public void testGetIdentityRefLocalUser() throws Exception {
          assertNull(DefaultSyncContext.getIdentityRef(getTestUser()));
      }
test_case.class_method_signature: DefaultSyncContextTest.testGetIdentityRefLocalUser()
test_case.full_signature: @Test public void testGetIdentityRefLocalUser()
test_case.identifier: testGetIdentityRefLocalUser
test_case.invocations: assertNull getIdentityRef getTestUser
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetIdentityRefLocalUser()
focal_class.declarator: log = LoggerFactory.getLogger(DefaultSyncContext.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(DefaultSyncContext.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: REP_EXTERNAL_ID = "rep:externalId"
focal_class.modifier: public static final
focal_class.original_string: public static final String REP_EXTERNAL_ID = "rep:externalId";
focal_class.type: String
focal_class.var_name: REP_EXTERNAL_ID
focal_class.declarator: REP_LAST_SYNCED = "rep:lastSynced"
focal_class.modifier: public static final
focal_class.original_string: public static final String REP_LAST_SYNCED = "rep:lastSynced";
focal_class.type: String
focal_class.var_name: REP_LAST_SYNCED
focal_class.declarator: config
focal_class.modifier: protected final
focal_class.original_string: protected final DefaultSyncConfig config;
focal_class.type: DefaultSyncConfig
focal_class.var_name: config
focal_class.declarator: idp
focal_class.modifier: protected final
focal_class.original_string: protected final ExternalIdentityProvider idp;
focal_class.type: ExternalIdentityProvider
focal_class.var_name: idp
focal_class.declarator: userManager
focal_class.modifier: protected final
focal_class.original_string: protected final UserManager userManager;
focal_class.type: UserManager
focal_class.var_name: userManager
focal_class.declarator: valueFactory
focal_class.modifier: protected final
focal_class.original_string: protected final ValueFactory valueFactory;
focal_class.type: ValueFactory
focal_class.var_name: valueFactory
focal_class.declarator: keepMissing
focal_class.modifier: protected
focal_class.original_string: protected boolean keepMissing;
focal_class.type: boolean
focal_class.var_name: keepMissing
focal_class.declarator: forceUserSync
focal_class.modifier: protected
focal_class.original_string: protected boolean forceUserSync;
focal_class.type: boolean
focal_class.var_name: forceUserSync
focal_class.declarator: forceGroupSync
focal_class.modifier: protected
focal_class.original_string: protected boolean forceGroupSync;
focal_class.type: boolean
focal_class.var_name: forceGroupSync
focal_class.declarator: now
focal_class.modifier: protected final
focal_class.original_string: protected final long now;
focal_class.type: long
focal_class.var_name: now
focal_class.declarator: nowValue
focal_class.modifier: protected final
focal_class.original_string: protected final Value nowValue;
focal_class.type: Value
focal_class.var_name: nowValue
focal_class.file: oak-auth-external/src/main/java/org/apache/jackrabbit/oak/spi/security/authentication/external/basic/DefaultSyncContext.java
focal_class.identifier: DefaultSyncContext
focal_class.interfaces: implements SyncContext
focal_class.class_method_signature: DefaultSyncContext.DefaultSyncContext(@NotNull DefaultSyncConfig config, @NotNull ExternalIdentityProvider idp, @NotNull UserManager userManager, @NotNull ValueFactory valueFactory)
focal_class.full_signature: public  DefaultSyncContext(@NotNull DefaultSyncConfig config, @NotNull ExternalIdentityProvider idp, @NotNull UserManager userManager, @NotNull ValueFactory valueFactory)
focal_class.identifier: DefaultSyncContext
focal_class.modifiers: public
focal_class.parameters: (@NotNull DefaultSyncConfig config, @NotNull ExternalIdentityProvider idp, @NotNull UserManager userManager, @NotNull ValueFactory valueFactory)
focal_class.signature:  DefaultSyncContext(@NotNull DefaultSyncConfig config, @NotNull ExternalIdentityProvider idp, @NotNull UserManager userManager, @NotNull ValueFactory valueFactory)
focal_class.class_method_signature: DefaultSyncContext.createSyncedIdentity(@Nullable Authorizable auth)
focal_class.full_signature: @Nullable public static DefaultSyncedIdentity createSyncedIdentity(@Nullable Authorizable auth)
focal_class.identifier: createSyncedIdentity
focal_class.modifiers: @Nullable public static
focal_class.parameters: (@Nullable Authorizable auth)
focal_class.return: DefaultSyncedIdentity
focal_class.signature: DefaultSyncedIdentity createSyncedIdentity(@Nullable Authorizable auth)
focal_class.class_method_signature: DefaultSyncContext.getIdentityRef(@Nullable Authorizable auth)
focal_class.full_signature: @Nullable public static ExternalIdentityRef getIdentityRef(@Nullable Authorizable auth)
focal_class.identifier: getIdentityRef
focal_class.modifiers: @Nullable public static
focal_class.parameters: (@Nullable Authorizable auth)
focal_class.return: ExternalIdentityRef
focal_class.signature: ExternalIdentityRef getIdentityRef(@Nullable Authorizable auth)
focal_class.class_method_signature: DefaultSyncContext.joinPaths(String... paths)
focal_class.full_signature: public static String joinPaths(String... paths)
focal_class.identifier: joinPaths
focal_class.modifiers: public static
focal_class.parameters: (String... paths)
focal_class.return: String
focal_class.signature: String joinPaths(String... paths)
focal_class.class_method_signature: DefaultSyncContext.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: DefaultSyncContext.isKeepMissing()
focal_class.full_signature: @Override public boolean isKeepMissing()
focal_class.identifier: isKeepMissing
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isKeepMissing()
focal_class.class_method_signature: DefaultSyncContext.setKeepMissing(boolean keepMissing)
focal_class.full_signature: @NotNull @Override public SyncContext setKeepMissing(boolean keepMissing)
focal_class.identifier: setKeepMissing
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (boolean keepMissing)
focal_class.return: SyncContext
focal_class.signature: SyncContext setKeepMissing(boolean keepMissing)
focal_class.class_method_signature: DefaultSyncContext.isForceUserSync()
focal_class.full_signature: @Override public boolean isForceUserSync()
focal_class.identifier: isForceUserSync
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isForceUserSync()
focal_class.class_method_signature: DefaultSyncContext.setForceUserSync(boolean forceUserSync)
focal_class.full_signature: @NotNull @Override public SyncContext setForceUserSync(boolean forceUserSync)
focal_class.identifier: setForceUserSync
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (boolean forceUserSync)
focal_class.return: SyncContext
focal_class.signature: SyncContext setForceUserSync(boolean forceUserSync)
focal_class.class_method_signature: DefaultSyncContext.isForceGroupSync()
focal_class.full_signature: @Override public boolean isForceGroupSync()
focal_class.identifier: isForceGroupSync
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isForceGroupSync()
focal_class.class_method_signature: DefaultSyncContext.setForceGroupSync(boolean forceGroupSync)
focal_class.full_signature: @Override @NotNull public SyncContext setForceGroupSync(boolean forceGroupSync)
focal_class.identifier: setForceGroupSync
focal_class.modifiers: @Override @NotNull public
focal_class.parameters: (boolean forceGroupSync)
focal_class.return: SyncContext
focal_class.signature: SyncContext setForceGroupSync(boolean forceGroupSync)
focal_class.class_method_signature: DefaultSyncContext.sync(@NotNull ExternalIdentity identity)
focal_class.full_signature: @NotNull @Override public SyncResult sync(@NotNull ExternalIdentity identity)
focal_class.identifier: sync
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@NotNull ExternalIdentity identity)
focal_class.return: SyncResult
focal_class.signature: SyncResult sync(@NotNull ExternalIdentity identity)
focal_class.class_method_signature: DefaultSyncContext.sync(@NotNull String id)
focal_class.full_signature: @NotNull @Override public SyncResult sync(@NotNull String id)
focal_class.identifier: sync
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@NotNull String id)
focal_class.return: SyncResult
focal_class.signature: SyncResult sync(@NotNull String id)
focal_class.class_method_signature: DefaultSyncContext.handleMissingIdentity(@NotNull String id,
                                                          @NotNull Authorizable authorizable,
                                                          @NotNull DebugTimer timer)
focal_class.full_signature: private DefaultSyncResultImpl handleMissingIdentity(@NotNull String id,
                                                          @NotNull Authorizable authorizable,
                                                          @NotNull DebugTimer timer)
focal_class.identifier: handleMissingIdentity
focal_class.modifiers: private
focal_class.parameters: (@NotNull String id,
                                                          @NotNull Authorizable authorizable,
                                                          @NotNull DebugTimer timer)
focal_class.return: DefaultSyncResultImpl
focal_class.signature: DefaultSyncResultImpl handleMissingIdentity(@NotNull String id,
                                                          @NotNull Authorizable authorizable,
                                                          @NotNull DebugTimer timer)
focal_class.class_method_signature: DefaultSyncContext.getAuthorizable(@NotNull ExternalIdentity external, @NotNull Class<T> type)
focal_class.full_signature: @Nullable protected T getAuthorizable(@NotNull ExternalIdentity external, @NotNull Class<T> type)
focal_class.identifier: getAuthorizable
focal_class.modifiers: @Nullable protected
focal_class.parameters: (@NotNull ExternalIdentity external, @NotNull Class<T> type)
focal_class.return: T
focal_class.signature: T getAuthorizable(@NotNull ExternalIdentity external, @NotNull Class<T> type)
focal_class.class_method_signature: DefaultSyncContext.createUser(@NotNull ExternalUser externalUser)
focal_class.full_signature: @NotNull protected User createUser(@NotNull ExternalUser externalUser)
focal_class.identifier: createUser
focal_class.modifiers: @NotNull protected
focal_class.parameters: (@NotNull ExternalUser externalUser)
focal_class.return: User
focal_class.signature: User createUser(@NotNull ExternalUser externalUser)
focal_class.class_method_signature: DefaultSyncContext.createGroup(@NotNull ExternalGroup externalGroup)
focal_class.full_signature: @NotNull protected Group createGroup(@NotNull ExternalGroup externalGroup)
focal_class.identifier: createGroup
focal_class.modifiers: @NotNull protected
focal_class.parameters: (@NotNull ExternalGroup externalGroup)
focal_class.return: Group
focal_class.signature: Group createGroup(@NotNull ExternalGroup externalGroup)
focal_class.class_method_signature: DefaultSyncContext.setExternalId(@NotNull Authorizable authorizable, @NotNull ExternalIdentity externalIdentity)
focal_class.full_signature: private void setExternalId(@NotNull Authorizable authorizable, @NotNull ExternalIdentity externalIdentity)
focal_class.identifier: setExternalId
focal_class.modifiers: private
focal_class.parameters: (@NotNull Authorizable authorizable, @NotNull ExternalIdentity externalIdentity)
focal_class.return: void
focal_class.signature: void setExternalId(@NotNull Authorizable authorizable, @NotNull ExternalIdentity externalIdentity)
focal_class.class_method_signature: DefaultSyncContext.syncUser(@NotNull ExternalUser external, @NotNull User user)
focal_class.full_signature: @NotNull protected DefaultSyncResultImpl syncUser(@NotNull ExternalUser external, @NotNull User user)
focal_class.identifier: syncUser
focal_class.modifiers: @NotNull protected
focal_class.parameters: (@NotNull ExternalUser external, @NotNull User user)
focal_class.return: DefaultSyncResultImpl
focal_class.signature: DefaultSyncResultImpl syncUser(@NotNull ExternalUser external, @NotNull User user)
focal_class.class_method_signature: DefaultSyncContext.syncGroup(@NotNull ExternalGroup external, @NotNull Group group)
focal_class.full_signature: @NotNull protected DefaultSyncResultImpl syncGroup(@NotNull ExternalGroup external, @NotNull Group group)
focal_class.identifier: syncGroup
focal_class.modifiers: @NotNull protected
focal_class.parameters: (@NotNull ExternalGroup external, @NotNull Group group)
focal_class.return: DefaultSyncResultImpl
focal_class.signature: DefaultSyncResultImpl syncGroup(@NotNull ExternalGroup external, @NotNull Group group)
focal_class.class_method_signature: DefaultSyncContext.syncExternalIdentity(@NotNull ExternalIdentity external,
                                        @NotNull Authorizable authorizable,
                                        @NotNull DefaultSyncConfig.Authorizable config)
focal_class.full_signature: private void syncExternalIdentity(@NotNull ExternalIdentity external,
                                        @NotNull Authorizable authorizable,
                                        @NotNull DefaultSyncConfig.Authorizable config)
focal_class.identifier: syncExternalIdentity
focal_class.modifiers: private
focal_class.parameters: (@NotNull ExternalIdentity external,
                                        @NotNull Authorizable authorizable,
                                        @NotNull DefaultSyncConfig.Authorizable config)
focal_class.return: void
focal_class.signature: void syncExternalIdentity(@NotNull ExternalIdentity external,
                                        @NotNull Authorizable authorizable,
                                        @NotNull DefaultSyncConfig.Authorizable config)
focal_class.class_method_signature: DefaultSyncContext.syncMembership(@NotNull ExternalIdentity external, @NotNull Authorizable auth, long depth)
focal_class.full_signature: protected void syncMembership(@NotNull ExternalIdentity external, @NotNull Authorizable auth, long depth)
focal_class.identifier: syncMembership
focal_class.modifiers: protected
focal_class.parameters: (@NotNull ExternalIdentity external, @NotNull Authorizable auth, long depth)
focal_class.return: void
focal_class.signature: void syncMembership(@NotNull ExternalIdentity external, @NotNull Authorizable auth, long depth)
focal_class.class_method_signature: DefaultSyncContext.applyMembership(@NotNull Authorizable member, @NotNull Set<String> groups)
focal_class.full_signature: protected void applyMembership(@NotNull Authorizable member, @NotNull Set<String> groups)
focal_class.identifier: applyMembership
focal_class.modifiers: protected
focal_class.parameters: (@NotNull Authorizable member, @NotNull Set<String> groups)
focal_class.return: void
focal_class.signature: void applyMembership(@NotNull Authorizable member, @NotNull Set<String> groups)
focal_class.class_method_signature: DefaultSyncContext.syncProperties(@NotNull ExternalIdentity ext, @NotNull Authorizable auth, @NotNull Map<String, String> mapping)
focal_class.full_signature: protected void syncProperties(@NotNull ExternalIdentity ext, @NotNull Authorizable auth, @NotNull Map<String, String> mapping)
focal_class.identifier: syncProperties
focal_class.modifiers: protected
focal_class.parameters: (@NotNull ExternalIdentity ext, @NotNull Authorizable auth, @NotNull Map<String, String> mapping)
focal_class.return: void
focal_class.signature: void syncProperties(@NotNull ExternalIdentity ext, @NotNull Authorizable auth, @NotNull Map<String, String> mapping)
focal_class.class_method_signature: DefaultSyncContext.isExpired(@NotNull Authorizable authorizable)
focal_class.full_signature: private boolean isExpired(@NotNull Authorizable authorizable)
focal_class.identifier: isExpired
focal_class.modifiers: private
focal_class.parameters: (@NotNull Authorizable authorizable)
focal_class.return: boolean
focal_class.signature: boolean isExpired(@NotNull Authorizable authorizable)
focal_class.class_method_signature: DefaultSyncContext.isExpired(@NotNull Authorizable auth, long expirationTime, @NotNull String type)
focal_class.full_signature: protected boolean isExpired(@NotNull Authorizable auth, long expirationTime, @NotNull String type)
focal_class.identifier: isExpired
focal_class.modifiers: protected
focal_class.parameters: (@NotNull Authorizable auth, long expirationTime, @NotNull String type)
focal_class.return: boolean
focal_class.signature: boolean isExpired(@NotNull Authorizable auth, long expirationTime, @NotNull String type)
focal_class.class_method_signature: DefaultSyncContext.createValue(@Nullable Object v)
focal_class.full_signature: @Nullable protected Value createValue(@Nullable Object v)
focal_class.identifier: createValue
focal_class.modifiers: @Nullable protected
focal_class.parameters: (@Nullable Object v)
focal_class.return: Value
focal_class.signature: Value createValue(@Nullable Object v)
focal_class.class_method_signature: DefaultSyncContext.createValues(@NotNull Collection<?> propValues)
focal_class.full_signature: @Nullable protected Value[] createValues(@NotNull Collection<?> propValues)
focal_class.identifier: createValues
focal_class.modifiers: @Nullable protected
focal_class.parameters: (@NotNull Collection<?> propValues)
focal_class.return: Value[]
focal_class.signature: Value[] createValues(@NotNull Collection<?> propValues)
focal_class.class_method_signature: DefaultSyncContext.isSameIDP(@Nullable Authorizable auth)
focal_class.full_signature: protected boolean isSameIDP(@Nullable Authorizable auth)
focal_class.identifier: isSameIDP
focal_class.modifiers: protected
focal_class.parameters: (@Nullable Authorizable auth)
focal_class.return: boolean
focal_class.signature: boolean isSameIDP(@Nullable Authorizable auth)
focal_class.class_method_signature: DefaultSyncContext.isSameIDP(@NotNull ExternalIdentityRef ref)
focal_class.full_signature: protected boolean isSameIDP(@NotNull ExternalIdentityRef ref)
focal_class.identifier: isSameIDP
focal_class.modifiers: protected
focal_class.parameters: (@NotNull ExternalIdentityRef ref)
focal_class.return: boolean
focal_class.signature: boolean isSameIDP(@NotNull ExternalIdentityRef ref)
focal_class.class_method_signature: DefaultSyncContext.debug(@NotNull String mgs, @NotNull Object... objects)
focal_class.full_signature: private static void debug(@NotNull String mgs, @NotNull Object... objects)
focal_class.identifier: debug
focal_class.modifiers: private static
focal_class.parameters: (@NotNull String mgs, @NotNull Object... objects)
focal_class.return: void
focal_class.signature: void debug(@NotNull String mgs, @NotNull Object... objects)
focal_method.body: @Nullable
      public static ExternalIdentityRef getIdentityRef(@Nullable Authorizable auth) throws RepositoryException {
          if (auth == null) {
              return null;
          }
          Value[] v = auth.getProperty(REP_EXTERNAL_ID);
          if (v == null || v.length == 0) {
              return null;
          }
          return ExternalIdentityRef.fromString(v[0].getString());
      }
focal_method.class_method_signature: DefaultSyncContext.getIdentityRef(@Nullable Authorizable auth)
focal_method.full_signature: @Nullable public static ExternalIdentityRef getIdentityRef(@Nullable Authorizable auth)
focal_method.identifier: getIdentityRef
focal_method.invocations: getProperty fromString getString
focal_method.modifiers: @Nullable public static
focal_method.parameters: (@Nullable Authorizable auth)
focal_method.return: ExternalIdentityRef
focal_method.signature: ExternalIdentityRef getIdentityRef(@Nullable Authorizable auth)