1. IFinalLifeCycleManager

Interface IFinalLifeCycleManager

Version:
日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

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

Namespace: Stylelabs.M.Sdk.Contracts.Content
Assembly: Stylelabs.M.Sdk.dll
Syntax
public interface IFinalLifeCycleManager

Methods

ApproveAsync(Int64)

Approves an Asset. State will become Approved.

Declaration
Task ApproveAsync(long id)
Parameters
TypeNameDescription
System.Int64id

Id of the asset.

Returns
TypeDescription
Task
Exceptions
TypeCondition
ForbiddenException

When the id is not from an Asset entity.

ForbiddenException

When the transition is not allowed.

ArchiveAsync(Int64)

Archives an Asset. State will become Archived.

Declaration
Task ArchiveAsync(long id)
Parameters
TypeNameDescription
System.Int64id

Id of the asset.

Returns
TypeDescription
Task
Exceptions
TypeCondition
ForbiddenException

When the id is not from an Asset entity.

ForbiddenException

When the transition is not allowed.

DirectPublishAsync(Int64)

Directly publishes an Asset. State will become Approved.

Declaration
Task DirectPublishAsync(long id)
Parameters
TypeNameDescription
System.Int64id

Id of the asset.

Returns
TypeDescription
Task
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
Task<long?> GetFinalLifeCycleStatusIdAsync(FinalLifeCycleStatus status)
Parameters
TypeNameDescription
FinalLifeCycleStatusstatus

The status.

Returns
TypeDescription
Task<System.Nullable<System.Int64>>

The id or null when it was not found.

GetFinalLifeCycleStatusIdAsync(String)

Gets the id of a final life cycle status entity.

Declaration
Task<long?> GetFinalLifeCycleStatusIdAsync(string status)
Parameters
TypeNameDescription
System.Stringstatus

The status.

Returns
TypeDescription
Task<System.Nullable<System.Int64>>

The id or null when it was not found.

RejectAsync(Int64, String)

Rejects an Asset. State will become Rejected.

Declaration
Task RejectAsync(long id, string reason = null)
Parameters
TypeNameDescription
System.Int64id

Id of the asset.

System.Stringreason
Returns
TypeDescription
Task
Exceptions
TypeCondition
ForbiddenException

When the id is not from an Asset entity.

ForbiddenException

When the transition is not allowed.

RestoreAsync(Int64)

Restores an Asset. State will become Approved.

Declaration
Task RestoreAsync(long id)
Parameters
TypeNameDescription
System.Int64id

Id of the asset.

Returns
TypeDescription
Task
Exceptions
TypeCondition
ForbiddenException

When the id is not from an Asset entity.

ForbiddenException

When the transition is not allowed.

SubmitAsync(Int64)

Submits an Asset. State will become UnderReview.

Declaration
Task SubmitAsync(long id)
Parameters
TypeNameDescription
System.Int64id

Id of the asset.

Returns
TypeDescription
Task
Exceptions
TypeCondition
ForbiddenException

When the id is not from an Asset entity.

ForbiddenException

When the transition is not allowed.

この記事を改善するための提案がある場合は、 お知らせください!