View source | Discuss this page | Page history | Printable version   

ERP 2.50:Developers Guide/Reference/Entity Model/ADSession


History of Online or Web Sessions

To the database table (AD_Session) of this entity.

Back to the entity model.



Property Column Constraints Type Description
id*# AD_Session_ID Mandatory
Max Length: 32
java.lang.String Online or Web Session Information
client AD_Client_ID Mandatory ADClient A Client is a company or a legal entity. You cannot share data between Clients.
organization AD_Org_ID Mandatory Organization An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.
active IsActive Mandatory java.lang.Boolean There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reporting. There are two reasons for de-activating and not deleting records:

(1) The system requires the record for auditing purposes. (2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are existing invoices for it. By de-activating the Business Partner you prevent it from being used in future transactions.

creationDate Created Mandatory java.util.Date The Created field indicates the date that this record was created.
createdBy CreatedBy Mandatory ADUser The Created By field indicates the user who created this record.
updated Updated Mandatory java.util.Date The Updated field indicates the date that this record was updated.
updatedBy UpdatedBy Mandatory ADUser The Updated By field indicates the user who updated this record.
webSession WebSession Max Length: 40 java.lang.String Web Session identifier
remoteAddress Remote_Addr Max Length: 60 java.lang.String The Remote Address indicates an alternative or external address.
remoteHost Remote_Host Max Length: 120 java.lang.String Remote Host
processed Processed Mandatory java.lang.Boolean The Processed checkbox indicates that a document has been processed.
sessionActive Session_Active Mandatory java.lang.Boolean Session Active indicates whether the session is currently active or not.
serverUrl Server_Url Max Length: 255 java.lang.String URL for the context the session is in
lastPing Last_Session_Ping java.util.Date Stores the last time the session made ping through the UI. In this way it is possible to determine whether the browser was closed without doing log out.
username Username Max Length: 60 java.lang.String Name that identifies the user in the System
loginStatus Login_Status Max Length: 60 java.lang.String Maintains the status for the log in. It determines whether there was any error in the log in.
aDChangeLogList List of ADChangeLog
aDSessionUsageAuditList List of ADSessionUsageAudit

Java Entity Class

 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
 * All portions are Copyright (C) 2008-2010 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
import org.openbravo.base.structure.ActiveEnabled;
import org.openbravo.base.structure.BaseOBObject;
import org.openbravo.base.structure.ClientEnabled;
import org.openbravo.base.structure.OrganizationEnabled;
import org.openbravo.base.structure.Traceable;
import org.openbravo.model.common.enterprise.Organization;
import java.lang.Boolean;
import java.lang.String;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
 * Entity class for entity ADSession (stored in table AD_Session).
 * NOTE: This class should not be instantiated directly. To instantiate this
 * class the {@link org.openbravo.base.provider.OBProvider} should be used.
public class Session extends BaseOBObject implements Traceable, ClientEnabled,
    OrganizationEnabled, ActiveEnabled {
    private static final long serialVersionUID = 1L;
    public static final String TABLE_NAME = "AD_Session";
    public static final String ADSession = "ADSession";
    public static final String PROPERTY_ID = "id";
    public static final String PROPERTY_CLIENT = "client";
    public static final String PROPERTY_ORGANIZATION = "organization";
    public static final String PROPERTY_ACTIVE = "active";
    public static final String PROPERTY_CREATIONDATE = "creationDate";
    public static final String PROPERTY_CREATEDBY = "createdBy";
    public static final String PROPERTY_UPDATED = "updated";
    public static final String PROPERTY_UPDATEDBY = "updatedBy";
    public static final String PROPERTY_WEBSESSION = "webSession";
    public static final String PROPERTY_REMOTEADDRESS = "remoteAddress";
    public static final String PROPERTY_REMOTEHOST = "remoteHost";
    public static final String PROPERTY_PROCESSED = "processed";
    public static final String PROPERTY_SESSIONACTIVE = "sessionActive";
    public static final String PROPERTY_SERVERURL = "serverUrl";
    public static final String PROPERTY_LASTPING = "lastPing";
    public static final String PROPERTY_USERNAME = "username";
    public static final String PROPERTY_LOGINSTATUS = "loginStatus";
    public static final String PROPERTY_ADCHANGELOGLIST = "aDChangeLogList";
    public static final String PROPERTY_ADSESSIONUSAGEAUDITLIST =
    public Session() {
        setDefaultValue(PROPERTY_ACTIVE, true);
        setDefaultValue(PROPERTY_PROCESSED, false);
        setDefaultValue(PROPERTY_SESSIONACTIVE, false);
        setDefaultValue(PROPERTY_ADCHANGELOGLIST, new ArrayList<Object>());
            new ArrayList<Object>());
    public String getEntityName() {
        return ADSession;
    public String getId() {
        return (String) get(PROPERTY_ID);
    public void setId(String id) {
        set(PROPERTY_ID, id);
    public Client getClient() {
        return (Client) get(PROPERTY_CLIENT);
    public void setClient(Client client) {
        set(PROPERTY_CLIENT, client);
    public Organization getOrganization() {
        return (Organization) get(PROPERTY_ORGANIZATION);
    public void setOrganization(Organization organization) {
        set(PROPERTY_ORGANIZATION, organization);
    public Boolean isActive() {
        return (Boolean) get(PROPERTY_ACTIVE);
    public void setActive(Boolean active) {
        set(PROPERTY_ACTIVE, active);
    public Date getCreationDate() {
        return (Date) get(PROPERTY_CREATIONDATE);
    public void setCreationDate(Date creationDate) {
        set(PROPERTY_CREATIONDATE, creationDate);
    public User getCreatedBy() {
        return (User) get(PROPERTY_CREATEDBY);
    public void setCreatedBy(User createdBy) {
        set(PROPERTY_CREATEDBY, createdBy);
    public Date getUpdated() {
        return (Date) get(PROPERTY_UPDATED);
    public void setUpdated(Date updated) {
        set(PROPERTY_UPDATED, updated);
    public User getUpdatedBy() {
        return (User) get(PROPERTY_UPDATEDBY);
    public void setUpdatedBy(User updatedBy) {
        set(PROPERTY_UPDATEDBY, updatedBy);
    public String getWebSession() {
        return (String) get(PROPERTY_WEBSESSION);
    public void setWebSession(String webSession) {
        set(PROPERTY_WEBSESSION, webSession);
    public String getRemoteAddress() {
        return (String) get(PROPERTY_REMOTEADDRESS);
    public void setRemoteAddress(String remoteAddress) {
        set(PROPERTY_REMOTEADDRESS, remoteAddress);
    public String getRemoteHost() {
        return (String) get(PROPERTY_REMOTEHOST);
    public void setRemoteHost(String remoteHost) {
        set(PROPERTY_REMOTEHOST, remoteHost);
    public Boolean isProcessed() {
        return (Boolean) get(PROPERTY_PROCESSED);
    public void setProcessed(Boolean processed) {
        set(PROPERTY_PROCESSED, processed);
    public Boolean isSessionActive() {
        return (Boolean) get(PROPERTY_SESSIONACTIVE);
    public void setSessionActive(Boolean sessionActive) {
        set(PROPERTY_SESSIONACTIVE, sessionActive);
    public String getServerUrl() {
        return (String) get(PROPERTY_SERVERURL);
    public void setServerUrl(String serverUrl) {
        set(PROPERTY_SERVERURL, serverUrl);
    public Date getLastPing() {
        return (Date) get(PROPERTY_LASTPING);
    public void setLastPing(Date lastPing) {
        set(PROPERTY_LASTPING, lastPing);
    public String getUsername() {
        return (String) get(PROPERTY_USERNAME);
    public void setUsername(String username) {
        set(PROPERTY_USERNAME, username);
    public String getLoginStatus() {
        return (String) get(PROPERTY_LOGINSTATUS);
    public void setLoginStatus(String loginStatus) {
        set(PROPERTY_LOGINSTATUS, loginStatus);
    public List<ADChangeLog> getADChangeLogList() {
        return (List<ADChangeLog>) get(PROPERTY_ADCHANGELOGLIST);
    public void setADChangeLogList(List<ADChangeLog> aDChangeLogList) {
        set(PROPERTY_ADCHANGELOGLIST, aDChangeLogList);
    public List<SessionUsageAudit> getADSessionUsageAuditList() {
        return (List<SessionUsageAudit>) get(PROPERTY_ADSESSIONUSAGEAUDITLIST);
    public void setADSessionUsageAuditList(
        List<SessionUsageAudit> aDSessionUsageAuditList) {

Retrieved from ""

This page has been accessed 1,542 times. This page was last modified on 14 June 2011, at 11:04. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.