Class SyncMBeanImpl

    • Constructor Detail

      • SyncMBeanImpl

        public SyncMBeanImpl​(@NotNull
                             @NotNull org.apache.jackrabbit.oak.api.ContentRepository repository,
                             @NotNull
                             @NotNull org.apache.jackrabbit.oak.spi.security.SecurityProvider securityProvider,
                             @NotNull
                             @NotNull SyncManager syncManager,
                             @NotNull
                             @NotNull String syncName,
                             @NotNull
                             @NotNull ExternalIdentityProviderManager idpManager,
                             @NotNull
                             @NotNull String idpName)
    • Method Detail

      • syncUsers

        @NotNull
        public @NotNull String[] syncUsers​(@NotNull
                                           @NotNull String[] userIds,
                                           boolean purge)
        Description copied from interface: SynchronizationMBean
        Synchronizes the local users with the given user ids.
        Specified by:
        syncUsers in interface SynchronizationMBean
        Parameters:
        userIds - the user ids
        purge - if true users that don't exist in the IDP are deleted.
        Returns:
        result messages.
      • syncAllUsers

        @NotNull
        public @NotNull String[] syncAllUsers​(boolean purge)
        Description copied from interface: SynchronizationMBean
        Synchronizes all local users with the given user ids. Note that this can be an expensive operation since all potential users need to be examined.
        Specified by:
        syncAllUsers in interface SynchronizationMBean
        Parameters:
        purge - if true users that don't exist in the IDP are deleted.
        Returns:
        result messages.
      • syncExternalUsers

        @NotNull
        public @NotNull String[] syncExternalUsers​(@NotNull
                                                   @NotNull String[] externalIds)
        Description copied from interface: SynchronizationMBean
        Synchronizes the external users with the given external ids.
        Specified by:
        syncExternalUsers in interface SynchronizationMBean
        Parameters:
        externalIds - the external id
        Returns:
        result messages.
      • syncAllExternalUsers

        @NotNull
        public @NotNull String[] syncAllExternalUsers()
        Description copied from interface: SynchronizationMBean
        Synchronizes all the external users, i.e. basically imports the entire IDP. Note that this can be an expensive operation.
        Specified by:
        syncAllExternalUsers in interface SynchronizationMBean
        Returns:
        result messages.
      • listOrphanedUsers

        @NotNull
        public @NotNull String[] listOrphanedUsers()
        Description copied from interface: SynchronizationMBean
        Returns a list of orphaned users, i.e. users that don't exist anymore on the IDP. Note that this can be an expensive operation since all potential users need to be examined.
        Specified by:
        listOrphanedUsers in interface SynchronizationMBean
        Returns:
        a list of the user ids of orphaned users.