Home Reference Source
import ServerOps from './ui/api/opsserver.js'
public class | source

ServerOps

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

loaded: boolean

public
Private Members
private
private
private

_log: *

private

_ops: *[]

private

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:

NameTypeAttributeDescription
opname *

public addCoreLib(opName: *, libName: *, next: *, options: {}) source

Params:

NameTypeAttributeDescription
opName *
libName *
next *
options {}
  • optional
  • default: {}

public addOpDependency(opName: *, depName: *, depType: *, next: undefined) source

Params:

NameTypeAttributeDescription
opName *
depName *
depType *
next undefined
  • optional
  • default: undefined

public addOpLib(opName: *, libName: *, next: *) source

Params:

NameTypeAttributeDescription
opName *
libName *
next *

public allLibsLoaded(op: *): boolean source

Params:

NameTypeAttributeDescription
op *

Return:

boolean

public canEditAttachment(user: *, opName: *): * source

Params:

NameTypeAttributeDescription
user *
opName *

Return:

*

public canEditOp(user: *, opName: *): * source

Params:

NameTypeAttributeDescription
user *
opName *

Return:

*

public clone(oldname: *, name: *, cb: *, options: *) source

Params:

NameTypeAttributeDescription
oldname *
name *
cb *
options *

public cloneDialog(oldName: *, origOp: *) source

Params:

NameTypeAttributeDescription
oldName *
origOp *

public create(name: *, cb: *, openEditor: *, options: {}) source

Params:

NameTypeAttributeDescription
name *
cb *
openEditor *
options {}
  • optional
  • default: {}

public createDialog(name: *, options: *) source

Params:

NameTypeAttributeDescription
name *
options *

public deleteAttachment(opName: *, opId: *, attName: *) source

Params:

NameTypeAttributeDescription
opName *
opId *
attName *

public deleteDialog(opName: *) source

Params:

NameTypeAttributeDescription
opName *

public edit(op: *, readOnly: *, cb: *, userInteraction: *): * source

Params:

NameTypeAttributeDescription
op *
readOnly *
cb *
userInteraction *

Return:

*

public editAttachment(op: *, attachmentName: *, readOnly: *, cb: *, fromListener: boolean) source

Params:

NameTypeAttributeDescription
op *
attachmentName *
readOnly *
cb *
fromListener boolean
  • optional
  • default: false

public execute(opIdentifier: *, next: *, options: *) source

Params:

NameTypeAttributeDescription
opIdentifier *
next *
options *

public finished(): * source

Return:

*

public getCoreLibs(opThing: *, checkLoaded: *): * source

Params:

NameTypeAttributeDescription
opThing *
checkLoaded *

Return:

*

public getMissingOps(proj: *): * source

Params:

NameTypeAttributeDescription
proj *

Return:

*

public getOpIdentifier(op: *): * source

Params:

NameTypeAttributeDescription
op *

Return:

*

public getOpLibs(opThing: *, checkLoaded: *): * source

Params:

NameTypeAttributeDescription
opThing *
checkLoaded *

Return:

*

public getOpNameByIdentifier(opIdentifier: *): * source

Params:

NameTypeAttributeDescription
opIdentifier *

Return:

*

public isCoreLibLoaded(coreLibName: *): * source

Params:

NameTypeAttributeDescription
coreLibName *

Return:

*

public isLibLoaded(libName: *): * source

Params:

NameTypeAttributeDescription
libName *

Return:

*

public isLoaded(op: *): * source

Params:

NameTypeAttributeDescription
op *

Return:

*

public isServerOp(name: *): boolean source

Params:

NameTypeAttributeDescription
name *

Return:

boolean

public load(cb: *) source

Params:

NameTypeAttributeDescription
cb *

public loadCollectionOps(name: *, type: *, cb: *) source

Params:

NameTypeAttributeDescription
name *
type *
cb *

public loadOp(op: *, cb: *, forceReload: boolean) source

Params:

NameTypeAttributeDescription
op *
cb *
forceReload boolean
  • optional
  • default: false

public loadOpDependencies(opName: *, _next: *, reload: boolean) source

Params:

NameTypeAttributeDescription
opName *
_next *
reload boolean
  • optional
  • default: false

public loadOpLibs(op: *, finishedCb: *) source

Params:

NameTypeAttributeDescription
op *
finishedCb *

public loadOps(ops: *, cb: *) source

Params:

NameTypeAttributeDescription
ops *
cb *

public loadOpsLibs(ops: *, finishedCb: *) source

Params:

NameTypeAttributeDescription
ops *
finishedCb *

public loadProjectDependencies(proj: *, _next: *, loadAll: boolean) source

Params:

NameTypeAttributeDescription
proj *
_next *
loadAll boolean
  • optional
  • default: false

public opCodeLoaded(op: *): * source

Params:

NameTypeAttributeDescription
op *

Return:

*

public opNameDialog(options: {}, cb: function) source

Params:

NameTypeAttributeDescription
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:

NameTypeAttributeDescription
opName *
libName *
next *

public removeOpDependency(opName: *, depName: *, depType: *, next: undefined) source

Params:

NameTypeAttributeDescription
opName *
depName *
depType *
next undefined
  • optional
  • default: undefined

public removeOpLib(opName: *, libName: *, next: *) source

Params:

NameTypeAttributeDescription
opName *
libName *
next *

public renameDialog(oldName: *) source

Params:

NameTypeAttributeDescription
oldName *

public renameDialogIframe(opName: *) source

Params:

NameTypeAttributeDescription
opName *

public saveOpLayout(op: *) source

Params:

NameTypeAttributeDescription
op *

public showApiError(err: *) source

Params:

NameTypeAttributeDescription
err *

public testServer() source

Private Methods

private _afterOpRename(newOp: *) source

Params:

NameTypeAttributeDescription
newOp *

private _getOpLayout(op: *): * source

Params:

NameTypeAttributeDescription
op *

Return:

*

private _runLibsLoader(libsToLoad: *, coreLibsToLoad: *, finishedCb: *) source

Params:

NameTypeAttributeDescription
libsToLoad *
coreLibsToLoad *
finishedCb *

private _saveOpLayout(op: *): boolean source

Params:

NameTypeAttributeDescription
op *

Return:

boolean