Class: StorageManager

StorageManager

new StorageManager()

This class is created to separate storage to application logic. This function must ensure that there is no buffer overflow.
Source:

Methods

getRoot() → {CBSection}

Get cbsection with first level sections.
Source:
Returns:
section with first level sections.
Type
CBSection

getSectionById(cbsecid) → {CBSection}

Get cbsection from storage with cbsectionid.
Parameters:
Name Type Description
cbsecid String Section identifier
Source:
Returns:
CloudBook section
Type
CBSection

setRoot(section)

Set cbsection with first level sections.
Parameters:
Name Type Description
section CBSection section with first level sections.
Source:

setSectionById(section, cbsecid)

Set section into identifier indicate.
Parameters:
Name Type Description
section CBSection Cloudbook section
cbsecid String Identifier when stored section
Source: