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 |
getCollectionName(opName: *): * |
|
| 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): OpRenameProblems |
|
| 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 |
isLocalOp(opName: *): * |
|
| public |
renameToCoreOp(oldName: *, newName: *, currentUser: *, cb: undefined): * |
|
| public |
renameToExtensionOp(oldName: *, newName: *, currentUser: *, cb: undefined): * |
|
| public |
renameToPatchOp(oldName: *, newName: *, currentUser: *, removeOld: *, newId: *, cb: undefined): * |
|
| public |
renameToTeamOp(oldName: *, newName: *, currentUser: *, cb: undefined): * |
|
| public |
renameToUserOp(oldName: *, newName: *, currentUser: *, cb: undefined): * |
|
| public |
updateOpCode(opName: *, author: *, code: *): * |
|
| public |
userHasReadRightsOp(user: *, opName: *, teams: undefined, project: undefined, opOwner: undefined): boolean |
|
| public |
userHasWriteRightsOp(user: *, opName: *, teams: *[], project: undefined, ignoreAdmin: boolean): 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 getCollectionName(opName: *): * source
Params:
| Name | Type | Attribute | Description |
| opName | * |
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): OpRenameProblems source
Params:
| Name | Type | Attribute | Description |
| newName | * | ||
| oldName | * | ||
| userObj | * | ||
| teams | *[] |
|
|
| newOpProject | undefined |
|
|
| oldOpProject | undefined |
|
|
| opUsages | *[] |
|
|
| checkUsages | boolean |
|
|
| targetDir | undefined |
|
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: *, cb: undefined): * source
Params:
| Name | Type | Attribute | Description |
| oldName | * | ||
| newName | * | ||
| currentUser | * | ||
| cb | undefined |
|
Return:
| * |
public renameToExtensionOp(oldName: *, newName: *, currentUser: *, cb: undefined): * source
Params:
| Name | Type | Attribute | Description |
| oldName | * | ||
| newName | * | ||
| currentUser | * | ||
| 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: *, cb: undefined): * source
Params:
| Name | Type | Attribute | Description |
| oldName | * | ||
| newName | * | ||
| currentUser | * | ||
| cb | undefined |
|
Return:
| * |
public renameToUserOp(oldName: *, newName: *, currentUser: *, cb: undefined): * source
Params:
| Name | Type | Attribute | Description |
| oldName | * | ||
| newName | * | ||
| currentUser | * | ||
| cb | undefined |
|
Return:
| * |
public updateOpCode(opName: *, author: *, code: *): * source
Params:
| Name | Type | Attribute | Description |
| opName | * | ||
| author | * | ||
| code | * |
Return:
| * |
public userHasReadRightsOp(user: *, opName: *, teams: undefined, project: undefined, opOwner: undefined): boolean source
Params:
| Name | Type | Attribute | Description |
| user | * | ||
| opName | * | ||
| teams | undefined |
|
|
| project | undefined |
|
|
| opOwner | undefined |
|
Return:
| boolean |
public userHasWriteRightsOp(user: *, opName: *, teams: *[], project: undefined, ignoreAdmin: boolean): boolean source
Params:
| Name | Type | Attribute | Description |
| user | * | ||
| opName | * | ||
| teams | *[] |
|
|
| project | undefined |
|
|
| ignoreAdmin | boolean |
|
Return:
| boolean |
public validateAndFormatOpCode(code: *): {"formatedCode": *, "error": *, "message": *} source
Params:
| Name | Type | Attribute | Description |
| code | * |
Return:
| {"formatedCode": *, "error": *, "message": *} |