Copied!

HandlerInterface

HandlerInterface.php : 19

Methods

publiccleanupWorkflowMetadataForContent()

HandlerInterface.php : 101
public cleanupWorkflowMetadataForContent(int $contentId) : void

Parameters

Name Type Default value Description
$contentId int - -

publiccountContentWithOrphanedWorkflowMetadata()

HandlerInterface.php : 108
public countContentWithOrphanedWorkflowMetadata() : int

Return values

int

publiccountWorkflowMetadata()

HandlerInterface.php : 110
public countWorkflowMetadata(Criterion $filter) : int

Parameters

Name Type Default value Description
$filter Criterion - -

Return values

int

publiccreate()

HandlerInterface.php : 21
public create(WorkflowMetadataCreateStruct $createStruct) : WorkflowMetadata

Parameters

Name Type Default value Description
$createStruct WorkflowMetadataCreateStruct - -

Return values

WorkflowMetadata

publiccreateTransitionMetadata()

HandlerInterface.php : 23
public createTransitionMetadata(TransitionMetadataCreateStruct $createStruct, int $workflowId) : TransitionMetadata

Parameters

Name Type Default value Description
$createStruct TransitionMetadataCreateStruct - -
$workflowId int - -

Return values

TransitionMetadata

publiccreateVersionLock()

HandlerInterface.php : 86
public createVersionLock(int $contentId, int $versionNo, int $userId) : void

Parameters

Name Type Default value Description
$contentId int - -
$versionNo int - -
$userId int - -

publicdeleteTransitionMetadata()

HandlerInterface.php : 30
public deleteTransitionMetadata(int $transitionId) : void

Parameters

Name Type Default value Description
$transitionId int - -

publicdeleteTransitionMetadataForWorkflow()

HandlerInterface.php : 32
public deleteTransitionMetadataForWorkflow(int $workflowId) : void

Parameters

Name Type Default value Description
$workflowId int - -

publicdeleteVersionLock()

HandlerInterface.php : 95
public deleteVersionLock(int $contentId[, int $versionNo = null ]) : void

Parameters

Name Type Default value Description
$contentId int - -
$versionNo int null -

publicdeleteVersionLocksByUserId()

HandlerInterface.php : 97
public deleteVersionLocksByUserId(int $userId) : void

Parameters

Name Type Default value Description
$userId int - -

publicdeleteWorkflowMetadata()

HandlerInterface.php : 28
public deleteWorkflowMetadata(int $workflowId) : void

Parameters

Name Type Default value Description
$workflowId int - -

publicfindWorkflowMetadata()

HandlerInterface.php : 69
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>

publicgetVersionLock()

HandlerInterface.php : 93
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

publicisVersionLocked()

HandlerInterface.php : 99
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

publicload()

HandlerInterface.php : 37
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

publicloadAllWorkflowMetadata()

HandlerInterface.php : 74
public loadAllWorkflowMetadata() : array<string|int, WorkflowMetadata>

Return values

array<string|int, WorkflowMetadata>

publicloadAllWorkflowMetadataOriginatedByUser()

HandlerInterface.php : 49
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>

publicloadContentIdsWithOrphanedWorkflowMetadata()

HandlerInterface.php : 106
public loadContentIdsWithOrphanedWorkflowMetadata() : array<string|int, int>

Return values

array<string|int, int>

publicloadMarkingMetadataByWorkflowId()

HandlerInterface.php : 56
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

publicloadTransitionMetadataByWorkflowId()

HandlerInterface.php : 44
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

publicloadWorkflowMetadataByContent()

HandlerInterface.php : 79
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>

publicloadWorkflowMetadataByStage()

HandlerInterface.php : 84
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>

publicsetMarkingMetadata()

HandlerInterface.php : 61
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>

publicupdateVersionLock()

HandlerInterface.php : 88
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 -