Class TestModule

java.lang.Object
net.shibboleth.idp.installer.plugin.impl.TestModule
All Implemented Interfaces:
IdPModule, net.shibboleth.profile.module.Module, Component, IdentifiedComponent

public class TestModule extends Object implements IdPModule
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.shibboleth.profile.module.Module

    net.shibboleth.profile.module.Module.ModuleResource, net.shibboleth.profile.module.Module.ResourceResult
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) boolean
     
    (package private) final String
     
    (package private) final net.shibboleth.profile.module.ModuleException
     
    (package private) final net.shibboleth.profile.module.ModuleException
     

    Fields inherited from interface net.shibboleth.idp.module.IdPModule

    IDPNEW_EXT_BASE, IDPSAVE_EXT
  • Constructor Summary

    Constructors
    Constructor
    Description
    TestModule(String name, net.shibboleth.profile.module.ModuleException enable, net.shibboleth.profile.module.ModuleException disable)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<net.shibboleth.profile.module.Module.ModuleResource,net.shibboleth.profile.module.Module.ResourceResult>
    disable(net.shibboleth.profile.module.ModuleContext moduleContext, boolean clean)
    Map<net.shibboleth.profile.module.Module.ModuleResource,net.shibboleth.profile.module.Module.ResourceResult>
    enable(net.shibboleth.profile.module.ModuleContext moduleContext)
    getDescription(net.shibboleth.profile.module.ModuleContext moduleContext)
    getName(net.shibboleth.profile.module.ModuleContext moduleContext)
    Collection<net.shibboleth.profile.module.Module.ModuleResource>
    boolean
    isEnabled(net.shibboleth.profile.module.ModuleContext moduleContext)
    boolean

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.shibboleth.idp.module.IdPModule

    getNewExtension, getSaveExtension
  • Field Details

    • throwOnEnable

      @Nullable final net.shibboleth.profile.module.ModuleException throwOnEnable
    • throwOnDisable

      @Nullable final net.shibboleth.profile.module.ModuleException throwOnDisable
    • id

      @Nonnull final String id
    • enabled

      boolean enabled
  • Constructor Details

    • TestModule

      public TestModule(@Nonnull String name, net.shibboleth.profile.module.ModuleException enable, net.shibboleth.profile.module.ModuleException disable)
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface IdentifiedComponent
    • getName

      @Nonnull public String getName(@Nullable net.shibboleth.profile.module.ModuleContext moduleContext)
      Specified by:
      getName in interface net.shibboleth.profile.module.Module
    • getDescription

      public String getDescription(@Nullable net.shibboleth.profile.module.ModuleContext moduleContext)
      Specified by:
      getDescription in interface net.shibboleth.profile.module.Module
    • getURL

      public String getURL()
      Specified by:
      getURL in interface net.shibboleth.profile.module.Module
    • getOwnerId

      public String getOwnerId()
      Specified by:
      getOwnerId in interface net.shibboleth.profile.module.Module
    • isHttpClientRequired

      public boolean isHttpClientRequired()
      Specified by:
      isHttpClientRequired in interface net.shibboleth.profile.module.Module
    • getResources

      @Nonnull public Collection<net.shibboleth.profile.module.Module.ModuleResource> getResources()
      Specified by:
      getResources in interface net.shibboleth.profile.module.Module
    • isEnabled

      public boolean isEnabled(@Nonnull net.shibboleth.profile.module.ModuleContext moduleContext)
      Specified by:
      isEnabled in interface net.shibboleth.profile.module.Module
    • enable

      @Nonnull public Map<net.shibboleth.profile.module.Module.ModuleResource,net.shibboleth.profile.module.Module.ResourceResult> enable(@Nonnull net.shibboleth.profile.module.ModuleContext moduleContext) throws net.shibboleth.profile.module.ModuleException
      Specified by:
      enable in interface net.shibboleth.profile.module.Module
      Throws:
      net.shibboleth.profile.module.ModuleException
    • disable

      @Nonnull public Map<net.shibboleth.profile.module.Module.ModuleResource,net.shibboleth.profile.module.Module.ResourceResult> disable(@Nonnull net.shibboleth.profile.module.ModuleContext moduleContext, boolean clean) throws net.shibboleth.profile.module.ModuleException
      Specified by:
      disable in interface net.shibboleth.profile.module.Module
      Throws:
      net.shibboleth.profile.module.ModuleException