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 AccountIDgetAccountID()Get the SessionInfo::accountIDDataContractIDgetDataContractIDforStore()Get the SessionInfo::dataContractIDforStoreCalendargetEndDate()Get the SessionInfo::endDateDataClayInstanceIDgetExtDataClayID()Map<MetaClassID,byte[]>getIfaceBitmaps()Get the SessionInfo::ifaceBitmapsCommonMessages.LangsgetLanguage()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::sessionDataContractsSessionIDgetSessionID()voidsetAccountID(AccountID newaccountID)Set the SessionInfo::accountIDvoidsetDataContractIDforStore(DataContractID newdataContractIDforStore)Set the SessionInfo::dataContractIDforStorevoidsetEndDate(Calendar newendDate)Set the SessionInfo::endDatevoidsetExtDataClayID(DataClayInstanceID extDataClayID)Set the SessionInfo::extDataClayIDvoidsetIfaceBitmaps(Map<MetaClassID,byte[]> newifaceBitmaps)Set the SessionInfo::ifaceBitmapsvoidsetLanguage(CommonMessages.Langs newlanguage)Set the SessionInfo::languagevoidsetPropertiesOfClasses(Map<MetaClassID,Set<PropertyID>> newpropertiesOfClasses)Set the SessionInfo::propertiesOfClassesvoidsetSessionContracts(Map<ContractID,SessionContract> newsessionContracts)Set the SessionInfo::sessionContractsvoidsetSessionDataContracts(Map<DataContractID,SessionDataContract> newsessionDataContracts)Set the SessionInfo::sessionDataContractsvoidsetSessionID(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
-
-