Class Session


  • public final class Session
    extends MgrObject<SessionID>
    This class represents a Session.
    • Constructor Detail

      • Session

        public Session()
        Empty constructor
      • Session

        public Session​(DataClayInstanceID newExtDataClayID,
                       AccountID newaccountID,
                       CommonMessages.Langs newlanguage,
                       Calendar newEndDate)
        minimal session for external dataClay acting on shared objects
        Parameters:
        newExtDataClayID - id of the external dataClay instance
        newendDate -
        newlanguage -
        newaccountID -
      • Session

        public Session​(AccountID newaccountID,
                       Map<ContractID,​SessionContract> newsessionContracts,
                       Map<DataContractID,​SessionDataContract> newsessionDataContracts,
                       DataContractID newdataContractIDofStore,
                       Calendar newEndDate,
                       CommonMessages.Langs newlanguage,
                       Map<MetaClassID,​byte[]> newifaceBitmaps)
        Session constructor
        Parameters:
        newaccountID - ID of the Account of the session
        newsessionContracts - Session contracts
        newsessionDataContracts - Session data contracts
        newdataContractIDofStore - DataContract ID where objects will be stored using this session
        newEndDate - Ende date of the session.
        newlanguage - Programming language for the session (datasets and namespaces of contracts).
        newifaceBitmaps - interface bitmaps for the session.
    • Method Detail

      • getAccountID

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

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

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

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

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

        public boolean isActive()
        Get the Session::isActive
        Returns:
        the isActive
      • getEndDate

        public Calendar getEndDate()
        Get the Session::maxEndDate
        Returns:
        the maxEndDate
      • setEndDate

        public void setEndDate​(Calendar newEndDate)
        Set the Session::endDate
        Parameters:
        newEndDate - the endDate to set
      • getDataContractIDofStore

        public DataContractID getDataContractIDofStore()
        Get the Session::dataContractIDofStore
        Returns:
        the dataContractIDofStore
      • setDataContractIDofStore

        public void setDataContractIDofStore​(DataContractID newdataContractIDofStore)
        Set the Session::dataContractIDofStore
        Parameters:
        newdataContractIDofStore - the dataContractIDofStore to set
      • getLanguage

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

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

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

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

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

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

        public void setExtDataClayID​(DataClayInstanceID newextDataClayID)
        Set the Session::extDataClayID
        Parameters:
        newextDataClayID - id to set
      • getExtDataClayID

        public DataClayInstanceID getExtDataClayID()
        Get the Session::extDataClayID
        Returns:
        the extDataClayID