Class AbstractSessionConfiguration

  • All Implemented Interfaces:
    org.tentackle.validate.ScopeConfigurator, org.tentackle.validate.Validateable
    Direct Known Subclasses:
    BackendConfiguration, DriverConfiguration

    public abstract class AbstractSessionConfiguration
    extends java.lang.Object
    implements org.tentackle.validate.Validateable, org.tentackle.validate.ScopeConfigurator
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<? extends org.tentackle.validate.ValidationScope>[] getDefaultScopes()  
      java.lang.String getName()
      Gets the symbolic name.
      protected static java.util.prefs.Preferences getPrefNode​(java.lang.String nodeName, boolean system)
      Gets the configuration parent node.
      boolean isPersisted()
      Returns whether configuration is loaded from preferences.
      void setName​(java.lang.String name)
      Sets the symbolic name.
      void setPersisted​(boolean persisted)
      Sets whether configuration is loaded from preferences.
      java.lang.String toString()  
      java.util.List<org.tentackle.validate.ValidationResult> validate​(java.lang.String validationPath, org.tentackle.validate.ValidationScope scope)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AbstractSessionConfiguration

        public AbstractSessionConfiguration()
    • Method Detail

      • getName

        @Bindable
        @NotNull
        public java.lang.String getName()
        Gets the symbolic name.
        Returns:
        the name
      • setName

        @Bindable
        public void setName​(java.lang.String name)
        Sets the symbolic name.
        Parameters:
        name - the name
      • isPersisted

        public boolean isPersisted()
        Returns whether configuration is loaded from preferences.
        Returns:
        true if persisted, false if just created in memory only
      • setPersisted

        public void setPersisted​(boolean persisted)
        Sets whether configuration is loaded from preferences.
        Parameters:
        persisted - true if persisted, false if just created in memory only
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • validate

        public java.util.List<org.tentackle.validate.ValidationResult> validate​(java.lang.String validationPath,
                                                                                org.tentackle.validate.ValidationScope scope)
        Specified by:
        validate in interface org.tentackle.validate.Validateable
      • getDefaultScopes

        public java.lang.Class<? extends org.tentackle.validate.ValidationScope>[] getDefaultScopes()
        Specified by:
        getDefaultScopes in interface org.tentackle.validate.ScopeConfigurator
      • getPrefNode

        protected static java.util.prefs.Preferences getPrefNode​(java.lang.String nodeName,
                                                                 boolean system)
        Gets the configuration parent node.
        Parameters:
        nodeName - the topmost node
        system - true if load from system preferences, else user preferences
        Returns:
        the node