Package org.compiere.model
Class MSystem
java.lang.Object
org.compiere.model.PO
org.compiere.model.X_AD_System
org.compiere.model.MSystem
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_AD_System
,I_Persistent
,Evaluatee
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:
-
Field Summary
Fields inherited from class org.compiere.model.X_AD_System
REPLICATIONTYPE_AD_Reference_ID, REPLICATIONTYPE_Broadcast, REPLICATIONTYPE_Local, REPLICATIONTYPE_Merge, REPLICATIONTYPE_Reference, SYSTEMSTATUS_AD_Reference_ID, SYSTEMSTATUS_Evaluation, SYSTEMSTATUS_Implementation, SYSTEMSTATUS_Production
Fields inherited from class org.compiere.model.PO
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, LOCAL_TRX_PREFIX, log, p_ctx, p_info, UUID_NEW_RECORD, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
Fields inherited from interface org.compiere.model.I_AD_System
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_AD_System_ID, COLUMNNAME_AD_System_UU, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_CustomPrefix, COLUMNNAME_DBAddress, COLUMNNAME_DBInstance, COLUMNNAME_Description, COLUMNNAME_EncryptionKey, COLUMNNAME_IDRangeEnd, COLUMNNAME_IDRangeStart, COLUMNNAME_Info, COLUMNNAME_IsActive, COLUMNNAME_IsAllowStatistics, COLUMNNAME_IsAutoErrorReport, COLUMNNAME_IsFailOnBuildDiffer, COLUMNNAME_IsFailOnMissingModelValidator, COLUMNNAME_IsJustMigrated, COLUMNNAME_LastBuildInfo, COLUMNNAME_LastMigrationScriptApplied, COLUMNNAME_LDAPDomain, COLUMNNAME_LDAPHost, COLUMNNAME_Name, COLUMNNAME_NoProcessors, COLUMNNAME_OldName, COLUMNNAME_Password, COLUMNNAME_Processing, COLUMNNAME_ProfileInfo, COLUMNNAME_Record_ID, COLUMNNAME_ReleaseNo, COLUMNNAME_ReplicationType, COLUMNNAME_StatisticsInfo, COLUMNNAME_Summary, COLUMNNAME_SupportEMail, COLUMNNAME_SupportExpDate, COLUMNNAME_SupportUnits, COLUMNNAME_SystemStatus, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, COLUMNNAME_UserName, COLUMNNAME_Version, Model, Table_ID, Table_Name
-
Constructor Summary
ConstructorDescriptionMSystem
(Properties ctx, int ignored, String mtrxName) Default ConstructorMSystem
(Properties ctx, String AD_System_UU, String trxName) UUID based ConstructorMSystem
(Properties ctx, ResultSet rs, String trxName) Load ConstructorMSystem
(Properties ctx, MSystem copy) Copy constructorMSystem
(Properties ctx, MSystem copy, String trxName) Copy constructorCopy constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
beforeSave
(boolean newRecord) Before Savestatic MSystem
get
(Properties ctx) Load System RecordGet DB Addressstatic String
getDBInfoSQL
(String dbType) Get DB Info SQL.getProfileInfo
(boolean recalc) Get Profile InfogetStatisticsInfo
(boolean recalc) Get Statistics Infovoid
info()
Deprecated.boolean
isLDAP()
Is LDAP Authentication definedboolean
LDAP Authentication.static boolean
The system forces to use login prefix for tenantboolean
Deprecated.static boolean
Verify if the system manages properties in a more secure way.static boolean
static boolean
static boolean
The system allows to use login prefix for tenantboolean
isValid()
Deprecated.static boolean
static boolean
boolean
save()
Save Record (ID=0).boolean
setInfo()
Update System Info if more then a day oldtoString()
String RepresentationMethods inherited from class org.compiere.model.X_AD_System
get_AccessLevel, getAD_System_ID, getAD_System_UU, getCustomPrefix, getDBInstance, getDescription, getEncryptionKey, getIDRangeEnd, getIDRangeStart, getInfo, getKeyNamePair, getLastBuildInfo, getLastMigrationScriptApplied, getLDAPDomain, getLDAPHost, getName, getNoProcessors, getOldName, getPassword, getProfileInfo, getRecord_ID, getReleaseNo, getReplicationType, getStatisticsInfo, getSummary, getSupportEMail, getSupportExpDate, getSupportUnits, getSystemStatus, getUserName, getVersion, initPO, isAllowStatistics, isAutoErrorReport, isFailOnBuildDiffer, isFailOnMissingModelValidator, isJustMigrated, isProcessing, setAD_System_ID, setAD_System_UU, setCustomPrefix, setDBAddress, setDBInstance, setDescription, setEncryptionKey, setIDRangeEnd, setIDRangeStart, setInfo, setIsAllowStatistics, setIsAutoErrorReport, setIsFailOnBuildDiffer, setIsFailOnMissingModelValidator, setIsJustMigrated, setLastBuildInfo, setLastMigrationScriptApplied, setLDAPDomain, setLDAPHost, setName, setNoProcessors, setOldName, setPassword, setProcessing, setProfileInfo, setRecord_ID, setReleaseNo, setReplicationType, setStatisticsInfo, setSummary, setSupportEMail, setSupportExpDate, setSupportUnits, setSystemStatus, setUserName, setVersion
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, buildInsertSQL, checkImmutable, clearCrossTenantSafe, clone, columnExists, columnExists, compare, copyPO, copyValues, copyValues, createAttachment, delete, delete, delete_Accounting, delete_Tree, deleteEx, deleteEx, dump, dump, equals, get_Attribute, get_Attributes, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_HashMap, get_ID, get_IDOld, get_KeyColumns, get_Logger, get_OptimisticLockingColumns, get_Table_ID, get_TableName, get_Translation, get_Translation, get_Translation, get_Translation, get_Translation, get_TrxName, get_UUID, get_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, getUUIDColumnName, getUUIDColumnName, hashCode, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_Immutable, is_new, is_UseOptimisticLocking, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, loadByUU, loadComplete, loadDefaults, loadPO, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, saveCrossTenantSafe, saveCrossTenantSafeEx, saveCrossTenantSafeEx, saveEx, saveEx, saveNew_afterSetID, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_Attribute, set_ColumnUpdateable, set_CustomColumn, set_CustomColumnReturningBoolean, set_OptimisticLockingColumns, set_TrxName, set_TrxName, set_UseOptimisticLocking, set_Value, set_Value, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, set_ValueOfColumnReturningBoolean, set_ValueOfColumnReturningBoolean, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setCrossTenantSafe, setDoc, setDocWorkflowMgr, setIsActive, setProcessedOn, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, toInsertSQL, unlock, update_Tree, validForeignKeys
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface org.compiere.model.I_AD_System
getAD_Client_ID, getAD_Org_ID, getCreated, getCreatedBy, getUpdated, getUpdatedBy, isActive, setAD_Org_ID, setIsActive
-
Constructor Details
-
MSystem
UUID based Constructor- Parameters:
ctx
- ContextAD_System_UU
- UUID keytrxName
- Transaction
-
MSystem
Default Constructor- Parameters:
ctx
- contextignored
- ignoremtrxName
- transaction
-
MSystem
Load Constructor- Parameters:
ctx
- contextrs
- result settrxName
- transaction
-
MSystem
Copy constructor- Parameters:
copy
-
-
MSystem
Copy constructor- Parameters:
ctx
-copy
-
-
MSystem
Copy constructor- Parameters:
ctx
-copy
-trxName
-
-
-
Method Details
-
get
Load System Record- Parameters:
ctx
- context- Returns:
- System
-
isLDAP
public boolean isLDAP()Is LDAP Authentication defined- Returns:
- true if ldap defined
-
isLDAP
LDAP Authentication. Assumes that LDAP is defined.- Parameters:
userName
- user namepassword
- password- Returns:
- true if ldap authenticated
-
getDBAddress
Get DB Address- Specified by:
getDBAddress
in interfaceI_AD_System
- Overrides:
getDBAddress
in classX_AD_System
- Returns:
- DB connection URL
-
getStatisticsInfo
Get Statistics Info- Parameters:
recalc
- recalculate- Returns:
- statistics
-
getProfileInfo
Get Profile Info- Parameters:
recalc
- recalculate- Returns:
- List of active AD_Client.Value separated by the '|' character
-
beforeSave
protected boolean beforeSave(boolean newRecord) Before Save- Overrides:
beforeSave
in classPO
- Parameters:
newRecord
- new- Returns:
- true/false
-
save
public boolean save()Save Record (ID=0). Override to always perform update.- Specified by:
save
in interfaceI_Persistent
- Overrides:
save
in classPO
- Returns:
- true if saved
-
toString
String Representation- Overrides:
toString
in classX_AD_System
- Returns:
- info
-
isValid
Deprecated.Check validity- Returns:
- true if valid
-
isPDFLicense
Deprecated.Is there a PDF License- Returns:
- true if there is a PDF License
-
setInfo
public boolean setInfo()Update System Info if more then a day old- Returns:
- true if updated
-
getDBInfoSQL
Get DB Info SQL. Only implemented for Oracle.- Parameters:
dbType
- database type- Returns:
- sql
-
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
-