Class SessionInfo
- java.lang.Object
-
- es.bsc.dataclay.util.management.sessionmgr.SessionInfo
-
public final class SessionInfo extends Object
Class that represents the info of a session.
-
-
Constructor Summary
Constructors Constructor Description SessionInfo()
For yaml deserialization.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 sessionSessionInfo(SessionID sessionID, DataClayInstanceID extDataClayID, AccountID accountID, CommonMessages.Langs language, Calendar endDate)
Constructor for external sessions
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountID
getAccountID()
Get the SessionInfo::accountIDDataContractID
getDataContractIDforStore()
Get the SessionInfo::dataContractIDforStoreCalendar
getEndDate()
Get the SessionInfo::endDateDataClayInstanceID
getExtDataClayID()
Map<MetaClassID,byte[]>
getIfaceBitmaps()
Get the SessionInfo::ifaceBitmapsCommonMessages.Langs
getLanguage()
Get the SessionInfo::languageMap<MetaClassID,Set<PropertyID>>
getPropertiesOfClasses()
Get the SessionInfo::propertiesOfClassesMap<ContractID,SessionContract>
getSessionContracts()
Get the SessionInfo::sessionContractsMap<DataContractID,SessionDataContract>
getSessionDataContracts()
Get the SessionInfo::sessionDataContractsSessionID
getSessionID()
void
setAccountID(AccountID newaccountID)
Set the SessionInfo::accountIDvoid
setDataContractIDforStore(DataContractID newdataContractIDforStore)
Set the SessionInfo::dataContractIDforStorevoid
setEndDate(Calendar newendDate)
Set the SessionInfo::endDatevoid
setExtDataClayID(DataClayInstanceID extDataClayID)
Set the SessionInfo::extDataClayIDvoid
setIfaceBitmaps(Map<MetaClassID,byte[]> newifaceBitmaps)
Set the SessionInfo::ifaceBitmapsvoid
setLanguage(CommonMessages.Langs newlanguage)
Set the SessionInfo::languagevoid
setPropertiesOfClasses(Map<MetaClassID,Set<PropertyID>> newpropertiesOfClasses)
Set the SessionInfo::propertiesOfClassesvoid
setSessionContracts(Map<ContractID,SessionContract> newsessionContracts)
Set the SessionInfo::sessionContractsvoid
setSessionDataContracts(Map<DataContractID,SessionDataContract> newsessionDataContracts)
Set the SessionInfo::sessionDataContractsvoid
setSessionID(SessionID thesessionID)
-
-
-
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 sessionnewaccountID
- account of the sessionthesessionContracts
- info of the contracts in the sessionthesessionDataContracts
- info of the data contracts in the sessionthedataContractIDforStore
- id of the data contract for storenewlanguage
- programming language for the sessionnewpropertiesOfClasses
- visible properties per class for this sessionnewifaceBitmaps
- 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 sessionextDataClayID
- id of external dataClay instanceaccountID
- id of the account on behalf of external dataClay instancelanguage
- language of the sessionendDate
- 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
-
getSessionDataContracts
public Map<DataContractID,SessionDataContract> getSessionDataContracts()
Get the SessionInfo::sessionDataContracts- Returns:
- the sessionDataContracts
-
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
-
-