FileStorageAdapter Class
File storage adapter
Constructor
Item Index
Methods
- _getApprovedPath
 - _getBuildPath
 - _getHighlightPath
 - _getPath
 - _pngFilter
 - _prepareFolder
 - _readDir
 - _readDirAndFilter
 - _readImage
 - _writeImage
 - archiveApprovedScreen
 - archiveBuildScreen
 - archiveCurrentApprovedScreen
 - archiveHighlightScreen
 - getApprovedScreen
 - getApprovedScreenNames
 - getBuildScreen
 - getBuildScreenNames
 - getCurrentApprovedScreen
 - getCurrentApprovedScreenNames
 - getHighlightScreen
 - getHighlightScreenNames
 - getPromise
 - initialize
 - setBuild
 - setPromise
 
Properties
Methods
_pngFilter
    
        - 
                    
                        
filename 
List filter for png extensions
Parameters:
- 
                    
                        
filenameString 
Returns:
_prepareFolder
    
        ()
    
    
    
    
        private
    
    
    
    
    
    
    Prepares the output folder
_readDir
    
        - 
                    
                        
path 
Reads a directory an returns all files found in the folder
Parameters:
- 
                    
                        
pathString 
Returns:
_readDirAndFilter
    
        - 
                    
                        
path 
Reads a directory and filters for png files, removing the extensions
Parameters:
- 
                    
                        
pathString 
Returns:
_readImage
    
        - 
                    
                        
path 
Reads an image and returns a promise
Parameters:
- 
                    
                        
pathString 
Returns:
With {PNGImage} Image
_writeImage
    
        - 
                    
                        
path - 
                    
                        
image 
Writes an image and returns a promise
Parameters:
- 
                    
                        
pathString - 
                    
                        
imagePNGImage 
Returns:
archiveApprovedScreen
    
        - 
                    
                        
name - 
                    
                        
image 
Archives a specific approved screen
Parameters:
- 
                    
                        
nameStringName of approved screen
 - 
                    
                        
imagePNGImageScreen to archive
 
Returns:
archiveBuildScreen
    
        - 
                    
                        
name - 
                    
                        
image 
Archives a specific build screen
Parameters:
- 
                    
                        
nameStringName of build screen
 - 
                    
                        
imagePNGImageScreen to archive
 
Returns:
archiveCurrentApprovedScreen
    
        - 
                    
                        
name - 
                    
                        
image 
Archives a specific currently approved screen
Parameters:
- 
                    
                        
nameStringName of approved screen
 - 
                    
                        
imagePNGImageScreen to archive
 
Returns:
archiveHighlightScreen
    
        - 
                    
                        
name - 
                    
                        
image 
Archives a specific highlight screen
Parameters:
- 
                    
                        
nameStringName of highlight screen
 - 
                    
                        
imagePNGImageScreen to archive
 
Returns:
getApprovedScreen
    
        - 
                    
                        
name 
Gets a specific approved screen
Parameters:
- 
                    
                        
nameStringName of approved screen
 
Returns:
With {PNGImage} Approved screen
getApprovedScreenNames
    
        ()
    
    
        
            Promise
        
    
    
    
    
    
    
    
    
    Gets a list of approve screen names
Returns:
With {string[]} List of approved screen names
getBuildScreen
    
        - 
                    
                        
name 
Gets a specific build screen
Parameters:
- 
                    
                        
nameStringName of build screen
 
Returns:
With {PNGImage}
getBuildScreenNames
    
        ()
    
    
        
            Promise
        
    
    
    
    
    
    
    
    
    Gets a list of build screen names
Returns:
With {string[]} List of build screen names
getCurrentApprovedScreen
    
        - 
                    
                        
name 
Gets a specific currently approved screen
Parameters:
- 
                    
                        
nameStringName of approved screen
 
Returns:
With {PNGImage} Approved screen
getCurrentApprovedScreenNames
    
        ()
    
    
        
            Promise
        
    
    
    
    
    
    
    
    
    Gets a list of currently approve screen names
Returns:
With {string[]} List of approved screen names
getHighlightScreen
    
        - 
                    
                        
name 
Gets a specific highlight screen
Parameters:
- 
                    
                        
nameStringName of highlight screen
 
Returns:
With {PNGImage}
getHighlightScreenNames
    
        ()
    
    
        
            Promise
        
    
    
    
    
    
    
    
    
    Gets a list of highlight screen names
Returns:
With {string[]} List of highlight screen names
getPromise
    
        ()
    
    
        
            Promise
        
    
    
    
    
    
    
    
    
    Gets the source-adapter promise
Returns:
initialize
    
        ()
    
    
    
    
    
    
    
    
    
    Initializes the source-adapter
setPromise
    
        - 
                    
                        
promise 
Sets the promise
Parameters:
- 
                    
                        
promisePromise 
