Class SubsystemChainingAuthenticationComponent
- java.lang.Object
-
- org.alfresco.repo.security.authentication.AbstractAuthenticationComponent
-
- org.alfresco.repo.security.authentication.AbstractChainingAuthenticationComponent
-
- org.alfresco.repo.security.authentication.subsystems.SubsystemChainingAuthenticationComponent
-
- All Implemented Interfaces:
AuthenticationComponent,AuthenticationContext
public class SubsystemChainingAuthenticationComponent extends AbstractChainingAuthenticationComponent
An authentication component that chains across beans in multiple child application contexts corresponding to different 'subsystems' in a chain determined by aChildApplicationContextManager.- Author:
- dward
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.repo.security.authentication.AuthenticationComponent
AuthenticationComponent.UserNameValidationMode
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.security.authentication.AbstractAuthenticationComponent
logger
-
-
Constructor Summary
Constructors Constructor Description SubsystemChainingAuthenticationComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AuthenticationComponentgetAuthenticationComponent(java.lang.String instanceId)Get the authentication component with the specified nameprotected java.util.Collection<AuthenticationComponent>getUsableAuthenticationComponents()Gets the authentication components across which methods will chain.voidsetApplicationContextManager(ChildApplicationContextManager applicationContextManager)voidsetSourceBeanName(java.lang.String sourceBeanName)Sets the name of the bean to look up in the child application contexts.-
Methods inherited from class org.alfresco.repo.security.authentication.AbstractChainingAuthenticationComponent
authenticateImpl, getDefaultAdministratorUserNames, getDefaultGuestUserNames, implementationAllowsGuestLogin, setCurrentUser, setCurrentUser, testAuthenticate
-
Methods inherited from class org.alfresco.repo.security.authentication.AbstractAuthenticationComponent
authenticate, clearCurrentSecurityContext, getAllowGuestLogin, getCurrentAuthentication, getCurrentUserName, getGuestUserName, getGuestUserName, getNodeService, getNumberFailedAuthentications, getNumberSuccessfulAuthentications, getPersonService, getSystemUserName, getSystemUserName, getTransactionService, getUserDetails, getUserDomain, guestUserAuthenticationAllowed, isCurrentUserTheSystemUser, isGuestUserName, isSystemUserName, onAuthenticate, onFail, setAllowGuestLogin, setAuthenticationContext, setCurrentAuthentication, setDefaultAdministratorUserNameList, setDefaultAdministratorUserNames, setDefaultGuestUserNameList, setDefaultGuestUserNames, setGuestUserAsCurrentUser, setNodeService, setPersonService, setSystemUserAsCurrentUser, setSystemUserAsCurrentUser, setTransactionService, setUserDetails, setUserRegistrySynchronizer
-
-
-
-
Method Detail
-
setApplicationContextManager
public void setApplicationContextManager(ChildApplicationContextManager applicationContextManager)
- Parameters:
applicationContextManager- the applicationContextManager to set
-
setSourceBeanName
public void setSourceBeanName(java.lang.String sourceBeanName)
Sets the name of the bean to look up in the child application contexts.- Parameters:
sourceBeanName- the bean name
-
getUsableAuthenticationComponents
protected java.util.Collection<AuthenticationComponent> getUsableAuthenticationComponents()
Description copied from class:AbstractChainingAuthenticationComponentGets the authentication components across which methods will chain.- Specified by:
getUsableAuthenticationComponentsin classAbstractChainingAuthenticationComponent- Returns:
- the usable authentication components
-
getAuthenticationComponent
protected AuthenticationComponent getAuthenticationComponent(java.lang.String instanceId)
Description copied from class:AbstractChainingAuthenticationComponentGet the authentication component with the specified name- Specified by:
getAuthenticationComponentin classAbstractChainingAuthenticationComponent- Parameters:
instanceId- String- Returns:
- the authentication component or null if it does not exist
-
-