Methods
|
public cleanupWorkflowMetadataForContent(int $contentId) : void
|
Parameters
Name |
Type |
Default value |
Description |
$contentId
|
int
|
-
|
-
|
|
public countContentWithOrphanedWorkflowMetadata() : int
|
Return values
int
|
public countWorkflowMetadata(Criterion $filter) : int
|
Parameters
Name |
Type |
Default value |
Description |
$filter
|
Criterion
|
-
|
-
|
Return values
int
|
public create(WorkflowMetadataCreateStruct $createStruct) : WorkflowMetadata
|
Parameters
Name |
Type |
Default value |
Description |
$createStruct
|
WorkflowMetadataCreateStruct
|
-
|
-
|
Return values
WorkflowMetadata
|
public createTransitionMetadata(TransitionMetadataCreateStruct $createStruct, int $workflowId) : TransitionMetadata
|
Parameters
Name |
Type |
Default value |
Description |
$createStruct
|
TransitionMetadataCreateStruct
|
-
|
-
|
$workflowId
|
int
|
-
|
-
|
Return values
TransitionMetadata
|
public createVersionLock(int $contentId, int $versionNo, int $userId) : void
|
Parameters
Name |
Type |
Default value |
Description |
$contentId
|
int
|
-
|
-
|
$versionNo
|
int
|
-
|
-
|
$userId
|
int
|
-
|
-
|
|
public deleteTransitionMetadata(int $transitionId) : void
|
Parameters
Name |
Type |
Default value |
Description |
$transitionId
|
int
|
-
|
-
|
|
public deleteTransitionMetadataForWorkflow(int $workflowId) : void
|
Parameters
Name |
Type |
Default value |
Description |
$workflowId
|
int
|
-
|
-
|
|
public deleteVersionLock(int $contentId[, int $versionNo = null ]) : void
|
Parameters
Name |
Type |
Default value |
Description |
$contentId
|
int
|
-
|
-
|
$versionNo
|
int
|
null
|
-
|
|
public deleteVersionLocksByUserId(int $userId) : void
|
Parameters
Name |
Type |
Default value |
Description |
$userId
|
int
|
-
|
-
|
|
public deleteWorkflowMetadata(int $workflowId) : void
|
Parameters
Name |
Type |
Default value |
Description |
$workflowId
|
int
|
-
|
-
|
|
public findWorkflowMetadata(Criterion $filter[, int $limit = 10 ][, int $offset = 0 ]) : array<string|int, WorkflowMetadata>
|
Parameters
Name |
Type |
Default value |
Description |
$filter
|
Criterion
|
-
|
-
|
$limit
|
int
|
10
|
-
|
$offset
|
int
|
0
|
-
|
Return values
array<string|int, WorkflowMetadata>
|
public getVersionLock(int $contentId, int $versionNo) : VersionLock
|
Parameters
Name |
Type |
Default value |
Description |
$contentId
|
int
|
-
|
-
|
$versionNo
|
int
|
-
|
-
|
Return values
VersionLock
Tags
-
Throws
-
NotFoundException
If version lock is not found
|
public isVersionLocked(int $contentId, int $versionNo[, int|null $userId = null ]) : bool
|
Parameters
Name |
Type |
Default value |
Description |
$contentId
|
int
|
-
|
-
|
$versionNo
|
int
|
-
|
-
|
$userId
|
int|null
|
null
|
-
|
Return values
bool
|
public load(int $contentId, int $versionNo[, string|null $workflowName = null ]) : WorkflowMetadata
|
Parameters
Name |
Type |
Default value |
Description |
$contentId
|
int
|
-
|
-
|
$versionNo
|
int
|
-
|
-
|
$workflowName
|
string|null
|
null
|
-
|
Return values
WorkflowMetadata
Tags
-
Throws
-
NotFoundException
|
public loadAllWorkflowMetadata() : array<string|int, WorkflowMetadata>
|
Return values
array<string|int, WorkflowMetadata>
|
public loadAllWorkflowMetadataOriginatedByUser(int $userId[, string|null $workflowName = null ]) : array<string|int, WorkflowMetadata>
|
Parameters
Name |
Type |
Default value |
Description |
$userId
|
int
|
-
|
-
|
$workflowName
|
string|null
|
null
|
-
|
Return values
array<string|int, WorkflowMetadata>
|
public loadContentIdsWithOrphanedWorkflowMetadata() : array<string|int, int>
|
Return values
array<string|int, int>
|
public loadMarkingMetadataByWorkflowId(int $workflowId) : array<string|int, MarkingMetadata>
|
Parameters
Name |
Type |
Default value |
Description |
$workflowId
|
int
|
-
|
-
|
Return values
array<string|int, MarkingMetadata>
Tags
-
Throws
-
NotFoundException
|
public loadTransitionMetadataByWorkflowId(int $workflowId) : array<string|int, TransitionMetadata>
|
Parameters
Name |
Type |
Default value |
Description |
$workflowId
|
int
|
-
|
-
|
Return values
array<string|int, TransitionMetadata>
Tags
-
Throws
-
NotFoundException
|
public loadWorkflowMetadataByContent(int $contentId[, int|null $versionNo = null ]) : array<string|int, WorkflowMetadata>
|
Parameters
Name |
Type |
Default value |
Description |
$contentId
|
int
|
-
|
-
|
$versionNo
|
int|null
|
null
|
-
|
Return values
array<string|int, WorkflowMetadata>
|
public loadWorkflowMetadataByStage(string $workflowName, string $stageName) : array<string|int, WorkflowMetadata>
|
Parameters
Name |
Type |
Default value |
Description |
$workflowName
|
string
|
-
|
-
|
$stageName
|
string
|
-
|
-
|
Return values
array<string|int, WorkflowMetadata>
|
public setMarkingMetadata(MarkingMetadataSetStruct $setStruct, int $workflowId) : array<string|int, MarkingMetadata>
|
Parameters
Name |
Type |
Default value |
Description |
$setStruct
|
MarkingMetadataSetStruct
|
-
|
-
|
$workflowId
|
int
|
-
|
-
|
Return values
array<string|int, MarkingMetadata>
|
public updateVersionLock(int $contentId, int $versionNo, bool $isLocked[, int|null $userId = null ]) : void
|
Parameters
Name |
Type |
Default value |
Description |
$contentId
|
int
|
-
|
-
|
$versionNo
|
int
|
-
|
-
|
$isLocked
|
bool
|
-
|
-
|
$userId
|
int|null
|
null
|
-
|