Class SyncMBeanImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.authentication.external.impl.jmx.SyncMBeanImpl
-
- All Implemented Interfaces:
SynchronizationMBean
public class SyncMBeanImpl extends Object implements SynchronizationMBean
Implementation of theSynchronizationMBeaninterface.
-
-
Constructor Summary
Constructors Constructor Description SyncMBeanImpl(@NotNull org.apache.jackrabbit.oak.api.ContentRepository repository, @NotNull org.apache.jackrabbit.oak.spi.security.SecurityProvider securityProvider, @NotNull SyncManager syncManager, @NotNull String syncName, @NotNull ExternalIdentityProviderManager idpManager, @NotNull String idpName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull StringgetIDPName()Returns the name of theExternalIdentityProviderthat this MBean operates on.@NotNull StringgetSyncHandlerName()Returns the name of theSyncHandlerthat this MBean operates on.@NotNull String[]listOrphanedUsers()Returns a list of orphaned users, i.e.@NotNull String[]purgeOrphanedUsers()Purges all orphaned users.@NotNull String[]syncAllExternalUsers()Synchronizes all the external users, i.e.@NotNull String[]syncAllUsers(boolean purge)Synchronizes all local users with the given user ids.@NotNull String[]syncExternalUsers(@NotNull String[] externalIds)Synchronizes the external users with the given external ids.@NotNull String[]syncUsers(@NotNull String[] userIds, boolean purge)Synchronizes the local users with the given user ids.
-
-
-
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
-
getSyncHandlerName
@NotNull public @NotNull String getSyncHandlerName()
Description copied from interface:SynchronizationMBeanReturns the name of theSyncHandlerthat this MBean operates on.- Specified by:
getSyncHandlerNamein interfaceSynchronizationMBean- Returns:
- the name of the sync handler.
-
getIDPName
@NotNull public @NotNull String getIDPName()
Description copied from interface:SynchronizationMBeanReturns the name of theExternalIdentityProviderthat this MBean operates on.- Specified by:
getIDPNamein interfaceSynchronizationMBean- Returns:
- the name of the IDP.
-
syncUsers
@NotNull public @NotNull String[] syncUsers(@NotNull @NotNull String[] userIds, boolean purge)
Description copied from interface:SynchronizationMBeanSynchronizes the local users with the given user ids.- Specified by:
syncUsersin interfaceSynchronizationMBean- Parameters:
userIds- the user idspurge- iftrueusers that don't exist in the IDP are deleted.- Returns:
- result messages.
-
syncAllUsers
@NotNull public @NotNull String[] syncAllUsers(boolean purge)
Description copied from interface:SynchronizationMBeanSynchronizes 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:
syncAllUsersin interfaceSynchronizationMBean- Parameters:
purge- iftrueusers 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:SynchronizationMBeanSynchronizes the external users with the given external ids.- Specified by:
syncExternalUsersin interfaceSynchronizationMBean- Parameters:
externalIds- the external id- Returns:
- result messages.
-
syncAllExternalUsers
@NotNull public @NotNull String[] syncAllExternalUsers()
Description copied from interface:SynchronizationMBeanSynchronizes all the external users, i.e. basically imports the entire IDP. Note that this can be an expensive operation.- Specified by:
syncAllExternalUsersin interfaceSynchronizationMBean- Returns:
- result messages.
-
listOrphanedUsers
@NotNull public @NotNull String[] listOrphanedUsers()
Description copied from interface:SynchronizationMBeanReturns 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:
listOrphanedUsersin interfaceSynchronizationMBean- Returns:
- a list of the user ids of orphaned users.
-
purgeOrphanedUsers
@NotNull public @NotNull String[] purgeOrphanedUsers()
Description copied from interface:SynchronizationMBeanPurges all orphaned users. this is similar to invokeSynchronizationMBean.syncUsers(String[], boolean)with the list of orphaned users. Note tha this can be an expensive operation since all potential users need to be examined.- Specified by:
purgeOrphanedUsersin interfaceSynchronizationMBean- Returns:
- result messages.
-
-