Ejemplo n.º 1
0
 /// <summary>
 /// Constructor to initialise a new log table
 /// </summary>
 /// <param name="buObjToLog">the business object for which the transaction log is being created</param>
 /// <param name="transactionLogTable">The log table name</param>
 /// <param name="dateTimeUpdatedFieldName">Time updated field name</param>
 /// <param name="windowsUserFieldName">Windows user field name</param>
 /// <param name="logonUserFieldName">Logon user field name</param>
 /// <param name="businessObjectToStringFieldName"></param>
 /// <param name="machineUpdateName">Machine update name</param>
 /// <param name="businessObjectTypeNameFieldName">BO type field name</param>
 /// <param name="crudActionFieldName">Crud action field name</param>
 /// <param name="dirtyXMLFieldName">Dirty xml field name</param>
 /// <param name="securityController"></param>
 public TransactionLogTable(BusinessObject buObjToLog, string transactionLogTable, string dateTimeUpdatedFieldName,
                            string windowsUserFieldName, string logonUserFieldName, string businessObjectToStringFieldName, string machineUpdateName,
                            string businessObjectTypeNameFieldName, string crudActionFieldName,
                            string dirtyXMLFieldName, ISecurityController securityController) : this(buObjToLog, transactionLogTable, dateTimeUpdatedFieldName,
                                                                                                     windowsUserFieldName, logonUserFieldName, businessObjectToStringFieldName, machineUpdateName,
                                                                                                     businessObjectTypeNameFieldName, crudActionFieldName,
                                                                                                     dirtyXMLFieldName)
 {
     _securityController = securityController;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Constructs the new transactionlogTable with default table name and logging fields and a specific security controller for getting the currently logged on user.
 /// </summary>
 /// <param name="busObjToLog"></param>
 /// <param name="securityController"></param>
 /// <param name="transactionLogTable"></param>
 public TransactionLogTable(BusinessObject busObjToLog, ISecurityController securityController, string transactionLogTable)
     : this(busObjToLog, transactionLogTable, "DateTimeUpdated",
            "WindowsUser", "LogonUser", "BusinessObjectToString", "MachineName", "BusinessObjectTypeName", "CRUDAction", "DirtyXML")
 {
     _securityController = securityController;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructs the new transactionlogTable with default table name and logging fields and a specific security controller for getting the currently logged on user.
 /// </summary>
 /// <param name="busObjToLog"></param>
 /// <param name="securityController"></param>
 public TransactionLogTable(BusinessObject busObjToLog,ISecurityController securityController)
     : this(busObjToLog, securityController, "transactionLog")
 {
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Constructor to initialise a new log table
 /// </summary>
 /// <param name="buObjToLog">the business object for which the transaction log is being created</param>
 /// <param name="transactionLogTable">The log table name</param>
 /// <param name="dateTimeUpdatedFieldName">Time updated field name</param>
 /// <param name="windowsUserFieldName">Windows user field name</param>
 /// <param name="logonUserFieldName">Logon user field name</param>
 /// <param name="businessObjectToStringFieldName"></param>
 /// <param name="machineUpdateName">Machine update name</param>
 /// <param name="businessObjectTypeNameFieldName">BO type field name</param>
 /// <param name="crudActionFieldName">Crud action field name</param>
 /// <param name="dirtyXMLFieldName">Dirty xml field name</param>
 /// <param name="securityController"></param>
 public TransactionLogTable(BusinessObject buObjToLog, string transactionLogTable, string dateTimeUpdatedFieldName,
                            string windowsUserFieldName, string logonUserFieldName,string businessObjectToStringFieldName, string machineUpdateName,
                            string businessObjectTypeNameFieldName, string crudActionFieldName,
                            string dirtyXMLFieldName,ISecurityController securityController):this(buObjToLog, transactionLogTable, dateTimeUpdatedFieldName,
                                                                                                  windowsUserFieldName, logonUserFieldName,businessObjectToStringFieldName, machineUpdateName,
                                                                                                  businessObjectTypeNameFieldName, crudActionFieldName,
                                                                                                  dirtyXMLFieldName)
 {
     _securityController = securityController;
 }
 ///<summary>
 /// This constructor initialises this update log with the BusinessObject to be updated.
 /// This businessobject is then searched for the default UserLastUpdated and DateLastUpdated properties
 /// that are to be updated when the BusinessObject is updated. The ISecurityController to be used to
 /// retrieve the current user name is also passed in.
 ///</summary>
 ///<param name="businessObject">The BusinessObject to be updated</param>
 ///<param name="securityController">The ISecurityController class</param>
 public BusinessObjectLastUpdatePropertiesLog(IBusinessObject businessObject, ISecurityController securityController)
     : this(businessObject)
 {
     _securityController = securityController;
 }
 ///<summary>
 /// This constructor initialises this update log with the UserLastUpdated and DateLastUpdated properties
 /// that are to be updated when the BusinessObject is updated, and the ISecurityController to be used to
 /// retrieve the current user name.
 ///</summary>
 ///<param name="userLastUpdatedBoProp">The UserLastUpdated property</param>
 ///<param name="dateLastUpdatedBoProp">The DateLastUpdated property</param>
 ///<param name="securityController">The ISecurityController class</param>
 public BusinessObjectLastUpdatePropertiesLog(IBOProp userLastUpdatedBoProp, IBOProp dateLastUpdatedBoProp, ISecurityController securityController)
     : this(userLastUpdatedBoProp, dateLastUpdatedBoProp)
 {
     _securityController = securityController;
 }
 ///<summary>
 /// This constructor initialises this update log with the BusinessObject to be updated.
 /// This businessobject is then searched for the default UserLastUpdated and DateLastUpdated properties 
 /// that are to be updated when the BusinessObject is updated. The ISecurityController to be used to 
 /// retrieve the current user name is also passed in.
 ///</summary>
 ///<param name="businessObject">The BusinessObject to be updated</param>
 ///<param name="securityController">The ISecurityController class</param>
 public BusinessObjectLastUpdatePropertiesLog(IBusinessObject businessObject, ISecurityController securityController)
     : this(businessObject)
 {
     _securityController = securityController;
 }
 ///<summary>
 /// This constructor initialises this update log with the UserLastUpdated and DateLastUpdated properties 
 /// that are to be updated when the BusinessObject is updated, and the ISecurityController to be used to 
 /// retrieve the current user name.
 ///</summary>
 ///<param name="userLastUpdatedBoProp">The UserLastUpdated property</param>
 ///<param name="dateLastUpdatedBoProp">The DateLastUpdated property</param>
 ///<param name="securityController">The ISecurityController class</param>
 public BusinessObjectLastUpdatePropertiesLog(IBOProp userLastUpdatedBoProp, IBOProp dateLastUpdatedBoProp, ISecurityController securityController)
     : this(userLastUpdatedBoProp, dateLastUpdatedBoProp)
 {
     _securityController = securityController;
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Constructs the new transactionlogTable with default table name and logging fields and a specific security controller for getting the currently logged on user.
 /// </summary>
 /// <param name="busObjToLog"></param>
 /// <param name="securityController"></param>
 /// <param name="transactionLogTable"></param>
 public TransactionLogTable(BusinessObject busObjToLog, ISecurityController securityController, string transactionLogTable)
     : this(busObjToLog, transactionLogTable, "DateTimeUpdated",
            "WindowsUser", "LogonUser", "BusinessObjectToString", "MachineName", "BusinessObjectTypeName", "CRUDAction", "DirtyXML")
 {
     _securityController = securityController;
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Constructs the new transactionlogTable with default table name and logging fields and a specific security controller for getting the currently logged on user.
 /// </summary>
 /// <param name="busObjToLog"></param>
 /// <param name="securityController"></param>
 public TransactionLogTable(BusinessObject busObjToLog, ISecurityController securityController)
     : this(busObjToLog, securityController, "transactionLog")
 {
 }