1. Stylelabs.M.Sdk.Models.Clients

Class FinalLifeCycleManagerBase

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

Inheritance

object

FinalLifeCycleManagerBase

Implements

IFinalLifeCycleManager

Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsClients

Assembly: Stylelabs.M.Sdk.dll

Syntax

public abstract class FinalLifeCycleManagerBase : IFinalLifeCycleManager

Constructors

FinalLifeCycleManagerBase(IMClient)

Declaration

public FinalLifeCycleManagerBase(IMClient client)

Parameters

TypeNameDescription
IMClientclient

Methods

ApproveAsync(long)

Approves an Asset. State will become Approved.

Declaration

public abstract Task ApproveAsync(long id)

Parameters

TypeNameDescription
longidId of the asset.

Returns

TypeDescription
TaskAn awaitable .

Exceptions

TypeCondition
ForbiddenExceptionWhen the id is not from an Asset entity.
ForbiddenExceptionWhen the transition is not allowed.

ArchiveAsync(long)

Archives an Asset. State will become Archived.

Declaration

public abstract Task ArchiveAsync(long id)

Parameters

TypeNameDescription
longidId of the asset.

Returns

TypeDescription
TaskAn awaitable .

Exceptions

TypeCondition
ForbiddenExceptionWhen the id is not from an Asset entity.
ForbiddenExceptionWhen the transition is not allowed.

DirectPublishAsync(long)

Directly publishes an Asset. State will become Approved.

Declaration

public abstract Task DirectPublishAsync(long id)

Parameters

TypeNameDescription
longidId of the asset.

Returns

TypeDescription
TaskAn awaitable .

Exceptions

TypeCondition
ForbiddenExceptionWhen the id is not from an Asset entity.
ForbiddenExceptionWhen the transition is not allowed.

GetFinalLifeCycleStatusIdAsync(FinalLifeCycleStatus)

Gets the id of a final life cycle status entity.

Declaration

public Task<long?> GetFinalLifeCycleStatusIdAsync(FinalLifeCycleStatus status)

Parameters

TypeNameDescription
FinalLifeCycleStatusstatusThe status.

Returns

TypeDescription
Task<>longThe id or null when it was not found.

GetFinalLifeCycleStatusIdAsync(string)

Gets the id of a final life cycle status entity.

Declaration

public Task<long?> GetFinalLifeCycleStatusIdAsync(string status)

Parameters

TypeNameDescription
stringstatusThe status.

Returns

TypeDescription
Task<>longThe id or null when it was not found.

RejectAsync(long, string)

Rejects an Asset. State will become Rejected.

Declaration

public abstract Task RejectAsync(long id, string reason = null)

Parameters

TypeNameDescription
longidId of the asset.
stringreasonThe rejection reason.

Returns

TypeDescription
TaskAn awaitable .

Exceptions

TypeCondition
ForbiddenExceptionWhen the id is not from an Asset entity.
ForbiddenExceptionWhen the transition is not allowed.

RestoreAsync(long)

Restores an Asset. State will become Approved.

Declaration

public abstract Task RestoreAsync(long id)

Parameters

TypeNameDescription
longidId of the asset.

Returns

TypeDescription
TaskAn awaitable .

Exceptions

TypeCondition
ForbiddenExceptionWhen the id is not from an Asset entity.
ForbiddenExceptionWhen the transition is not allowed.

SubmitAsync(long)

Submits an Asset. State will become UnderReview.

Declaration

public abstract Task SubmitAsync(long id)

Parameters

TypeNameDescription
longidId of the asset.

Returns

TypeDescription
TaskAn awaitable .

Exceptions

TypeCondition
ForbiddenExceptionWhen the id is not from an Asset entity.
ForbiddenExceptionWhen the transition is not allowed.

Implements

IFinalLifeCycleManager

If you have suggestions for improving this article, let us know!