Class ExternalConsentGatheringService

  • All Implemented Interfaces:
    java.io.Serializable

    @ApplicationScoped
    @Named
    public class ExternalConsentGatheringService
    extends io.jans.service.custom.script.ExternalScriptService
    Author:
    Yuriy Movchan Date: 10/30/2017
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<java.lang.String,​io.jans.model.custom.script.conf.CustomScriptConfiguration> scriptInumMap  
      • Fields inherited from class io.jans.service.custom.script.ExternalScriptService

        customScriptConfigurations, customScriptConfigurationsNameMap, customScriptManager, customScriptType, defaultExternalCustomScript, loaded, log
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean authorize​(io.jans.model.custom.script.conf.CustomScriptConfiguration script, int step, ConsentGatheringContext context)  
      int getNextStep​(io.jans.model.custom.script.conf.CustomScriptConfiguration script, int step, ConsentGatheringContext context)  
      java.lang.String getPageForStep​(io.jans.model.custom.script.conf.CustomScriptConfiguration script, int step, ConsentGatheringContext context)  
      io.jans.model.custom.script.conf.CustomScriptConfiguration getScriptByDn​(java.lang.String scriptDn)  
      io.jans.model.custom.script.conf.CustomScriptConfiguration getScriptByInum​(java.lang.String inum)  
      int getStepsCount​(io.jans.model.custom.script.conf.CustomScriptConfiguration script, ConsentGatheringContext context)  
      boolean prepareForStep​(io.jans.model.custom.script.conf.CustomScriptConfiguration script, int step, ConsentGatheringContext context)  
      protected void reloadExternal()  
      • Methods inherited from class io.jans.service.custom.script.ExternalScriptService

        addExternalConfigurations, clearScriptError, configure, determineDefaultCustomScriptConfiguration, executeExternalGetApiVersion, getCustomScriptConfigurationByName, getCustomScriptConfigurations, getCustomScriptConfigurationsByDns, getCustomScriptType, getDefaultExternalCustomScript, init, isEnabled, isLoaded, reload, saveScriptError
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • scriptInumMap

        protected java.util.Map<java.lang.String,​io.jans.model.custom.script.conf.CustomScriptConfiguration> scriptInumMap
    • Constructor Detail

      • ExternalConsentGatheringService

        public ExternalConsentGatheringService()
    • Method Detail

      • reloadExternal

        protected void reloadExternal()
        Overrides:
        reloadExternal in class io.jans.service.custom.script.ExternalScriptService
      • getScriptByDn

        public io.jans.model.custom.script.conf.CustomScriptConfiguration getScriptByDn​(java.lang.String scriptDn)
      • getScriptByInum

        public io.jans.model.custom.script.conf.CustomScriptConfiguration getScriptByInum​(java.lang.String inum)
      • authorize

        public boolean authorize​(io.jans.model.custom.script.conf.CustomScriptConfiguration script,
                                 int step,
                                 ConsentGatheringContext context)
      • getNextStep

        public int getNextStep​(io.jans.model.custom.script.conf.CustomScriptConfiguration script,
                               int step,
                               ConsentGatheringContext context)
      • prepareForStep

        public boolean prepareForStep​(io.jans.model.custom.script.conf.CustomScriptConfiguration script,
                                      int step,
                                      ConsentGatheringContext context)
      • getStepsCount

        public int getStepsCount​(io.jans.model.custom.script.conf.CustomScriptConfiguration script,
                                 ConsentGatheringContext context)
      • getPageForStep

        public java.lang.String getPageForStep​(io.jans.model.custom.script.conf.CustomScriptConfiguration script,
                                               int step,
                                               ConsentGatheringContext context)