OpsUtil
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
PREFIX_LOCAL_OPS: string |
Method Summary
Public Methods | ||
public |
addPermissionsToOps(opDocs: *, user: *, teams: *[], project: undefined): * |
|
public |
getOpAbsolutePath(opName: *): * |
|
public |
getOpAssetPorts(op: *, includeLibraryAssets: boolean): * |
|
public |
getOpNameByAbsoluteFileName(fileName: *): string |
|
public |
getOpNpmPackages(opName: *): * |
|
public |
getOpRenameConsequences(newName: *, oldName: *, targetDir: undefined): *[] |
|
public |
getOpRenameProblems(newName: *, oldName: *, userObj: *, teams: *[], newOpProject: undefined, oldOpProject: undefined, opUsages: *[], checkUsages: boolean, targetDir: undefined): * |
|
public |
getOpSourceDir(opName: *, relative: boolean): * |
|
public |
getOpSourceNoHierarchy(opName: *, relative: boolean): * |
|
public |
getOpTargetDir(opName: *, relative: boolean): * |
|
public |
getPatchOpNamespace(opName: *): * |
|
public |
getPatchOpsNamespaceForProject(proj: *): * |
|
public |
isCoreOp(opName: *): * |
|
public |
renameToCoreOp(oldName: *, newName: *, currentUser: *, removeOld: *, cb: undefined): * |
|
public |
renameToExtensionOp(oldName: *, newName: *, currentUser: *, removeOld: *, cb: undefined): * |
|
public |
renameToPatchOp(oldName: *, newName: *, currentUser: *, removeOld: *, newId: *, cb: undefined): * |
|
public |
renameToTeamOp(oldName: *, newName: *, currentUser: *, removeOld: *, cb: undefined): * |
|
public |
renameToUserOp(oldName: *, newName: *, currentUser: *, removeOld: *, cb: undefined): * |
|
public |
updateOpCode(opName: *, author: *, code: *): * |
|
public |
userHasWriteRightsOp(user: *, opName: *, teams: *[], project: undefined): boolean |
|
public |
validateAndFormatOpCode(code: *): {"formatedCode": *, "error": *, "message": *} |
Public Constructors
public constructor() source
Public Members
public PREFIX_LOCAL_OPS: string source
Public Methods
public addPermissionsToOps(opDocs: *, user: *, teams: *[], project: undefined): * source
Params:
Name | Type | Attribute | Description |
opDocs | * | ||
user | * | ||
teams | *[] |
|
|
project | undefined |
|
Return:
* |
public getOpAbsolutePath(opName: *): * source
Params:
Name | Type | Attribute | Description |
opName | * |
Return:
* |
public getOpAssetPorts(op: *, includeLibraryAssets: boolean): * source
Params:
Name | Type | Attribute | Description |
op | * | ||
includeLibraryAssets | boolean |
|
Return:
* |
public getOpNameByAbsoluteFileName(fileName: *): string source
Params:
Name | Type | Attribute | Description |
fileName | * |
Return:
string |
public getOpNpmPackages(opName: *): * source
Params:
Name | Type | Attribute | Description |
opName | * |
Return:
* |
public getOpRenameConsequences(newName: *, oldName: *, targetDir: undefined): *[] source
Params:
Name | Type | Attribute | Description |
newName | * | ||
oldName | * | ||
targetDir | undefined |
|
Return:
*[] |
public getOpRenameProblems(newName: *, oldName: *, userObj: *, teams: *[], newOpProject: undefined, oldOpProject: undefined, opUsages: *[], checkUsages: boolean, targetDir: undefined): * source
Params:
Name | Type | Attribute | Description |
newName | * | ||
oldName | * | ||
userObj | * | ||
teams | *[] |
|
|
newOpProject | undefined |
|
|
oldOpProject | undefined |
|
|
opUsages | *[] |
|
|
checkUsages | boolean |
|
|
targetDir | undefined |
|
Return:
* |
public getOpSourceDir(opName: *, relative: boolean): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
relative | boolean |
|
Return:
* |
public getOpSourceNoHierarchy(opName: *, relative: boolean): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
relative | boolean |
|
Return:
* |
public getOpTargetDir(opName: *, relative: boolean): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
relative | boolean |
|
Return:
* |
public getPatchOpNamespace(opName: *): * source
Params:
Name | Type | Attribute | Description |
opName | * |
Return:
* |
public getPatchOpsNamespaceForProject(proj: *): * source
Params:
Name | Type | Attribute | Description |
proj | * |
Return:
* |
public renameToCoreOp(oldName: *, newName: *, currentUser: *, removeOld: *, cb: undefined): * source
Params:
Name | Type | Attribute | Description |
oldName | * | ||
newName | * | ||
currentUser | * | ||
removeOld | * | ||
cb | undefined |
|
Return:
* |
public renameToExtensionOp(oldName: *, newName: *, currentUser: *, removeOld: *, cb: undefined): * source
Params:
Name | Type | Attribute | Description |
oldName | * | ||
newName | * | ||
currentUser | * | ||
removeOld | * | ||
cb | undefined |
|
Return:
* |
public renameToPatchOp(oldName: *, newName: *, currentUser: *, removeOld: *, newId: *, cb: undefined): * source
Params:
Name | Type | Attribute | Description |
oldName | * | ||
newName | * | ||
currentUser | * | ||
removeOld | * | ||
newId | * | ||
cb | undefined |
|
Return:
* |
public renameToTeamOp(oldName: *, newName: *, currentUser: *, removeOld: *, cb: undefined): * source
Params:
Name | Type | Attribute | Description |
oldName | * | ||
newName | * | ||
currentUser | * | ||
removeOld | * | ||
cb | undefined |
|
Return:
* |
public renameToUserOp(oldName: *, newName: *, currentUser: *, removeOld: *, cb: undefined): * source
Params:
Name | Type | Attribute | Description |
oldName | * | ||
newName | * | ||
currentUser | * | ||
removeOld | * | ||
cb | undefined |
|
Return:
* |
public updateOpCode(opName: *, author: *, code: *): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
author | * | ||
code | * |
Return:
* |
public userHasWriteRightsOp(user: *, opName: *, teams: *[], project: undefined): boolean source
Params:
Name | Type | Attribute | Description |
user | * | ||
opName | * | ||
teams | *[] |
|
|
project | undefined |
|
Return:
boolean |
public validateAndFormatOpCode(code: *): {"formatedCode": *, "error": *, "message": *} source
Params:
Name | Type | Attribute | Description |
code | * |
Return:
{"formatedCode": *, "error": *, "message": *} |