Class SessionInfo


  • public final class SessionInfo
    extends Object
    Class that represents the info of a session.
    • Constructor Detail

      • SessionInfo

        public SessionInfo()
        For yaml deserialization.
      • SessionInfo

        public SessionInfo​(SessionID newsessionID,
                           AccountID newaccountID,
                           Map<MetaClassID,​Set<PropertyID>> newpropertiesOfClasses,
                           Map<ContractID,​SessionContract> thesessionContracts,
                           Map<DataContractID,​SessionDataContract> thesessionDataContracts,
                           DataContractID thedataContractIDforStore,
                           CommonMessages.Langs newlanguage,
                           Map<MetaClassID,​byte[]> newifaceBitmaps,
                           Calendar newendDate)
        Constructor for the info of the session
        Parameters:
        newsessionID - ID of the session
        newaccountID - account of the session
        thesessionContracts - info of the contracts in the session
        thesessionDataContracts - info of the data contracts in the session
        thedataContractIDforStore - id of the data contract for store
        newlanguage - programming language for the session
        newpropertiesOfClasses - visible properties per class for this session
        newifaceBitmaps - interface bitmaps for the session.
        newendDate - end date of the session considering its contracts
      • SessionInfo

        public SessionInfo​(SessionID sessionID,
                           DataClayInstanceID extDataClayID,
                           AccountID accountID,
                           CommonMessages.Langs language,
                           Calendar endDate)
        Constructor for external sessions
        Parameters:
        sessionID - id of the session
        extDataClayID - id of external dataClay instance
        accountID - id of the account on behalf of external dataClay instance
        language - language of the session
        endDate - expiration date
    • Method Detail

      • getSessionContracts

        public Map<ContractID,​SessionContract> getSessionContracts()
        Get the SessionInfo::sessionContracts
        Returns:
        the sessionContracts
      • setSessionContracts

        public void setSessionContracts​(Map<ContractID,​SessionContract> newsessionContracts)
        Set the SessionInfo::sessionContracts
        Parameters:
        newsessionContracts - the sessionContracts to set
      • setSessionDataContracts

        public void setSessionDataContracts​(Map<DataContractID,​SessionDataContract> newsessionDataContracts)
        Set the SessionInfo::sessionDataContracts
        Parameters:
        newsessionDataContracts - the sessionDataContracts to set
      • getDataContractIDforStore

        public DataContractID getDataContractIDforStore()
        Get the SessionInfo::dataContractIDforStore
        Returns:
        the dataContractIDforStore
      • setDataContractIDforStore

        public void setDataContractIDforStore​(DataContractID newdataContractIDforStore)
        Set the SessionInfo::dataContractIDforStore
        Parameters:
        newdataContractIDforStore - the dataContractIDforStore to set
      • getAccountID

        public AccountID getAccountID()
        Get the SessionInfo::accountID
        Returns:
        the accountID
      • setAccountID

        public void setAccountID​(AccountID newaccountID)
        Set the SessionInfo::accountID
        Parameters:
        newaccountID - the accountID to set
      • getLanguage

        public CommonMessages.Langs getLanguage()
        Get the SessionInfo::language
        Returns:
        the language
      • setLanguage

        public void setLanguage​(CommonMessages.Langs newlanguage)
        Set the SessionInfo::language
        Parameters:
        newlanguage - the language to set
      • getPropertiesOfClasses

        public Map<MetaClassID,​Set<PropertyID>> getPropertiesOfClasses()
        Get the SessionInfo::propertiesOfClasses
        Returns:
        the propertiesOfClasses
      • setPropertiesOfClasses

        public void setPropertiesOfClasses​(Map<MetaClassID,​Set<PropertyID>> newpropertiesOfClasses)
        Set the SessionInfo::propertiesOfClasses
        Parameters:
        newpropertiesOfClasses - the propertiesOfClasses to set
      • getIfaceBitmaps

        public Map<MetaClassID,​byte[]> getIfaceBitmaps()
        Get the SessionInfo::ifaceBitmaps
        Returns:
        the ifaceBitmaps
      • setIfaceBitmaps

        public void setIfaceBitmaps​(Map<MetaClassID,​byte[]> newifaceBitmaps)
        Set the SessionInfo::ifaceBitmaps
        Parameters:
        newifaceBitmaps - the ifaceBitmaps to set
      • getEndDate

        public Calendar getEndDate()
        Get the SessionInfo::endDate
        Returns:
        the endDate
      • setEndDate

        public void setEndDate​(Calendar newendDate)
        Set the SessionInfo::endDate
        Parameters:
        newendDate - the newendDate to set
      • getSessionID

        public SessionID getSessionID()
        Returns:
        the sessionID
      • setSessionID

        public void setSessionID​(SessionID thesessionID)
        Parameters:
        thesessionID - the sessionID to set
      • getExtDataClayID

        public DataClayInstanceID getExtDataClayID()
        Returns:
        id of external dataClay of this session
      • setExtDataClayID

        public void setExtDataClayID​(DataClayInstanceID extDataClayID)
        Set the SessionInfo::extDataClayID
        Parameters:
        extDataClayID - id external dataClayID to set