Package com.atlassian.crowd.directory
Enum Class SynchronisableDirectoryProperties.SyncGroupMembershipsAfterAuth
java.lang.Object
java.lang.Enum<SynchronisableDirectoryProperties.SyncGroupMembershipsAfterAuth>
com.atlassian.crowd.directory.SynchronisableDirectoryProperties.SyncGroupMembershipsAfterAuth
- All Implemented Interfaces:
Serializable
,Comparable<SynchronisableDirectoryProperties.SyncGroupMembershipsAfterAuth>
,Constable
- Enclosing class:
- SynchronisableDirectoryProperties
public static enum SynchronisableDirectoryProperties.SyncGroupMembershipsAfterAuth
extends Enum<SynchronisableDirectoryProperties.SyncGroupMembershipsAfterAuth>
Allows configuring whether user groups should be synchronised when the user authenticates
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways sync group memberships during authentication - this was the default since 2.7, until 2.10 There is a potential performance impact on querying the groups on login, even if the list of memberships hasn't changed.Never synchronize group memberships during authentication - this was the default before this feature was introduced in 2.7 (CWD-3429)Sync when the user has been created as a part of the authentication process, - this is the new default since 2.10 (CWD-4197). -
Field Summary
FieldsModifier and TypeFieldDescriptionThis should be the default for new directories -
Method Summary
Modifier and TypeMethodDescriptionforDirectory
(Attributes directoryWithAttributes) getValue()
Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEVER
Never synchronize group memberships during authentication - this was the default before this feature was introduced in 2.7 (CWD-3429) -
ALWAYS
Always sync group memberships during authentication - this was the default since 2.7, until 2.10 There is a potential performance impact on querying the groups on login, even if the list of memberships hasn't changed. -
WHEN_AUTHENTICATION_CREATED_THE_USER
public static final SynchronisableDirectoryProperties.SyncGroupMembershipsAfterAuth WHEN_AUTHENTICATION_CREATED_THE_USERSync when the user has been created as a part of the authentication process, - this is the new default since 2.10 (CWD-4197). This is a compromise between the convenience of being able to log in (and being in the right groups) without waiting for a sync, and allows for faster subsequent authentication.
-
-
Field Details
-
DEFAULT
This should be the default for new directories
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
forDirectory
public static SynchronisableDirectoryProperties.SyncGroupMembershipsAfterAuth forDirectory(@Nonnull Attributes directoryWithAttributes) -
forValue
public static SynchronisableDirectoryProperties.SyncGroupMembershipsAfterAuth forValue(String attributeValue) -
getValue
-