ServerOps
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
loaded: boolean |
|
public |
|
Private Members | ||
private |
_loadedCoreLibs: *[] |
|
private |
_loadedLibs: *[] |
|
private |
_log: * |
|
private |
_ops: *[] |
|
private |
_patchId: * |
Method Summary
Public Methods | ||
public |
addAttachmentDialog(opname: *) |
|
public |
addCoreLib(opName: *, libName: *, next: *, options: {}) |
|
public |
addOpDependency(opName: *, depName: *, depType: *, next: undefined) |
|
public |
addOpLib(opName: *, libName: *, next: *) |
|
public |
allLibsLoaded(op: *): boolean |
|
public |
canEditAttachment(user: *, opName: *): * |
|
public |
canEditOp(user: *, opName: *): * |
|
public |
clone(oldname: *, name: *, cb: *, options: *) |
|
public |
cloneDialog(oldName: *, origOp: *) |
|
public |
create(name: *, cb: *, openEditor: *, options: {}) |
|
public |
createDialog(name: *, options: *) |
|
public |
deleteAttachment(opName: *, opId: *, attName: *) |
|
public |
deleteDialog(opName: *) |
|
public |
edit(op: *, readOnly: *, cb: *, userInteraction: *): * |
|
public |
editAttachment(op: *, attachmentName: *, readOnly: *, cb: *, fromListener: boolean) |
|
public |
execute(opIdentifier: *, next: *, options: *) |
|
public |
finished(): * |
|
public |
getCoreLibs(opThing: *, checkLoaded: *): * |
|
public |
getMissingOps(proj: *): * |
|
public |
getOpIdentifier(op: *): * |
|
public |
getOpLibs(opThing: *, checkLoaded: *): * |
|
public |
getOpNameByIdentifier(opIdentifier: *): * |
|
public |
isCoreLibLoaded(coreLibName: *): * |
|
public |
isLibLoaded(libName: *): * |
|
public |
isLoaded(op: *): * |
|
public |
isServerOp(name: *): boolean |
|
public |
load(cb: *) |
|
public |
loadCollectionOps(name: *, type: *, cb: *) |
|
public |
loadOp(op: *, cb: *, forceReload: boolean) |
|
public |
loadOpDependencies(opName: *, _next: *, reload: boolean) |
|
public |
loadOpLibs(op: *, finishedCb: *) |
|
public |
loadOps(ops: *, cb: *) |
|
public |
loadOpsLibs(ops: *, finishedCb: *) |
|
public |
loadProjectDependencies(proj: *, _next: *, loadAll: boolean) |
|
public |
opCodeLoaded(op: *): * |
|
public |
opNameDialog(options: {}, cb: function) |
|
public |
removeCoreLib(opName: *, libName: *, next: *) |
|
public |
removeOpDependency(opName: *, depName: *, depType: *, next: undefined) |
|
public |
removeOpLib(opName: *, libName: *, next: *) |
|
public |
renameDialog(oldName: *) |
|
public |
renameDialogIframe(opName: *) |
|
public |
saveOpLayout(op: *) |
|
public |
showApiError(err: *) |
|
public |
|
Private Methods | ||
private |
_afterOpRename(newOp: *) |
|
private |
_getOpLayout(op: *): * |
|
private |
_runLibsLoader(libsToLoad: *, coreLibsToLoad: *, finishedCb: *) |
|
private |
_saveOpLayout(op: *): boolean |
Public Constructors
public constructor() source
Public Members
public loaded: boolean source
public timeoutsLayouts: * source
Private Members
private _loadedCoreLibs: *[] source
private _loadedLibs: *[] source
private _log: * source
private _ops: *[] source
private _patchId: * source
Public Methods
public addAttachmentDialog(opname: *) source
Params:
Name | Type | Attribute | Description |
opname | * |
public addCoreLib(opName: *, libName: *, next: *, options: {}) source
Params:
Name | Type | Attribute | Description |
opName | * | ||
libName | * | ||
next | * | ||
options | {} |
|
public addOpDependency(opName: *, depName: *, depType: *, next: undefined) source
Params:
Name | Type | Attribute | Description |
opName | * | ||
depName | * | ||
depType | * | ||
next | undefined |
|
public addOpLib(opName: *, libName: *, next: *) source
Params:
Name | Type | Attribute | Description |
opName | * | ||
libName | * | ||
next | * |
public allLibsLoaded(op: *): boolean source
Params:
Name | Type | Attribute | Description |
op | * |
Return:
boolean |
public canEditAttachment(user: *, opName: *): * source
Params:
Name | Type | Attribute | Description |
user | * | ||
opName | * |
Return:
* |
public canEditOp(user: *, opName: *): * source
Params:
Name | Type | Attribute | Description |
user | * | ||
opName | * |
Return:
* |
public clone(oldname: *, name: *, cb: *, options: *) source
Params:
Name | Type | Attribute | Description |
oldname | * | ||
name | * | ||
cb | * | ||
options | * |
public cloneDialog(oldName: *, origOp: *) source
Params:
Name | Type | Attribute | Description |
oldName | * | ||
origOp | * |
public create(name: *, cb: *, openEditor: *, options: {}) source
Params:
Name | Type | Attribute | Description |
name | * | ||
cb | * | ||
openEditor | * | ||
options | {} |
|
public createDialog(name: *, options: *) source
Params:
Name | Type | Attribute | Description |
name | * | ||
options | * |
public deleteAttachment(opName: *, opId: *, attName: *) source
Params:
Name | Type | Attribute | Description |
opName | * | ||
opId | * | ||
attName | * |
public deleteDialog(opName: *) source
Params:
Name | Type | Attribute | Description |
opName | * |
public edit(op: *, readOnly: *, cb: *, userInteraction: *): * source
Params:
Name | Type | Attribute | Description |
op | * | ||
readOnly | * | ||
cb | * | ||
userInteraction | * |
Return:
* |
public editAttachment(op: *, attachmentName: *, readOnly: *, cb: *, fromListener: boolean) source
Params:
Name | Type | Attribute | Description |
op | * | ||
attachmentName | * | ||
readOnly | * | ||
cb | * | ||
fromListener | boolean |
|
public execute(opIdentifier: *, next: *, options: *) source
Params:
Name | Type | Attribute | Description |
opIdentifier | * | ||
next | * | ||
options | * |
public getCoreLibs(opThing: *, checkLoaded: *): * source
Params:
Name | Type | Attribute | Description |
opThing | * | ||
checkLoaded | * |
Return:
* |
public getOpLibs(opThing: *, checkLoaded: *): * source
Params:
Name | Type | Attribute | Description |
opThing | * | ||
checkLoaded | * |
Return:
* |
public getOpNameByIdentifier(opIdentifier: *): * source
Params:
Name | Type | Attribute | Description |
opIdentifier | * |
Return:
* |
public isCoreLibLoaded(coreLibName: *): * source
Params:
Name | Type | Attribute | Description |
coreLibName | * |
Return:
* |
public isServerOp(name: *): boolean source
Params:
Name | Type | Attribute | Description |
name | * |
Return:
boolean |
public load(cb: *) source
Params:
Name | Type | Attribute | Description |
cb | * |
public loadCollectionOps(name: *, type: *, cb: *) source
Params:
Name | Type | Attribute | Description |
name | * | ||
type | * | ||
cb | * |
public loadOp(op: *, cb: *, forceReload: boolean) source
Params:
Name | Type | Attribute | Description |
op | * | ||
cb | * | ||
forceReload | boolean |
|
public loadOpDependencies(opName: *, _next: *, reload: boolean) source
Params:
Name | Type | Attribute | Description |
opName | * | ||
_next | * | ||
reload | boolean |
|
public loadOpLibs(op: *, finishedCb: *) source
Params:
Name | Type | Attribute | Description |
op | * | ||
finishedCb | * |
public loadOps(ops: *, cb: *) source
Params:
Name | Type | Attribute | Description |
ops | * | ||
cb | * |
public loadOpsLibs(ops: *, finishedCb: *) source
Params:
Name | Type | Attribute | Description |
ops | * | ||
finishedCb | * |
public loadProjectDependencies(proj: *, _next: *, loadAll: boolean) source
Params:
Name | Type | Attribute | Description |
proj | * | ||
_next | * | ||
loadAll | boolean |
|
public opNameDialog(options: {}, cb: function) source
Params:
Name | Type | Attribute | Description |
options | {} | ||
options.title | string | title of the dialog |
|
options.shortName | string | shortname of the new op |
|
options.type | string | type of op (patch/user/team/...) |
|
options.suggestedNamespace | string | suggested namespace in dropdown |
|
options.showReplace | boolean | show "create and replace existing" button |
|
options.sourceOpName | string | null | opname to clone from or create op into |
|
cb | function |
public removeCoreLib(opName: *, libName: *, next: *) source
Params:
Name | Type | Attribute | Description |
opName | * | ||
libName | * | ||
next | * |
public removeOpDependency(opName: *, depName: *, depType: *, next: undefined) source
Params:
Name | Type | Attribute | Description |
opName | * | ||
depName | * | ||
depType | * | ||
next | undefined |
|
public removeOpLib(opName: *, libName: *, next: *) source
Params:
Name | Type | Attribute | Description |
opName | * | ||
libName | * | ||
next | * |
public renameDialog(oldName: *) source
Params:
Name | Type | Attribute | Description |
oldName | * |
public renameDialogIframe(opName: *) source
Params:
Name | Type | Attribute | Description |
opName | * |
public saveOpLayout(op: *) source
Params:
Name | Type | Attribute | Description |
op | * |
public showApiError(err: *) source
Params:
Name | Type | Attribute | Description |
err | * |
public testServer() source
Private Methods
private _afterOpRename(newOp: *) source
Params:
Name | Type | Attribute | Description |
newOp | * |
private _runLibsLoader(libsToLoad: *, coreLibsToLoad: *, finishedCb: *) source
Params:
Name | Type | Attribute | Description |
libsToLoad | * | ||
coreLibsToLoad | * | ||
finishedCb | * |
private _saveOpLayout(op: *): boolean source
Params:
Name | Type | Attribute | Description |
op | * |
Return:
boolean |