Package net.shibboleth.idp.admin.impl
Class InitializeAdministrativeProfileContextTree
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.profile.action.AbstractProfileAction
-
- org.opensaml.profile.action.AbstractConditionalProfileAction
-
- net.shibboleth.idp.profile.AbstractProfileAction
-
- net.shibboleth.idp.admin.impl.InitializeAdministrativeProfileContextTree
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class InitializeAdministrativeProfileContextTree extends AbstractProfileAction
An action that processes settings from a suppliedAdministrativeFlowDescriptorto prepare the profile context tree for subsequent use by an administrative profile flow.This action finalizes settings like non-browser compatibility, and decorates the context tree with a mocked up
RelyingPartyContextandRelyingPartyUIContext.- Event:
EventIds.PROCEED_EVENT_ID,IdPEventIds.INVALID_PROFILE_CONFIG- Precondition:
- The injected
AdministrativeFlowDescriptor's ID must matchProfileRequestContext.getProfileId() - Postcondition:
- See above.
-
-
Field Summary
Fields Modifier and Type Field Description private List<String>fallbackLanguagesThe system wide languages to inspect if there is no match between metadata and browser.private AdministrativeFlowDescriptorflowDescriptorDescriptor of the administrative flow being run.private org.slf4j.LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description InitializeAdministrativeProfileContextTree()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(ProfileRequestContext profileRequestContext)protected booleandoPreExecute(ProfileRequestContext profileRequestContext)voidsetAdministrativeFlowDescriptor(AdministrativeFlowDescriptor descriptor)Set the flow descriptor describing the administrative flow being run.voidsetFallbackLanguages(List<String> langs)Set the system wide default languages.-
Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategy
-
Methods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationCondition
-
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
flowDescriptor
@Nullable private AdministrativeFlowDescriptor flowDescriptor
Descriptor of the administrative flow being run.
-
-
Method Detail
-
setAdministrativeFlowDescriptor
public void setAdministrativeFlowDescriptor(@Nullable AdministrativeFlowDescriptor descriptor)Set the flow descriptor describing the administrative flow being run.- Parameters:
descriptor- the flow descriptor to base the action on
-
setFallbackLanguages
public void setFallbackLanguages(@Nonnull @NonnullElements List<String> langs)
Set the system wide default languages.- Parameters:
langs- a semi-colon separated string.
-
doPreExecute
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classAbstractProfileAction
-
-