Class MSystem

    • Constructor Detail

      • MSystem

        public MSystem​(Properties ctx,
                       int ignored,
                       String mtrxName)
        Default Constructor
        Parameters:
        ctx - context
        ignored - id
        mtrxName - transaction
      • MSystem

        public MSystem​(Properties ctx,
                       ResultSet rs,
                       String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set
        trxName - transaction
      • MSystem

        public MSystem​(MSystem copy)
        Parameters:
        copy -
      • MSystem

        public MSystem​(Properties ctx,
                       MSystem copy)
        Parameters:
        ctx -
        copy -
    • Method Detail

      • get

        public static MSystem get​(Properties ctx)
        Load System Record
        Parameters:
        ctx - context
        Returns:
        System
      • isLDAP

        public boolean isLDAP()
        Is LDAP Authentification defined
        Returns:
        true if ldap defined
      • isLDAP

        public boolean isLDAP​(String userName,
                              String password)
        LDAP Authentification. Assumes that LDAP is defined.
        Parameters:
        userName - user name
        password - password
        Returns:
        true if ldap authenticated
      • getStatisticsInfo

        public String getStatisticsInfo​(boolean recalc)
        Get Statistics Info
        Parameters:
        recalc - recalculate
        Returns:
        statistics
      • getProfileInfo

        public String getProfileInfo​(boolean recalc)
        Get Profile Info
        Parameters:
        recalc - recalculate
        Returns:
        profile
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Before Save
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new
        Returns:
        true/false
      • save

        public boolean save()
        Save Record (ID=0)
        Specified by:
        save in interface I_Persistent
        Overrides:
        save in class PO
        Returns:
        true if saved
      • isValid

        public boolean isValid()
        Check validity
        Returns:
        true if valid
      • isPDFLicense

        public boolean isPDFLicense()
        Is there a PDF License
        Returns:
        true if there is a PDF License
      • setInfo

        public boolean setInfo()
        Set/Derive Info if more then a day old
        Returns:
        true if set
      • getDBInfoSQL

        public static String getDBInfoSQL​(String dbType)
        Get DB Info SQL
        Parameters:
        dbType - database type
        Returns:
        sql
      • info

        public void info()
        Print info
      • isZKRememberUserAllowed

        public static boolean isZKRememberUserAllowed()
      • isZKRememberPasswordAllowed

        public static boolean isZKRememberPasswordAllowed()
      • isSwingRememberUserAllowed

        public static boolean isSwingRememberUserAllowed()
      • isSwingRememberPasswordAllowed

        public static boolean isSwingRememberPasswordAllowed()
      • isSecureProps

        public static boolean isSecureProps()
        Verify if the system manages properties in a more secure way for Windows and swing client the properties are managed as always for other systems (like Linux) the default is to manage it with more security this can be overridden passing the parameter -DIDEMPIERE_SECURE_PROPERTIES=false to the JVM
        Returns:
        true if properties needs to be managed more secure