public class SecurityConfigSection extends ConfigSection
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SectionName |
| Constructor and Description |
|---|
SecurityConfigSection(ServerConfiguration config)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDomainMapping(DomainMapping mapping)
Add a domain mapping
|
AccessControlManager |
getAccessControlManager()
Get the access control manager that is used to control per share access
|
org.springframework.extensions.config.ConfigElement |
getAccessControlManagerParameters()
Return the access control manager initialization parameters
|
java.util.List |
getDomainMappings()
Return the domain mappings
|
AccessControlList |
getGlobalAccessControls()
Return the global access control list
|
java.lang.String |
getJCEProvider()
Return the JCE provider class name
|
ShareMapper |
getShareMapper()
Return the share mapper
|
org.springframework.extensions.config.ConfigElement |
getShareMapperParameters()
Return the share mapper initialization parameters
|
UserAccountList |
getUserAccounts()
Return the user account list.
|
UsersInterface |
getUsersInterface()
Return the users interface
|
boolean |
hasAccessControlManager()
Check if there is an access control manager configured
|
boolean |
hasDomainMappings()
Check if there are any domain mappings defined
|
boolean |
hasGlobalAccessControls()
Check if the global access control list is configured
|
boolean |
hasUserAccounts()
Determine if there are any user accounts defined.
|
int |
setAccessControlManager(AccessControlManager aclMgr)
Set the access control manager to be used to control per share access
|
int |
setAccessControlManager(java.lang.String aclMgrClass,
org.springframework.extensions.config.ConfigElement params)
Set the access control manager to be used to control per share access
|
int |
setGlobalAccessControls(AccessControlList acls)
Set the global access control list
|
int |
setJCEProvider(java.lang.String providerClass)
Set the JCE provider
|
int |
setShareMapper(ShareMapper shareMapper)
Set the share mapper
|
int |
setShareMapper(java.lang.String mapperClass,
org.springframework.extensions.config.ConfigElement params)
Set the share mapper
|
int |
setUserAccounts(UserAccountList users)
Set the user account list.
|
int |
setUsersInterface(java.lang.String usersClass,
org.springframework.extensions.config.ConfigElement params)
Set the users interface to provide user account information
|
closeConfig, fireConfigurationChange, getSectionName, getServerConfiguration, isUpdated, setUpdatedpublic static final java.lang.String SectionName
public SecurityConfigSection(ServerConfiguration config)
config - ServerConfigurationpublic final boolean hasAccessControlManager()
public final AccessControlManager getAccessControlManager()
public final boolean hasGlobalAccessControls()
public final AccessControlList getGlobalAccessControls()
public final org.springframework.extensions.config.ConfigElement getAccessControlManagerParameters()
public final ShareMapper getShareMapper()
public final org.springframework.extensions.config.ConfigElement getShareMapperParameters()
public final UserAccountList getUserAccounts()
public final UsersInterface getUsersInterface()
public final java.lang.String getJCEProvider()
public final boolean hasUserAccounts()
public final boolean hasDomainMappings()
public final java.util.List getDomainMappings()
public final int setAccessControlManager(java.lang.String aclMgrClass,
org.springframework.extensions.config.ConfigElement params)
throws InvalidConfigurationException
aclMgrClass - Stringparams - ConfigElementInvalidConfigurationExceptionpublic final int setAccessControlManager(AccessControlManager aclMgr) throws InvalidConfigurationException
aclMgr - the access control manager to be used to control per share accessInvalidConfigurationExceptionpublic final int setJCEProvider(java.lang.String providerClass)
throws InvalidConfigurationException
providerClass - StringInvalidConfigurationExceptionpublic final int setShareMapper(java.lang.String mapperClass,
org.springframework.extensions.config.ConfigElement params)
throws InvalidConfigurationException
mapperClass - Stringparams - ConfigElementInvalidConfigurationExceptionpublic final int setShareMapper(ShareMapper shareMapper) throws InvalidConfigurationException
shareMapper - pre-initialized share mapperInvalidConfigurationExceptionpublic final int setUserAccounts(UserAccountList users) throws InvalidConfigurationException
users - UserAccountListInvalidConfigurationExceptionpublic final int setUsersInterface(java.lang.String usersClass,
org.springframework.extensions.config.ConfigElement params)
throws InvalidConfigurationException
usersClass - Stringparams - ConfigElementInvalidConfigurationExceptionpublic final int setGlobalAccessControls(AccessControlList acls) throws InvalidConfigurationException
acls - AccessControlListInvalidConfigurationExceptionpublic final void addDomainMapping(DomainMapping mapping)
mapping - DomainMappingCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.