Class Account


  • public final class Account
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Account()  
    • Method Summary

      Modifier and Type Method Description
      int getAccountId()  
      java.util.Map<java.lang.String,​java.lang.String> getAccountSettings()  
      java.lang.Boolean getBooleanSetting​(java.lang.String name, java.lang.Boolean required, java.lang.Boolean defaultValue)
      Returns module subscription setting value as Boolean.
      java.lang.Double getFloatSetting​(java.lang.String name, java.lang.Boolean required, java.lang.Double defaultValue)
      Returns module subscription setting value as Double.
      java.lang.Integer getIntegerSetting​(java.lang.String name, java.lang.Boolean required, java.lang.Integer defaultValue)
      Returns module subscription setting value as Integer.
      java.lang.String getStringSetting​(java.lang.String name, java.lang.Boolean required, java.lang.String defaultValue)
      Returns module subscription setting value as String.
      Account setAccountId​(int accountId)  
      Account setAccountSettings​(java.util.Map<java.lang.String,​java.lang.String> accountSettings)  
      • Methods inherited from class java.lang.Object

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

      • Account

        public Account()
    • Method Detail

      • getAccountId

        public int getAccountId()
        Returns:
        subscription account id
      • setAccountId

        public Account setAccountId​(int accountId)
        Parameters:
        accountId - subscription account id
        Returns:
        this
      • getAccountSettings

        public java.util.Map<java.lang.String,​java.lang.String> getAccountSettings()
        Returns:
        module subscription settings
      • setAccountSettings

        public Account setAccountSettings​(java.util.Map<java.lang.String,​java.lang.String> accountSettings)
        Parameters:
        accountSettings - module subscription settings
        Returns:
        this
      • getStringSetting

        public java.lang.String getStringSetting​(java.lang.String name,
                                                 java.lang.Boolean required,
                                                 java.lang.String defaultValue)
                                          throws java.lang.IllegalArgumentException
        Returns module subscription setting value as String.
        Parameters:
        name - setting name
        required - true - throws IllegalArgumentException if the setting is not found
        defaultValue - default value returned if setting is not found
        Returns:
        setting value
        Throws:
        java.lang.IllegalArgumentException
      • getIntegerSetting

        public java.lang.Integer getIntegerSetting​(java.lang.String name,
                                                   java.lang.Boolean required,
                                                   java.lang.Integer defaultValue)
                                            throws java.lang.IllegalArgumentException
        Returns module subscription setting value as Integer.
        Parameters:
        name - setting name
        required - true - throws IllegalArgumentException if the setting is not found
        defaultValue - default value returned if setting is not found
        Returns:
        setting value
        Throws:
        java.lang.IllegalArgumentException
      • getFloatSetting

        public java.lang.Double getFloatSetting​(java.lang.String name,
                                                java.lang.Boolean required,
                                                java.lang.Double defaultValue)
                                         throws java.lang.IllegalArgumentException
        Returns module subscription setting value as Double.
        Parameters:
        name - setting name
        required - true - throws IllegalArgumentException if the setting is not found
        defaultValue - default value returned if setting is not found
        Returns:
        setting value
        Throws:
        java.lang.IllegalArgumentException
      • getBooleanSetting

        public java.lang.Boolean getBooleanSetting​(java.lang.String name,
                                                   java.lang.Boolean required,
                                                   java.lang.Boolean defaultValue)
                                            throws java.lang.IllegalArgumentException
        Returns module subscription setting value as Boolean.
        Parameters:
        name - setting name
        required - true - throws IllegalArgumentException if the setting is not found
        defaultValue - default value returned if setting is not found
        Returns:
        setting value
        Throws:
        java.lang.IllegalArgumentException