Package de.aservo.ldap.adapter.backend
Class MirroredCrowdDirectoryBackend
- java.lang.Object
-
- de.aservo.ldap.adapter.backend.ProxyDirectoryBackend
-
- de.aservo.ldap.adapter.backend.MirroredCrowdDirectoryBackend
-
- All Implemented Interfaces:
DirectoryBackend,NestedDirectoryBackend
public class MirroredCrowdDirectoryBackend extends ProxyDirectoryBackend
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_APP_NAMEThe constant CONFIG_APP_NAME.static StringCONFIG_AUDIT_LOG_PAGE_LIMITThe constant CONFIG_AUDIT_LOG_PAGE_LIMIT.static StringCONFIG_AUDIT_LOG_PAGE_SIZEThe constant CONFIG_AUDIT_LOG_PAGE_SIZE.static StringCONFIG_FORCE_FULL_SYNC_ON_BOOTThe constant CONFIG_FORCE_FULL_SYNC_ON_BOOT.static StringCONFIG_REST_BASE_URLThe constant CONFIG_REST_BASE_URL.static StringCONFIG_REST_USER_PWThe constant CONFIG_REST_USER_PW.static StringCONFIG_REST_USERNAMEThe constant CONFIG_REST_USERNAME.static StringCONFIG_SYNC_PAGE_SIZEThe constant CONFIG_SYNC_PAGE_SIZE.-
Fields inherited from class de.aservo.ldap.adapter.backend.ProxyDirectoryBackend
config, directoryBackend
-
-
Constructor Summary
Constructors Constructor Description MirroredCrowdDirectoryBackend(ServerConfiguration config, NestedDirectoryBackend directoryBackend)Instantiates a new directory backend.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidshutdown()Shutdown method.voidstartup()Startup method.voidwithReadAccess(Runnable block)Check if the caches need a reset.<T> TwithReadAccess(Supplier<T> block)Check if the caches need a reset.voidwithWriteAccess(Runnable block)Check if the caches need a reset.<T> TwithWriteAccess(Supplier<T> block)Check if the caches need a reset.-
Methods inherited from class de.aservo.ldap.adapter.backend.ProxyDirectoryBackend
dropAllGroups, dropAllUsers, dropGroup, dropMembership, dropUser, getAllGroups, getAllGroups, getAllUsers, getAllUsers, getAuthenticatedUser, getDirectChildGroupsOfGroup, getDirectGroupsOfUser, getDirectParentGroupsOfGroup, getDirectUsersOfGroup, getGroup, getId, getMemberships, getTransitiveChildGroupsOfGroup, getTransitiveGroupsOfUser, getTransitiveParentGroupsOfGroup, getTransitiveUsersOfGroup, getUser, requireReset, runQueryExpression, upsertAllGroups, upsertAllGroups, upsertAllUsers, upsertAllUsers, upsertGroup, upsertMembership, upsertUser
-
-
-
-
Field Detail
-
CONFIG_APP_NAME
public static final String CONFIG_APP_NAME
The constant CONFIG_APP_NAME.- See Also:
- Constant Field Values
-
CONFIG_REST_USERNAME
public static final String CONFIG_REST_USERNAME
The constant CONFIG_REST_USERNAME.- See Also:
- Constant Field Values
-
CONFIG_REST_USER_PW
public static final String CONFIG_REST_USER_PW
The constant CONFIG_REST_USER_PW.- See Also:
- Constant Field Values
-
CONFIG_REST_BASE_URL
public static final String CONFIG_REST_BASE_URL
The constant CONFIG_REST_BASE_URL.- See Also:
- Constant Field Values
-
CONFIG_SYNC_PAGE_SIZE
public static final String CONFIG_SYNC_PAGE_SIZE
The constant CONFIG_SYNC_PAGE_SIZE.- See Also:
- Constant Field Values
-
CONFIG_AUDIT_LOG_PAGE_SIZE
public static final String CONFIG_AUDIT_LOG_PAGE_SIZE
The constant CONFIG_AUDIT_LOG_PAGE_SIZE.- See Also:
- Constant Field Values
-
CONFIG_AUDIT_LOG_PAGE_LIMIT
public static final String CONFIG_AUDIT_LOG_PAGE_LIMIT
The constant CONFIG_AUDIT_LOG_PAGE_LIMIT.- See Also:
- Constant Field Values
-
CONFIG_FORCE_FULL_SYNC_ON_BOOT
public static final String CONFIG_FORCE_FULL_SYNC_ON_BOOT
The constant CONFIG_FORCE_FULL_SYNC_ON_BOOT.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MirroredCrowdDirectoryBackend
public MirroredCrowdDirectoryBackend(ServerConfiguration config, NestedDirectoryBackend directoryBackend)
Instantiates a new directory backend.- Parameters:
config- config the config instance of the serverdirectoryBackend- the directory backend
-
-
Method Detail
-
startup
public void startup()
Description copied from interface:DirectoryBackendStartup method.- Specified by:
startupin interfaceDirectoryBackend- Overrides:
startupin classProxyDirectoryBackend
-
shutdown
public void shutdown()
Description copied from interface:DirectoryBackendShutdown method.- Specified by:
shutdownin interfaceDirectoryBackend- Overrides:
shutdownin classProxyDirectoryBackend
-
withReadAccess
public <T> T withReadAccess(Supplier<T> block)
Description copied from interface:NestedDirectoryBackendCheck if the caches need a reset.- Specified by:
withReadAccessin interfaceNestedDirectoryBackend- Overrides:
withReadAccessin classProxyDirectoryBackend- Parameters:
block- the supplier object executed within the session- Returns:
- the result of the supplier code block
-
withReadAccess
public void withReadAccess(Runnable block)
Description copied from interface:NestedDirectoryBackendCheck if the caches need a reset.- Specified by:
withReadAccessin interfaceNestedDirectoryBackend- Overrides:
withReadAccessin classProxyDirectoryBackend- Parameters:
block- the runnable object executed within the session
-
withWriteAccess
public <T> T withWriteAccess(Supplier<T> block)
Description copied from interface:NestedDirectoryBackendCheck if the caches need a reset.- Specified by:
withWriteAccessin interfaceNestedDirectoryBackend- Overrides:
withWriteAccessin classProxyDirectoryBackend- Parameters:
block- the supplier object executed within the session- Returns:
- the result of the supplier code block
-
withWriteAccess
public void withWriteAccess(Runnable block)
Description copied from interface:NestedDirectoryBackendCheck if the caches need a reset.- Specified by:
withWriteAccessin interfaceNestedDirectoryBackend- Overrides:
withWriteAccessin classProxyDirectoryBackend- Parameters:
block- the runnable object executed within the session
-
-