Interface IFinalLifeCycleManager
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
Contains operations on the final life cycle status of an Asset.
Namespace: Stylelabs.M.Sdk.Contracts.Content
Assembly: Stylelabs.M.Sdk.dll
Syntax
Methods
ApproveAsync(Int64)
Approves an Asset. State will become Approved.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id |
Id of the asset. |
Returns
| Type | Description |
|---|---|
| Task |
Exceptions
| Type | Condition |
|---|---|
| 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
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id |
Id of the asset. |
Returns
| Type | Description |
|---|---|
| Task |
Exceptions
| Type | Condition |
|---|---|
| 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
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id |
Id of the asset. |
Returns
| Type | Description |
|---|---|
| Task |
Exceptions
| Type | Condition |
|---|---|
| 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
Parameters
| Type | Name | Description |
|---|---|---|
| FinalLifeCycleStatus | status |
The status. |
Returns
| Type | Description |
|---|---|
| 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
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | status |
The status. |
Returns
| Type | Description |
|---|---|
| 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
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id |
Id of the asset. |
| System.String | reason |
Returns
| Type | Description |
|---|---|
| Task |
Exceptions
| Type | Condition |
|---|---|
| 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
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id |
Id of the asset. |
Returns
| Type | Description |
|---|---|
| Task |
Exceptions
| Type | Condition |
|---|---|
| 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
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | id |
Id of the asset. |
Returns
| Type | Description |
|---|---|
| Task |
Exceptions
| Type | Condition |
|---|---|
| ForbiddenException |
When the id is not from an Asset entity. |
| ForbiddenException |
When the transition is not allowed. |