public class DefaultSyncConfig extends Object
DefaultSyncConfig defines how users and groups from an external source are synced into the repository using
the DefaultSyncHandler.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultSyncConfig.Authorizable
Base config class for users and groups
|
static class |
DefaultSyncConfig.Group
Group specific config
|
static class |
DefaultSyncConfig.User
User specific config.
|
| Constructor and Description |
|---|
DefaultSyncConfig() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Configures the name of this configuration
|
DefaultSyncConfig.Group |
group()
Returns the sync configuration for groups.
|
static DefaultSyncConfig |
of(org.apache.jackrabbit.oak.spi.security.ConfigurationParameters params)
Creates a new LDAP provider configuration based on the properties store in the given parameters.
|
DefaultSyncConfig |
setName(String name)
Sets the name
|
DefaultSyncConfig.User |
user()
Returns the sync configuration for users.
|
public static final String PARAM_NAME_DEFAULT
getName(),
Constant Field Values@Property(label="Sync Handler Name",
description="Name of this sync configuration. This is used to reference this handler by the login modules.",
value="default")
public static final String PARAM_NAME
getName(),
Constant Field Valuespublic static final long PARAM_USER_EXPIRATION_TIME_DEFAULT
@Property(label="User Expiration Time",
description="Duration in milliseconds until a synced user gets expired.",
longValue=3600000L)
public static final String PARAM_USER_EXPIRATION_TIME
public static final String[] PARAM_USER_AUTO_MEMBERSHIP_DEFAULT
@Property(label="User auto membership",
description="List of groups that a synced user is added to automatically",
value={},
cardinality=2147483647)
public static final String PARAM_USER_AUTO_MEMBERSHIP
public static final String[] PARAM_USER_PROPERTY_MAPPING_DEFAULT
@Property(label="User property mapping",
description="List mapping definition of local properties from external ones. eg: \'profile/email=mail\'.Use double quotes for fixed values. eg: \'profile/nt:primaryType=\"nt:unstructured\"",
value="rep:fullname=cn",
cardinality=2147483647)
public static final String PARAM_USER_PROPERTY_MAPPING
public static final String PARAM_USER_PATH_PREFIX_DEFAULT
@Property(label="User Path Prefix",
description="The path prefix used when creating new users.",
value="")
public static final String PARAM_USER_PATH_PREFIX
public static final long PARAM_USER_MEMBERSHIP_EXPIRATION_TIME_DEFAULT
@Property(label="User Membership Expiration",
description="Time in milliseconds after which membership expires.",
longValue=3600000L)
public static final String PARAM_USER_MEMBERSHIP_EXPIRATION_TIME
public static final int PARAM_USER_MEMBERSHIP_NESTING_DEPTH_DEFAULT
@Property(label="User membership nesting depth",
description="Returns the maximum depth of group nesting when membership relations are synced. A value of 0 effectively disables group membership lookup. A value of 1 only adds the direct groups of a user. This value has no effect when syncing individual groups only when syncing a users membership ancestry.",
intValue=0)
public static final String PARAM_USER_MEMBERSHIP_NESTING_DEPTH
public static final long PARAM_GROUP_EXPIRATION_TIME_DEFAULT
@Property(label="Group Expiration Time",
description="Duration in milliseconds until a synced group expires.",
longValue=86400000L)
public static final String PARAM_GROUP_EXPIRATION_TIME
public static final String[] PARAM_GROUP_AUTO_MEMBERSHIP_DEFAULT
@Property(label="Group auto membership",
description="List of groups that a synced group is added to automatically",
value={},
cardinality=2147483647)
public static final String PARAM_GROUP_AUTO_MEMBERSHIP
public static final String[] PARAM_GROUP_PROPERTY_MAPPING_DEFAULT
@Property(label="Group property mapping",
description="List mapping definition of local properties from external ones.",
value={},
cardinality=2147483647)
public static final String PARAM_GROUP_PROPERTY_MAPPING
public static final String PARAM_GROUP_PATH_PREFIX_DEFAULT
@Property(label="Group Path Prefix",
description="The path prefix used when creating new groups.",
value="")
public static final String PARAM_GROUP_PATH_PREFIX
public static DefaultSyncConfig of(org.apache.jackrabbit.oak.spi.security.ConfigurationParameters params)
params - the configuration parameters.public DefaultSyncConfig setName(@Nonnull String name)
name - the namethisgetName()public DefaultSyncConfig.User user()
public DefaultSyncConfig.Group group()
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.