Class FinalLifeCycleManagerBase
Contains operations on the final life cycle status of an Asset.
Inheritance
Implements
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsClients
Assembly: Stylelabs.M.Sdk.dll
Syntax
Constructors
FinalLifeCycleManagerBase(IMClient)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IMClient | client |
Methods
ApproveAsync(long)
Approves an Asset. State will become Approved.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| long | id |
Id of the asset. |
Returns
| Type | Description |
|---|---|
| Task |
An awaitable . |
Exceptions
| Type | Condition |
|---|---|
| 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
Parameters
| Type | Name | Description |
|---|---|---|
| long | id |
Id of the asset. |
Returns
| Type | Description |
|---|---|
| Task |
An awaitable . |
Exceptions
| Type | Condition |
|---|---|
| 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
Parameters
| Type | Name | Description |
|---|---|---|
| long | id |
Id of the asset. |
Returns
| Type | Description |
|---|---|
| Task |
An awaitable . |
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<>long |
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 |
|---|---|---|
| string | status |
The status. |
Returns
| Type | Description |
|---|---|
| Task<>long |
The id or null when it was not found. |
RejectAsync(long, string)
Rejects an Asset. State will become Rejected.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| long | id |
Id of the asset. |
| string | reason |
The rejection reason. |
Returns
| Type | Description |
|---|---|
| Task |
An awaitable . |
Exceptions
| Type | Condition |
|---|---|
| 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
Parameters
| Type | Name | Description |
|---|---|---|
| long | id |
Id of the asset. |
Returns
| Type | Description |
|---|---|
| Task |
An awaitable . |
Exceptions
| Type | Condition |
|---|---|
| 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
Parameters
| Type | Name | Description |
|---|---|---|
| long | id |
Id of the asset. |
Returns
| Type | Description |
|---|---|
| Task |
An awaitable . |
Exceptions
| Type | Condition |
|---|---|
| ForbiddenException |
When the id is not from an Asset entity. |
| ForbiddenException |
When the transition is not allowed. |