Package es.bsc.dataclay.logic.sessionmgr
Class Session
- java.lang.Object
-
- es.bsc.dataclay.util.MgrObject<SessionID>
-
- es.bsc.dataclay.logic.sessionmgr.Session
-
-
Constructor Summary
Constructors Constructor Description Session()
Empty constructorSession(AccountID newaccountID, Map<ContractID,SessionContract> newsessionContracts, Map<DataContractID,SessionDataContract> newsessionDataContracts, DataContractID newdataContractIDofStore, Calendar newEndDate, CommonMessages.Langs newlanguage, Map<MetaClassID,byte[]> newifaceBitmaps)
Session constructorSession(DataClayInstanceID newExtDataClayID, AccountID newaccountID, CommonMessages.Langs newlanguage, Calendar newEndDate)
minimal session for external dataClay acting on shared objects
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountID
getAccountID()
Get the Session::accountIDDataContractID
getDataContractIDofStore()
Get the Session::dataContractIDofStoreCalendar
getEndDate()
Get the Session::maxEndDateDataClayInstanceID
getExtDataClayID()
Get the Session::extDataClayIDMap<MetaClassID,byte[]>
getIfaceBitmaps()
Get the Session::ifaceBitmapsCommonMessages.Langs
getLanguage()
Get the Session::languageMap<MetaClassID,Set<PropertyID>>
getPropertiesOfClasses()
Get the Session::propertiesOfClassesMap<ContractID,SessionContract>
getSessionContracts()
Get the Session::sessionContractsMap<DataContractID,SessionDataContract>
getSessionDataContracts()
Get the Session::sessionDataContractsboolean
isActive()
Get the Session::isActivevoid
setAccountID(AccountID newaccountID)
Set the Session::accountIDvoid
setDataContractIDofStore(DataContractID newdataContractIDofStore)
Set the Session::dataContractIDofStorevoid
setEndDate(Calendar newEndDate)
Set the Session::endDatevoid
setExtDataClayID(DataClayInstanceID newextDataClayID)
Set the Session::extDataClayIDvoid
setIfaceBitmaps(Map<MetaClassID,byte[]> newifaceBitmaps)
Set the Session::ifaceBitmapsvoid
setLanguage(CommonMessages.Langs newlanguage)
Set the Session::languagevoid
setPropertiesOfClasses(Map<MetaClassID,Set<PropertyID>> newpropertiesOfClasses)
Set the Session::propertiesOfClassesvoid
setSessionContracts(Map<ContractID,SessionContract> newsessionContracts)
Set the Session::sessionContractsvoid
setSessionDataContracts(Map<DataContractID,SessionDataContract> newsessionDataContracts)
Set the Session::sessionDataContracts-
Methods inherited from class es.bsc.dataclay.util.MgrObject
getDataClayID, setDataClayID
-
-
-
-
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 instancenewendDate
-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 sessionnewsessionContracts
- Session contractsnewsessionDataContracts
- Session data contractsnewdataContractIDofStore
- DataContract ID where objects will be stored using this sessionnewEndDate
- 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
-
getSessionDataContracts
public Map<DataContractID,SessionDataContract> getSessionDataContracts()
Get the Session::sessionDataContracts- Returns:
- the sessionDataContracts
-
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
-
-