---
title: "Interface IFinalLifeCycleManager"
slug: "sdk--stylelabs.m.sdk.contracts.content.ifinallifecyclemanager"
abstract: ""
---
# 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

```csharp
public interface IFinalLifeCycleManager
```

## Methods

### ApproveAsync(long)

Approves an Asset. State will become [Approved](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.content.finallifecyclestatus.html).

#### Declaration

```csharp
Task ApproveAsync(long id)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| long | id | Id of the asset. |

#### Returns

| Type | Description |
| --- | --- |
| Task | An awaitable . |

#### Exceptions

| Type | Condition |
| --- | --- |
| [ForbiddenException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.forbiddenexception.html) | When the id is not from an Asset entity. |
| [ForbiddenException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.forbiddenexception.html) | When the transition is not allowed. |

### ArchiveAsync(long)

Archives an Asset. State will become [Archived](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.content.finallifecyclestatus.html).

#### Declaration

```csharp
Task ArchiveAsync(long id)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| long | id | Id of the asset. |

#### Returns

| Type | Description |
| --- | --- |
| Task | An awaitable . |

#### Exceptions

| Type | Condition |
| --- | --- |
| [ForbiddenException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.forbiddenexception.html) | When the id is not from an Asset entity. |
| [ForbiddenException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.forbiddenexception.html) | When the transition is not allowed. |

### DirectPublishAsync(long)

Directly publishes an Asset. State will become [Approved](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.content.finallifecyclestatus.html).

#### Declaration

```csharp
Task DirectPublishAsync(long id)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| long | id | Id of the asset. |

#### Returns

| Type | Description |
| --- | --- |
| Task | An awaitable . |

#### Exceptions

| Type | Condition |
| --- | --- |
| [ForbiddenException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.forbiddenexception.html) | When the id is not from an Asset entity. |
| [ForbiddenException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.forbiddenexception.html) | When the transition is not allowed. |

### GetFinalLifeCycleStatusIdAsync(FinalLifeCycleStatus)

Gets the id of a final life cycle status entity.

#### Declaration

```csharp
Task<long?> GetFinalLifeCycleStatusIdAsync(FinalLifeCycleStatus status)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [FinalLifeCycleStatus](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.content.finallifecyclestatus.html) | 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

```csharp
Task<long?> GetFinalLifeCycleStatusIdAsync(string status)
```

#### 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](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.content.finallifecyclestatus.html).

#### Declaration

```csharp
Task RejectAsync(long id, string reason = null)
```

#### 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](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.forbiddenexception.html) | When the id is not from an Asset entity. |
| [ForbiddenException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.forbiddenexception.html) | When the transition is not allowed. |

### RestoreAsync(long)

Restores an Asset. State will become [Approved](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.content.finallifecyclestatus.html).

#### Declaration

```csharp
Task RestoreAsync(long id)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| long | id | Id of the asset. |

#### Returns

| Type | Description |
| --- | --- |
| Task | An awaitable . |

#### Exceptions

| Type | Condition |
| --- | --- |
| [ForbiddenException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.forbiddenexception.html) | When the id is not from an Asset entity. |
| [ForbiddenException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.forbiddenexception.html) | When the transition is not allowed. |

### SubmitAsync(long)

Submits an Asset. State will become [UnderReview](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.content.finallifecyclestatus.html).

#### Declaration

```csharp
Task SubmitAsync(long id)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| long | id | Id of the asset. |

#### Returns

| Type | Description |
| --- | --- |
| Task | An awaitable . |

#### Exceptions

| Type | Condition |
| --- | --- |
| [ForbiddenException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.forbiddenexception.html) | When the id is not from an Asset entity. |
| [ForbiddenException](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.exceptions.forbiddenexception.html) | When the transition is not allowed. |
