Package org.openbravo.model.ad.access
Class Session
- java.lang.Object
-
- org.openbravo.base.structure.BaseOBObject
-
- org.openbravo.model.ad.access.Session
-
- All Implemented Interfaces:
Serializable
,BaseOBObjectDef
,OBNotSingleton
,OBProvidable
,ActiveEnabled
,ClientEnabled
,DynamicEnabled
,Identifiable
,OrganizationEnabled
,Traceable
public class Session extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled
Entity class for entity ADSession (stored in table AD_Session).
Help: History of Online or Web Sessions
NOTE: This class should not be instantiated directly. To instantiate this class theOBProvider
should be used.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENTITY_NAME
static String
PROPERTY_ACTIVE
Property active stored in column IsActive in table AD_Sessionstatic String
PROPERTY_CLIENT
Property client stored in column AD_Client_ID in table AD_Sessionstatic String
PROPERTY_CREATEDBY
Property createdBy stored in column CreatedBy in table AD_Sessionstatic String
PROPERTY_CREATIONDATE
Property creationDate stored in column Created in table AD_Sessionstatic String
PROPERTY_ID
Property id stored in column AD_Session_ID in table AD_Session
Help: Online or Web Session Informationstatic String
PROPERTY_LASTPING
Property lastPing stored in column Last_Session_Ping in table AD_Session
Help: 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.static String
PROPERTY_LOGINSTATUS
Property loginStatus stored in column Login_Status in table AD_Session
Help: Maintains the status for the log in. It determines whether there was any error in the log in.static String
PROPERTY_ORGANIZATION
Property organization stored in column AD_Org_ID in table AD_Sessionstatic String
PROPERTY_PROCESSED
Deprecated.Property marked as deprecated on field Development Statusstatic String
PROPERTY_REMOTEADDRESS
Property remoteAddress stored in column Remote_Addr in table AD_Session
Help: The Remote Address indicates an alternative or external address.static String
PROPERTY_REMOTEHOST
Property remoteHost stored in column Remote_Host in table AD_Session
Help: Remote Hoststatic String
PROPERTY_SERVERURL
Property serverUrl stored in column Server_Url in table AD_Session
Help: URL for the context the session is instatic String
PROPERTY_SESSIONACTIVE
Property sessionActive stored in column Session_Active in table AD_Session
Help: Session Active indicates whether the session is currently active or not.static String
PROPERTY_UPDATED
Property updated stored in column Updated in table AD_Sessionstatic String
PROPERTY_UPDATEDBY
Property updatedBy stored in column UpdatedBy in table AD_Sessionstatic String
PROPERTY_USERNAME
Property username stored in column Username in table AD_Session
Help: Name that identifies the user in the Systemstatic String
PROPERTY_WEBSESSION
Property webSession stored in column WebSession in table AD_Session
Help: Identifier assigned to the session by the Servlet Container (Tomcat).static String
TABLE_NAME
-
Fields inherited from class org.openbravo.base.structure.BaseOBObject
ID
-
-
Constructor Summary
Constructors Constructor Description Session()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Client
getClient()
Client fieldUser
getCreatedBy()
Created by audit userDate
getCreationDate()
Creation date of auditString
getEntityName()
String
getId()
Date
getLastPing()
String
getLoginStatus()
Organization
getOrganization()
Gets organization fieldString
getRemoteAddress()
String
getRemoteHost()
String
getServerUrl()
Date
getUpdated()
Update date of auditUser
getUpdatedBy()
Update by audit userString
getUsername()
String
getWebSession()
Boolean
isActive()
Gets active fieldBoolean
isProcessed()
Deprecated.Property marked as deprecated on field Development StatusBoolean
isSessionActive()
void
setActive(Boolean active)
Sets active fieldvoid
setClient(Client client)
Client fieldvoid
setCreatedBy(User createdBy)
Created by audit uservoid
setCreationDate(Date creationDate)
Creation date of auditvoid
setId(String id)
void
setLastPing(Date lastPing)
void
setLoginStatus(String loginStatus)
void
setOrganization(Organization organization)
Sets organization fieldvoid
setProcessed(Boolean processed)
Deprecated.Property marked as deprecated on field Development Statusvoid
setRemoteAddress(String remoteAddress)
void
setRemoteHost(String remoteHost)
void
setServerUrl(String serverUrl)
void
setSessionActive(Boolean sessionActive)
void
setUpdated(Date updated)
Update date of auditvoid
setUpdatedBy(User updatedBy)
Update by audit uservoid
setUsername(String username)
void
setWebSession(String webSession)
-
Methods inherited from class org.openbravo.base.structure.BaseOBObject
checkDerivedReadable, get, get, get, getEntity, getIdentifier, getValue, isAllowRead, isNewOBObject, isOrgClientAccessCheckEnabled, isWriteAccessCheckEnabled, set, setAccessChecks, setAllowRead, setDefaultValue, setId, setNewOBObject, setValue, toString, validate
-
-
-
-
Field Detail
-
TABLE_NAME
public static final String TABLE_NAME
- See Also:
- Constant Field Values
-
ENTITY_NAME
public static final String ENTITY_NAME
- See Also:
- Constant Field Values
-
PROPERTY_ID
public static final String PROPERTY_ID
Property id stored in column AD_Session_ID in table AD_Session
Help: Online or Web Session Information- See Also:
- Constant Field Values
-
PROPERTY_CLIENT
public static final String PROPERTY_CLIENT
Property client stored in column AD_Client_ID in table AD_Session- See Also:
ClientEnabled
, Constant Field Values
-
PROPERTY_ORGANIZATION
public static final String PROPERTY_ORGANIZATION
Property organization stored in column AD_Org_ID in table AD_Session- See Also:
OrganizationEnabled
, Constant Field Values
-
PROPERTY_ACTIVE
public static final String PROPERTY_ACTIVE
Property active stored in column IsActive in table AD_Session- See Also:
ActiveEnabled
, Constant Field Values
-
PROPERTY_CREATIONDATE
public static final String PROPERTY_CREATIONDATE
Property creationDate stored in column Created in table AD_Session- See Also:
Traceable
, Constant Field Values
-
PROPERTY_CREATEDBY
public static final String PROPERTY_CREATEDBY
Property createdBy stored in column CreatedBy in table AD_Session- See Also:
Traceable
, Constant Field Values
-
PROPERTY_UPDATED
public static final String PROPERTY_UPDATED
Property updated stored in column Updated in table AD_Session- See Also:
Traceable
, Constant Field Values
-
PROPERTY_UPDATEDBY
public static final String PROPERTY_UPDATEDBY
Property updatedBy stored in column UpdatedBy in table AD_Session- See Also:
Traceable
, Constant Field Values
-
PROPERTY_WEBSESSION
public static final String PROPERTY_WEBSESSION
Property webSession stored in column WebSession in table AD_Session
Help: Identifier assigned to the session by the Servlet Container (Tomcat).- See Also:
- Constant Field Values
-
PROPERTY_REMOTEADDRESS
public static final String PROPERTY_REMOTEADDRESS
Property remoteAddress stored in column Remote_Addr in table AD_Session
Help: The Remote Address indicates an alternative or external address.- See Also:
- Constant Field Values
-
PROPERTY_REMOTEHOST
public static final String PROPERTY_REMOTEHOST
Property remoteHost stored in column Remote_Host in table AD_Session
Help: Remote Host- See Also:
- Constant Field Values
-
PROPERTY_PROCESSED
@Deprecated public static final String PROPERTY_PROCESSED
Deprecated.Property marked as deprecated on field Development StatusProperty processed stored in column Processed in table AD_Session
Help: The Processed checkbox indicates that a document has been processed.- See Also:
- Constant Field Values
-
PROPERTY_SESSIONACTIVE
public static final String PROPERTY_SESSIONACTIVE
Property sessionActive stored in column Session_Active in table AD_Session
Help: Session Active indicates whether the session is currently active or not.- See Also:
- Constant Field Values
-
PROPERTY_SERVERURL
public static final String PROPERTY_SERVERURL
Property serverUrl stored in column Server_Url in table AD_Session
Help: URL for the context the session is in- See Also:
- Constant Field Values
-
PROPERTY_LASTPING
public static final String PROPERTY_LASTPING
Property lastPing stored in column Last_Session_Ping in table AD_Session
Help: 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.- See Also:
- Constant Field Values
-
PROPERTY_USERNAME
public static final String PROPERTY_USERNAME
Property username stored in column Username in table AD_Session
Help: Name that identifies the user in the System- See Also:
- Constant Field Values
-
PROPERTY_LOGINSTATUS
public static final String PROPERTY_LOGINSTATUS
Property loginStatus stored in column Login_Status in table AD_Session
Help: Maintains the status for the log in. It determines whether there was any error in the log in.- See Also:
- Constant Field Values
-
-
Method Detail
-
getEntityName
public String getEntityName()
- Specified by:
getEntityName
in interfaceIdentifiable
- Specified by:
getEntityName
in classBaseOBObject
-
getId
public String getId()
- Specified by:
getId
in interfaceBaseOBObjectDef
- Specified by:
getId
in interfaceIdentifiable
- Overrides:
getId
in classBaseOBObject
- See Also:
PROPERTY_ID
-
setId
public void setId(String id)
- See Also:
PROPERTY_ID
-
getClient
public Client getClient()
Description copied from interface:ClientEnabled
Client field- Specified by:
getClient
in interfaceClientEnabled
- Returns:
- client
- See Also:
PROPERTY_CLIENT
-
setClient
public void setClient(Client client)
Description copied from interface:ClientEnabled
Client field- Specified by:
setClient
in interfaceClientEnabled
- See Also:
PROPERTY_CLIENT
-
getOrganization
public Organization getOrganization()
Description copied from interface:OrganizationEnabled
Gets organization field- Specified by:
getOrganization
in interfaceOrganizationEnabled
- Returns:
- organization
- See Also:
PROPERTY_ORGANIZATION
-
setOrganization
public void setOrganization(Organization organization)
Description copied from interface:OrganizationEnabled
Sets organization field- Specified by:
setOrganization
in interfaceOrganizationEnabled
- See Also:
PROPERTY_ORGANIZATION
-
isActive
public Boolean isActive()
Description copied from interface:ActiveEnabled
Gets active field- Specified by:
isActive
in interfaceActiveEnabled
- Returns:
- active
- See Also:
PROPERTY_ACTIVE
-
setActive
public void setActive(Boolean active)
Description copied from interface:ActiveEnabled
Sets active field- Specified by:
setActive
in interfaceActiveEnabled
- See Also:
PROPERTY_ACTIVE
-
getCreationDate
public Date getCreationDate()
Description copied from interface:Traceable
Creation date of audit- Specified by:
getCreationDate
in interfaceTraceable
- Returns:
- Date of creation
- See Also:
PROPERTY_CREATIONDATE
-
setCreationDate
public void setCreationDate(Date creationDate)
Description copied from interface:Traceable
Creation date of audit- Specified by:
setCreationDate
in interfaceTraceable
- See Also:
PROPERTY_CREATIONDATE
-
getCreatedBy
public User getCreatedBy()
Description copied from interface:Traceable
Created by audit user- Specified by:
getCreatedBy
in interfaceTraceable
- Returns:
- User
- See Also:
PROPERTY_CREATEDBY
-
setCreatedBy
public void setCreatedBy(User createdBy)
Description copied from interface:Traceable
Created by audit user- Specified by:
setCreatedBy
in interfaceTraceable
- See Also:
PROPERTY_CREATEDBY
-
getUpdated
public Date getUpdated()
Description copied from interface:Traceable
Update date of audit- Specified by:
getUpdated
in interfaceTraceable
- Returns:
- Date of update
- See Also:
PROPERTY_UPDATED
-
setUpdated
public void setUpdated(Date updated)
Description copied from interface:Traceable
Update date of audit- Specified by:
setUpdated
in interfaceTraceable
- See Also:
PROPERTY_UPDATED
-
getUpdatedBy
public User getUpdatedBy()
Description copied from interface:Traceable
Update by audit user- Specified by:
getUpdatedBy
in interfaceTraceable
- Returns:
- User who updated
- See Also:
PROPERTY_UPDATEDBY
-
setUpdatedBy
public void setUpdatedBy(User updatedBy)
Description copied from interface:Traceable
Update by audit user- Specified by:
setUpdatedBy
in interfaceTraceable
- See Also:
PROPERTY_UPDATEDBY
-
getWebSession
public String getWebSession()
- See Also:
PROPERTY_WEBSESSION
-
setWebSession
public void setWebSession(String webSession)
- See Also:
PROPERTY_WEBSESSION
-
getRemoteAddress
public String getRemoteAddress()
- See Also:
PROPERTY_REMOTEADDRESS
-
setRemoteAddress
public void setRemoteAddress(String remoteAddress)
- See Also:
PROPERTY_REMOTEADDRESS
-
getRemoteHost
public String getRemoteHost()
- See Also:
PROPERTY_REMOTEHOST
-
setRemoteHost
public void setRemoteHost(String remoteHost)
- See Also:
PROPERTY_REMOTEHOST
-
isProcessed
@Deprecated public Boolean isProcessed()
Deprecated.Property marked as deprecated on field Development Status- See Also:
PROPERTY_PROCESSED
-
setProcessed
@Deprecated public void setProcessed(Boolean processed)
Deprecated.Property marked as deprecated on field Development Status- See Also:
PROPERTY_PROCESSED
-
isSessionActive
public Boolean isSessionActive()
- See Also:
PROPERTY_SESSIONACTIVE
-
setSessionActive
public void setSessionActive(Boolean sessionActive)
- See Also:
PROPERTY_SESSIONACTIVE
-
getServerUrl
public String getServerUrl()
- See Also:
PROPERTY_SERVERURL
-
setServerUrl
public void setServerUrl(String serverUrl)
- See Also:
PROPERTY_SERVERURL
-
getLastPing
public Date getLastPing()
- See Also:
PROPERTY_LASTPING
-
setLastPing
public void setLastPing(Date lastPing)
- See Also:
PROPERTY_LASTPING
-
getUsername
public String getUsername()
- See Also:
PROPERTY_USERNAME
-
setUsername
public void setUsername(String username)
- See Also:
PROPERTY_USERNAME
-
getLoginStatus
public String getLoginStatus()
- See Also:
PROPERTY_LOGINSTATUS
-
setLoginStatus
public void setLoginStatus(String loginStatus)
- See Also:
PROPERTY_LOGINSTATUS
-
-