SharedExportService
Extends:
Static Method Summary
Static Public Methods | ||
public static abstract |
getExportOptions(_user: *, _teams: *, _project: *, _exportQuota: *) |
|
public static abstract |
getName() |
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
assetInfos: *[] |
|
public |
exportLog: *[] |
|
public |
files: {} |
|
public |
finalAssetPath: string |
|
public |
finalJsPath: string |
|
public |
options: {} |
|
public |
|
|
public get |
utilName: * |
Method Summary
Public Methods | ||
public |
addLog(str: *) |
|
public |
addLogError(str: *, level: string) |
|
public |
append(content: *, options: *) |
|
public |
appendFile(filePath: *, zipFilePath: *, handleAssets: *): * |
|
public abstract |
collectFiles(projectId: *, callbackFilesCollected: *, callbackError: *, options: *, next: *) |
|
public abstract |
doExport(_projectId: *, cb: *) |
|
public |
getName(): * |
|
public |
writeFilesToTempDir(fileData: *, finishedCallback: *) |
Private Methods | ||
private |
_addAssets(proj: *, allFiles: *, options: *) |
|
private |
_addBackups(backupProject: *, options: *) |
|
private |
_addInfoFiles(proj: *, options: *) |
|
private |
_addProjectHtmlCode(proj: *, options: *, libs: *, coreLibs: *, template: string) |
|
private |
_addProjectJsCode(proj: *, opsCode: *, libs: *, coreLibs: *, replacedOpIds: *, jsCode: *, options: *): * |
|
private |
_addProjectOpCode(usedOps: *, options: *, includeAllOps: boolean): * |
|
private abstract |
_doAfterCombine(jsCode: *, options: *): * called after jsCode has been combined, if selected |
|
private abstract |
_doAfterExport(originalProject: *, credentials: *, exportNumber: *): * called after export finished without error |
|
private |
_embeddingDoc(proj: *): * |
|
private |
_exportProject(originalProject: *, callbackFilesCollected: *, callbackError: *, options: *, next: *) |
|
private |
_getAssetPath(file: *): * |
|
private |
_getCoreLibUrls(coreLibs: *): * |
|
private |
_getCredits(project: *): * |
|
private |
_getDependencyUrls(dependencies: *): * |
|
private abstract |
_getFilesForProjects(theProjects: *, options: *, cb: *) |
|
private |
_getLibsUrls(libs: *): * |
|
private |
_getLicence(): * |
|
private |
_getNameForZipEntry(fn: *, allFiles: *): * |
|
private |
_getOpExportSubdir(opName: *): * |
|
private |
_getPortValueReplacement(filePathAndName: *, fn: *, lzipFileName: *): * |
|
private |
_getProjectDependencies(proj: *, options: *, cb: *) |
|
private |
_getProjectJson(proj: *, replacedOpIds: *, options: *): * |
|
private |
_replaceAssetFilePathes(proj: *, handleAssets: *): * |
|
private |
_replaceInString(replacements: *, theString: *): * |
|
private |
_resolveFileName(filePathAndName: *, pathStr: *, project: *): * |
Static Public Methods
public static abstract getExportOptions(_user: *, _teams: *, _project: *, _exportQuota: *) source
Params:
Name | Type | Attribute | Description |
_user | * | ||
_teams | * | ||
_project | * | ||
_exportQuota | * |
public static abstract getName() source
Public Constructors
public constructor() source
Public Members
public assetInfos: *[] source
public exportLog: *[] source
public files: {} source
public finalAssetPath: string source
public finalJsPath: string source
public options: {} source
public startTimeExport: * source
public get utilName: * source
Public Methods
public addLog(str: *) source
Params:
Name | Type | Attribute | Description |
str | * |
public addLogError(str: *, level: string) source
Params:
Name | Type | Attribute | Description |
str | * | ||
level | string |
|
public append(content: *, options: *) source
Params:
Name | Type | Attribute | Description |
content | * | ||
options | * |
public appendFile(filePath: *, zipFilePath: *, handleAssets: *): * source
Params:
Name | Type | Attribute | Description |
filePath | * | ||
zipFilePath | * | ||
handleAssets | * |
Return:
* |
public abstract collectFiles(projectId: *, callbackFilesCollected: *, callbackError: *, options: *, next: *) source
Params:
Name | Type | Attribute | Description |
projectId | * | ||
callbackFilesCollected | * | ||
callbackError | * | ||
options | * | ||
next | * |
public abstract doExport(_projectId: *, cb: *) source
Params:
Name | Type | Attribute | Description |
_projectId | * | ||
cb | * |
public writeFilesToTempDir(fileData: *, finishedCallback: *) source
Params:
Name | Type | Attribute | Description |
fileData | * | ||
finishedCallback | * |
Private Methods
private _addAssets(proj: *, allFiles: *, options: *) source
Params:
Name | Type | Attribute | Description |
proj | * | ||
allFiles | * | ||
options | * |
private _addBackups(backupProject: *, options: *) source
Params:
Name | Type | Attribute | Description |
backupProject | * | ||
options | * |
private _addInfoFiles(proj: *, options: *) source
Params:
Name | Type | Attribute | Description |
proj | * | ||
options | * |
private _addProjectHtmlCode(proj: *, options: *, libs: *, coreLibs: *, template: string) source
Params:
Name | Type | Attribute | Description |
proj | * | ||
options | * | ||
libs | * | ||
coreLibs | * | ||
template | string |
|
private _addProjectJsCode(proj: *, opsCode: *, libs: *, coreLibs: *, replacedOpIds: *, jsCode: *, options: *): * source
Params:
Name | Type | Attribute | Description |
proj | * | ||
opsCode | * | ||
libs | * | ||
coreLibs | * | ||
replacedOpIds | * | ||
jsCode | * | ||
options | * |
Return:
* |
private _addProjectOpCode(usedOps: *, options: *, includeAllOps: boolean): * source
Params:
Name | Type | Attribute | Description |
usedOps | * | ||
options | * | ||
includeAllOps | boolean |
|
Return:
* |
private abstract _doAfterCombine(jsCode: *, options: *): * source
called after jsCode has been combined, if selected
Params:
Name | Type | Attribute | Description |
jsCode | * | ||
options | * |
Return:
* | jsCode |
private abstract _doAfterExport(originalProject: *, credentials: *, exportNumber: *): * source
called after export finished without error
Params:
Name | Type | Attribute | Description |
originalProject | * | ||
credentials | * | ||
exportNumber | * |
Return:
* | originalProject |
private _exportProject(originalProject: *, callbackFilesCollected: *, callbackError: *, options: *, next: *) source
Params:
Name | Type | Attribute | Description |
originalProject | * | ||
callbackFilesCollected | * | ||
callbackError | * | ||
options | * | ||
next | * |
private _getCoreLibUrls(coreLibs: *): * source
Params:
Name | Type | Attribute | Description |
coreLibs | * |
Return:
* |
private _getDependencyUrls(dependencies: *): * source
Params:
Name | Type | Attribute | Description |
dependencies | * |
Return:
* |
private abstract _getFilesForProjects(theProjects: *, options: *, cb: *) source
Params:
Name | Type | Attribute | Description |
theProjects | * | ||
options | * | ||
cb | * |
private _getNameForZipEntry(fn: *, allFiles: *): * source
Params:
Name | Type | Attribute | Description |
fn | * | ||
allFiles | * |
Return:
* |
private _getOpExportSubdir(opName: *): * source
Params:
Name | Type | Attribute | Description |
opName | * |
Return:
* |
private _getPortValueReplacement(filePathAndName: *, fn: *, lzipFileName: *): * source
Params:
Name | Type | Attribute | Description |
filePathAndName | * | ||
fn | * | ||
lzipFileName | * |
Return:
* |
private _getProjectDependencies(proj: *, options: *, cb: *) source
Params:
Name | Type | Attribute | Description |
proj | * | ||
options | * | ||
cb | * |
private _getProjectJson(proj: *, replacedOpIds: *, options: *): * source
Params:
Name | Type | Attribute | Description |
proj | * | ||
replacedOpIds | * | ||
options | * |
Return:
* |
private _replaceAssetFilePathes(proj: *, handleAssets: *): * source
Params:
Name | Type | Attribute | Description |
proj | * | ||
handleAssets | * |
Return:
* |
private _replaceInString(replacements: *, theString: *): * source
Params:
Name | Type | Attribute | Description |
replacements | * | ||
theString | * |
Return:
* |
private _resolveFileName(filePathAndName: *, pathStr: *, project: *): * source
Params:
Name | Type | Attribute | Description |
filePathAndName | * | ||
pathStr | * | ||
project | * |
Return:
* |