Interface IFinalLifeCycleManager

Contains operations on the final life cycle status of an Asset.

Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ContractsContent
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse

public interface IFinalLifeCycleManager

Methods

ApproveAsync(long)

Approves an Asset. State will become Approved.

Declaration
RequestResponse

Task ApproveAsync(long id)
Parameters
TypeNameDescription
longid

Id of the asset.

Returns
TypeDescription
Task

An awaitable .

Exceptions
TypeCondition
ForbiddenException

When the id is not from an Asset entity.

ForbiddenException

When the transition is not allowed.

ArchiveAsync(long)

Archives an Asset. State will become Archived.

Declaration
RequestResponse

Task ArchiveAsync(long id)
Parameters
TypeNameDescription
longid

Id of the asset.

Returns
TypeDescription
Task

An awaitable .

Exceptions
TypeCondition
ForbiddenException

When the id is not from an Asset entity.

ForbiddenException

When the transition is not allowed.

DirectPublishAsync(long)

Directly publishes an Asset. State will become Approved.

Declaration
RequestResponse

Task DirectPublishAsync(long id)
Parameters
TypeNameDescription
longid

Id of the asset.

Returns
TypeDescription
Task

An awaitable .

Exceptions
TypeCondition
ForbiddenException

When the id is not from an Asset entity.

ForbiddenException

When the transition is not allowed.

GetFinalLifeCycleStatusIdAsync(FinalLifeCycleStatus)

Gets the id of a final life cycle status entity.

Declaration
RequestResponse

Task<long?> GetFinalLifeCycleStatusIdAsync(FinalLifeCycleStatus status)
Parameters
TypeNameDescription
FinalLifeCycleStatusstatus

The status.

Returns
TypeDescription
Task<>long

The id or null when it was not found.

GetFinalLifeCycleStatusIdAsync(string)

Gets the id of a final life cycle status entity.

Declaration
RequestResponse

Task<long?> GetFinalLifeCycleStatusIdAsync(string status)
Parameters
TypeNameDescription
stringstatus

The status.

Returns
TypeDescription
Task<>long

The id or null when it was not found.

RejectAsync(long, string)

Rejects an Asset. State will become Rejected.

Declaration
RequestResponse

Task RejectAsync(long id, string reason = null)
Parameters
TypeNameDescription
longid

Id of the asset.

stringreason

The rejection reason.

Returns
TypeDescription
Task

An awaitable .

Exceptions
TypeCondition
ForbiddenException

When the id is not from an Asset entity.

ForbiddenException

When the transition is not allowed.

RestoreAsync(long)

Restores an Asset. State will become Approved.

Declaration
RequestResponse

Task RestoreAsync(long id)
Parameters
TypeNameDescription
longid

Id of the asset.

Returns
TypeDescription
Task

An awaitable .

Exceptions
TypeCondition
ForbiddenException

When the id is not from an Asset entity.

ForbiddenException

When the transition is not allowed.

SubmitAsync(long)

Submits an Asset. State will become UnderReview.

Declaration
RequestResponse

Task SubmitAsync(long id)
Parameters
TypeNameDescription
longid

Id of the asset.

Returns
TypeDescription
Task

An awaitable .

Exceptions
TypeCondition
ForbiddenException

When the id is not from an Asset entity.

ForbiddenException

When the transition is not allowed.

Do you have some feedback for us?

If you have suggestions for improving this article,