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
public class MSystem extends X_AD_System
System Record (just one)- 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:
- Serialized Form
-
-
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, 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
Constructors Constructor Description MSystem(Properties ctx, int ignored, String mtrxName)Default ConstructorMSystem(Properties ctx, ResultSet rs, String trxName)Load ConstructorMSystem(Properties ctx, MSystem copy)MSystem(Properties ctx, MSystem copy, String trxName)MSystem(MSystem copy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanbeforeSave(boolean newRecord)Before Savestatic MSystemget(Properties ctx)Load System RecordStringgetDBAddress()Get DB Addressstatic StringgetDBInfoSQL(String dbType)Get DB Info SQLStringgetProfileInfo(boolean recalc)Get Profile InfoStringgetStatisticsInfo(boolean recalc)Get Statistics Infovoidinfo()Print infobooleanisLDAP()Is LDAP Authentification definedbooleanisLDAP(String userName, String password)LDAP Authentification.booleanisPDFLicense()Is there a PDF Licensestatic booleanisSecureProps()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 JVMstatic booleanisSwingRememberPasswordAllowed()static booleanisSwingRememberUserAllowed()booleanisValid()Check validitystatic booleanisZKRememberPasswordAllowed()static booleanisZKRememberUserAllowed()booleansave()Save Record (ID=0)booleansetInfo()Set/Derive Info if more then a day oldStringtoString()String Representation-
Methods 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, 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_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, 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, load, loadByUU, loadComplete, loadDefaults, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, 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, 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 Detail
-
MSystem
public MSystem(Properties ctx, int ignored, String mtrxName)
Default Constructor- Parameters:
ctx- contextignored- idmtrxName- transaction
-
MSystem
public MSystem(Properties ctx, ResultSet rs, String trxName)
Load Constructor- Parameters:
ctx- contextrs- result settrxName- transaction
-
MSystem
public MSystem(MSystem copy)
- Parameters:
copy-
-
MSystem
public MSystem(Properties ctx, MSystem copy)
- Parameters:
ctx-copy-
-
MSystem
public MSystem(Properties ctx, MSystem copy, String trxName)
- Parameters:
ctx-copy-trxName-
-
-
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 namepassword- password- Returns:
- true if ldap authenticated
-
getDBAddress
public String getDBAddress()
Get DB Address- Specified by:
getDBAddressin interfaceI_AD_System- Overrides:
getDBAddressin classX_AD_System- Returns:
- address
-
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:
beforeSavein classPO- Parameters:
newRecord- new- Returns:
- true/false
-
save
public boolean save()
Save Record (ID=0)- Specified by:
savein interfaceI_Persistent- Overrides:
savein classPO- Returns:
- true if saved
-
toString
public String toString()
String Representation- Overrides:
toStringin classX_AD_System- Returns:
- info
-
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
-
-