Class FessEnv.SimpleImpl

  • All Implemented Interfaces:
    java.io.Serializable, FessEnv, org.lastaflute.core.direction.AccessibleConfig
    Direct Known Subclasses:
    FessConfig.SimpleImpl
    Enclosing interface:
    FessEnv

    public static class FessEnv.SimpleImpl
    extends org.lastaflute.core.direction.ObjectiveConfig
    implements FessEnv
    The simple implementation for configuration.
    Author:
    FreeGen
    See Also:
    Serialized Form
    • Nested Class Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDevelopmentHere()
      Get the value for the key 'development.here'.
      java.lang.String getEnvironmentTitle()
      Get the value for the key 'environment.title'.
      java.lang.String getFrameworkDebug()
      Get the value for the key 'framework.debug'.
      java.lang.String getLastaDiSmartDeployMode()
      Get the value for the key 'lasta_di.smart.deploy.mode'.
      java.lang.String getMailReturnPath()
      Get the value for the key 'mail.return.path'.
      java.lang.String getMailSendMock()
      Get the value for the key 'mail.send.mock'.
      java.lang.String getMailSmtpServerMainHostAndPort()
      Get the value for the key 'mail.smtp.server.main.host.and.port'.
      java.lang.String getMailSubjecttestPrefix()
      Get the value for the key 'mail.subject.test.prefix'.
      java.lang.String getTimeAdjustTimeMillis()
      Get the value for the key 'time.adjust.time.millis'.
      java.lang.Long getTimeAdjustTimeMillisAsLong()
      Get the value for the key 'time.adjust.time.millis' as Long.
      boolean isDevelopmentHere()
      Is the property for the key 'development.here' true?
      The value is, e.g.
      boolean isFrameworkDebug()
      Is the property for the key 'framework.debug' true?
      The value is, e.g.
      boolean isMailSendMock()
      Is the property for the key 'mail.send.mock' true?
      The value is, e.g.
      protected java.util.Map<java.lang.String,​java.lang.String> prepareGeneratedDefaultMap()  
      • Methods inherited from class org.lastaflute.core.direction.ObjectiveConfig

        addExtendsResource, assertUnlocked, assistAssistDirection, createDefaultPropertyFilter, direct, doInitialize, doPrepareEmbeddedPropertyFilter, doPrepareWrappedDefaultablePropertyFilter, filterEnvSwitching, filterEnvSwitchingList, filterPropertyAsDefault, filterPropertyTrimming, get, getAsDate, getAsDecimal, getAsInteger, getAsLong, getOrDefault, initialize, is, isLocked, keySet, lock, newObjectiveProperties, newPatchedReader, prepareHotDeploy, prepareObjectiveProperties, preparePropertyFilter, reloadIfNeeds, requestHotDeploy, setDomainResource, shootBowgunPropertyFilter, showBootLogging, toString, unlock, verifyPropertyValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.codelibs.fess.mylasta.direction.FessEnv

        get, is
    • Constructor Detail

      • SimpleImpl

        public SimpleImpl()
    • Method Detail

      • getLastaDiSmartDeployMode

        public java.lang.String getLastaDiSmartDeployMode()
        Description copied from interface: FessEnv
        Get the value for the key 'lasta_di.smart.deploy.mode'.
        The value is, e.g. hot
        comment: The mode of Lasta Di's smart-deploy, should be cool in production (e.g. hot, cool, warm)
        Specified by:
        getLastaDiSmartDeployMode in interface FessEnv
        Returns:
        The value of found property. (NotNull: if not found, exception but basically no way)
      • getDevelopmentHere

        public java.lang.String getDevelopmentHere()
        Description copied from interface: FessEnv
        Get the value for the key 'development.here'.
        The value is, e.g. true
        comment: Is development environment here? (used for various purpose, you should set false if unknown)
        Specified by:
        getDevelopmentHere in interface FessEnv
        Returns:
        The value of found property. (NotNull: if not found, exception but basically no way)
      • isDevelopmentHere

        public boolean isDevelopmentHere()
        Description copied from interface: FessEnv
        Is the property for the key 'development.here' true?
        The value is, e.g. true
        comment: Is development environment here? (used for various purpose, you should set false if unknown)
        Specified by:
        isDevelopmentHere in interface FessEnv
        Returns:
        The determination, true or false. (if not found, exception but basically no way)
      • getEnvironmentTitle

        public java.lang.String getEnvironmentTitle()
        Description copied from interface: FessEnv
        Get the value for the key 'environment.title'.
        The value is, e.g. Local Development
        comment: The title of environment (e.g. local or integration or production)
        Specified by:
        getEnvironmentTitle in interface FessEnv
        Returns:
        The value of found property. (NotNull: if not found, exception but basically no way)
      • getFrameworkDebug

        public java.lang.String getFrameworkDebug()
        Description copied from interface: FessEnv
        Get the value for the key 'framework.debug'.
        The value is, e.g. false
        comment: Does it enable the Framework internal debug? (true only when emergency)
        Specified by:
        getFrameworkDebug in interface FessEnv
        Returns:
        The value of found property. (NotNull: if not found, exception but basically no way)
      • isFrameworkDebug

        public boolean isFrameworkDebug()
        Description copied from interface: FessEnv
        Is the property for the key 'framework.debug' true?
        The value is, e.g. false
        comment: Does it enable the Framework internal debug? (true only when emergency)
        Specified by:
        isFrameworkDebug in interface FessEnv
        Returns:
        The determination, true or false. (if not found, exception but basically no way)
      • getTimeAdjustTimeMillis

        public java.lang.String getTimeAdjustTimeMillis()
        Description copied from interface: FessEnv
        Get the value for the key 'time.adjust.time.millis'.
        The value is, e.g. 0
        comment: The milliseconds for (relative or absolute) adjust time (set only when test) @LongType *dynamic in development
        Specified by:
        getTimeAdjustTimeMillis in interface FessEnv
        Returns:
        The value of found property. (NotNull: if not found, exception but basically no way)
      • getTimeAdjustTimeMillisAsLong

        public java.lang.Long getTimeAdjustTimeMillisAsLong()
        Description copied from interface: FessEnv
        Get the value for the key 'time.adjust.time.millis' as Long.
        The value is, e.g. 0
        comment: The milliseconds for (relative or absolute) adjust time (set only when test) @LongType *dynamic in development
        Specified by:
        getTimeAdjustTimeMillisAsLong in interface FessEnv
        Returns:
        The value of found property. (NotNull: if not found, exception but basically no way)
      • getMailSendMock

        public java.lang.String getMailSendMock()
        Description copied from interface: FessEnv
        Get the value for the key 'mail.send.mock'.
        The value is, e.g. true
        comment: Does it send mock mail? (true: no send actually, logging only)
        Specified by:
        getMailSendMock in interface FessEnv
        Returns:
        The value of found property. (NotNull: if not found, exception but basically no way)
      • isMailSendMock

        public boolean isMailSendMock()
        Description copied from interface: FessEnv
        Is the property for the key 'mail.send.mock' true?
        The value is, e.g. true
        comment: Does it send mock mail? (true: no send actually, logging only)
        Specified by:
        isMailSendMock in interface FessEnv
        Returns:
        The determination, true or false. (if not found, exception but basically no way)
      • getMailSmtpServerMainHostAndPort

        public java.lang.String getMailSmtpServerMainHostAndPort()
        Description copied from interface: FessEnv
        Get the value for the key 'mail.smtp.server.main.host.and.port'.
        The value is, e.g. localhost:25
        comment: SMTP server settings for main: host:port
        Specified by:
        getMailSmtpServerMainHostAndPort in interface FessEnv
        Returns:
        The value of found property. (NotNull: if not found, exception but basically no way)
      • getMailSubjecttestPrefix

        public java.lang.String getMailSubjecttestPrefix()
        Description copied from interface: FessEnv
        Get the value for the key 'mail.subject.test.prefix'.
        The value is, e.g. [test]
        comment: The prefix of subject to show test environment or not
        Specified by:
        getMailSubjecttestPrefix in interface FessEnv
        Returns:
        The value of found property. (NotNull: if not found, exception but basically no way)
      • getMailReturnPath

        public java.lang.String getMailReturnPath()
        Description copied from interface: FessEnv
        Get the value for the key 'mail.return.path'.
        The value is, e.g. root@localhost
        comment: The common return path of all mail
        Specified by:
        getMailReturnPath in interface FessEnv
        Returns:
        The value of found property. (NotNull: if not found, exception but basically no way)
      • prepareGeneratedDefaultMap

        protected java.util.Map<java.lang.String,​java.lang.String> prepareGeneratedDefaultMap()
        Overrides:
        prepareGeneratedDefaultMap in class org.lastaflute.core.direction.ObjectiveConfig