Class MSystem

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_AD_System, I_Persistent, Evaluatee

public class MSystem extends X_AD_System
System Record (there should be just one AD_System record in the DB)
Version:
$Id: MSystem.java,v 1.3 2006/10/09 00:22:28 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, www.arhipac.ro
  • FR [ 2214883 ] Remove SQL code and Replace for Query
  • See Also:
    • Constructor Details

      • MSystem

        public MSystem(Properties ctx, String AD_System_UU, String trxName)
        UUID based Constructor
        Parameters:
        ctx - Context
        AD_System_UU - UUID key
        trxName - Transaction
      • MSystem

        public MSystem(Properties ctx, int ignored, String mtrxName)
        Default Constructor
        Parameters:
        ctx - context
        ignored - ignore
        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)
        Copy constructor
        Parameters:
        copy -
      • MSystem

        public MSystem(Properties ctx, MSystem copy)
        Copy constructor
        Parameters:
        ctx -
        copy -
      • MSystem

        public MSystem(Properties ctx, MSystem copy, String trxName)
        Copy constructor
        Parameters:
        ctx -
        copy -
        trxName -
    • Method Details

      • get

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

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

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

        public String getDBAddress()
        Get DB Address
        Specified by:
        getDBAddress in interface I_AD_System
        Overrides:
        getDBAddress in class X_AD_System
        Returns:
        DB connection URL
      • 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:
        List of active AD_Client.Value separated by the '|' character
      • beforeSave

        protected boolean beforeSave(boolean newRecord)
        Description copied from class: PO
        Called before Save for Pre-Save Operation.
        Default implementation is nop, to be implemented in sub-classes that needed it.
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - true if it is a new record
        Returns:
        true if record can be saved
      • save

        public boolean save()
        Save Record (ID=0). Override to always perform update.
        Specified by:
        save in interface I_Persistent
        Overrides:
        save in class PO
        Returns:
        true if saved
      • toString

        public String toString()
        String Representation
        Overrides:
        toString in class X_AD_System
        Returns:
        info
      • isValid

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

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

        public boolean setInfo()
        Update System Info if last update (Updated) is more then a day old
        Returns:
        true if updated
      • getDBInfoSQL

        public static String getDBInfoSQL(String dbType)
        Get DB Info SQL. Only implemented for Oracle.
        Parameters:
        dbType - database type
        Returns:
        sql
      • info

        @Deprecated public void info()
        Deprecated.
        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 before.
         For other systems (like Linux), the default is to manage it with more security.
         This can be overridden by passing the parameter -DIDEMPIERE_SECURE_PROPERTIES=false to the JVM.
         
        Returns:
        true if properties needs to be managed in a more secure way
      • isUseLoginPrefix

        public static boolean isUseLoginPrefix()
        The system allows to use login prefix for tenant
        Returns:
        true if login support the use of prefix for identification of tenant
      • isLoginPrefixMandatory

        public static boolean isLoginPrefixMandatory()
        The system forces to use login prefix for tenant
        Returns:
        true if the use of prefix for identification of tenant is mandatory