Search Results for

    Show / Hide Table of Contents

    Interface ICmsClient

    Interface of cms client

    Namespace: Noxum.Nova.Cms.Client
    Assembly: Noxum.Nova.Cms.Client.dll
    Syntax
    public interface ICmsClient

    Methods

    CreateBranchAsync(CreateBranchRequest, string, CancellationToken)

    Create a branch

    Declaration
    Task<CmsObject> CreateBranchAsync(CreateBranchRequest request, string username = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    CreateBranchRequest request

    The model describing the branch to create

    string username

    The username this transaction is committed for. This must be set for internal access, otherwise, the transaction will be committed as the user who is currently logged in.

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<CmsObject>

    OK

    Exceptions
    Type Condition
    CmsApiException

    A server side error occurred.

    CreateObjectsAsync(string, CreateObjectsRequest, string, CancellationToken)

    Create objects

    Declaration
    Task<CreateObjectsResponse> CreateObjectsAsync(string branch, CreateObjectsRequest request, string username = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string branch

    The branch ID, Guid or ApiIdentifier

    CreateObjectsRequest request

    The list of objects to be created

    string username

    The username this transaction is committed for. This must be set for internal access, otherwise, the transaction will be committed as the user who is currently logged in.

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<CreateObjectsResponse>

    Object(s) Created

    Exceptions
    Type Condition
    CmsApiException

    A server side error occurred.

    DeleteBranchAsync(string, DeleteBranchRequest, string, CancellationToken)

    Deletes a branch by ID

    Declaration
    Task<DeleteBranchResponse> DeleteBranchAsync(string id, DeleteBranchRequest request, string username = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string id

    The branch ID, Guid or ApiIdentifier

    DeleteBranchRequest request

    The delete request

    string username

    The username this transaction is committed for. This must be set for internal access, otherwise, the transaction will be committed as the user who is currently logged in.

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<DeleteBranchResponse>

    OK

    Exceptions
    Type Condition
    CmsApiException

    A server side error occurred.

    DeleteObjectsAsync(string, DeleteObjectsRequest, string, CancellationToken)

    Delete objects by ID

    Declaration
    Task<DeleteObjectsResponse> DeleteObjectsAsync(string branch, DeleteObjectsRequest request, string username = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string branch

    The branch ID, Guid or ApiIdentifier

    DeleteObjectsRequest request

    The delete request

    string username

    The username this transaction is committed for. This must be set for internal access, otherwise, the transaction will be committed as the user who is currently logged in.

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<DeleteObjectsResponse>

    OK

    Exceptions
    Type Condition
    CmsApiException

    A server side error occurred.

    GetBranchAsync(string, string, string, string, CancellationToken)

    Get a single branch by ID

    Declaration
    Task<CmsObject> GetBranchAsync(string id, string attributes = null, string variants = null, string languages = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string id

    The branch ID, Guid or ApiIdentifier

    string attributes

    A comma separated list of object IDs, Guids or ApiIdentifiers to filter down values by attributes

    string variants

    A comma separated list of object IDs, Guids or ApiIdentifiers to filter down values by variants

    string languages

    A comma separated list of object IDs, Guids or ApiIdentifiers to filter down values by languages

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<CmsObject>

    OK

    Exceptions
    Type Condition
    CmsApiException

    A server side error occurred.

    GetObjectAsync(string, string, bool?, string, string, string, CancellationToken)

    Get a single object by ID

    Declaration
    Task<CmsObject> GetObjectAsync(string branch, string id, bool? inherited = null, string attributes = null, string variants = null, string languages = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string branch

    The branch ID, Guid or ApiIdentifier

    string id

    The object ID, Guid or ApiIdentifier

    bool? inherited

    Include inherited values

    string attributes

    A comma separated list of object IDs, Guids or ApiIdentifiers to filter down values by attributes

    string variants

    A comma separated list of object IDs, Guids or ApiIdentifiers to filter down values by variants

    string languages

    A comma separated list of object IDs, Guids or ApiIdentifiers to filter down values by languages

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<CmsObject>

    OK

    Exceptions
    Type Condition
    CmsApiException

    A server side error occurred.

    GetObjectAsync<T>(string, string, bool?, string, string, string, CancellationToken)

    Get a single scoped object

    Declaration
    Task<T> GetObjectAsync<T>(string branch, string id, bool? inherited = null, string attributes = null, string variants = null, string languages = null, CancellationToken cancellationToken = default) where T : CmsObject, new()
    Parameters
    Type Name Description
    string branch

    The branch ID, Guid or ApiIdentifier

    string id

    The object ID, Guid or ApiIdentifier

    bool? inherited

    Get inherited values also

    string attributes

    A comma separated list of attribute IDs, Guids or ApiIdentifiers to filter down values

    string variants

    A comma separated list of variant IDs, Guids or ApiIdentifiers to filter down values

    string languages

    A comma separated list of language IDs, Guids or ApiIdentifiers to filter down values

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<T>

    OK

    Type Parameters
    Name Description
    T
    Exceptions
    Type Condition
    CmsApiException

    A server side error occurred.

    GetObjectsAsync(string, string, bool?, string, string, string, CancellationToken)

    Get multiple objects by ID

    Declaration
    Task<CmsObjectList> GetObjectsAsync(string branch, string ids, bool? inherited = null, string attributes = null, string variants = null, string languages = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string branch

    The branch ID, Guid or ApiIdentifier

    string ids

    A comma separated list of object IDs, Guids or ApiIdentifiers

    bool? inherited

    Include inherited values

    string attributes

    A comma separated list of object IDs, Guids or ApiIdentifiers to filter down values by attributes

    string variants

    A comma separated list of object IDs, Guids or ApiIdentifiers to filter down values by variants

    string languages

    A comma separated list of object IDs, Guids or ApiIdentifiers to filter down values by languages

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<CmsObjectList>

    OK

    Exceptions
    Type Condition
    CmsApiException

    A server side error occurred.

    GetTypedObjectsAsync(string, string, bool?, bool?, string, int?, string, string, string, CancellationToken)

    Get objects of a type

    Declaration
    Task<CmsObjectList> GetTypedObjectsAsync(string branch, string type, bool? deleted = null, bool? inherited = null, string @continue = null, int? take = null, string attributes = null, string variants = null, string languages = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string branch

    The branch ID, Guid or ApiIdentifier

    string type

    The object type ID, Guid or ApiIdentifier

    bool? deleted

    Value of the deleted flag (default: return deleted and undeleted objects)

    bool? inherited

    Include inherited values

    string continue

    The token for the next objects

    int? take

    The number of objects to take

    string attributes

    A comma separated list of object IDs, Guids or ApiIdentifiers to filter down values by attributes

    string variants

    A comma separated list of object IDs, Guids or ApiIdentifiers to filter down values by variants

    string languages

    A comma separated list of object IDs, Guids or ApiIdentifiers to filter down values by languages

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<CmsObjectList>

    OK

    Exceptions
    Type Condition
    CmsApiException

    A server side error occurred.

    UpdateBranchAsync(string, UpdateBranchRequest, string, CancellationToken)

    Update a branch

    Declaration
    Task<UpdateBranchResponse> UpdateBranchAsync(string id, UpdateBranchRequest request, string username = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string id

    The branch ID, Guid or ApiIdentifier

    UpdateBranchRequest request

    The object to update. Either an ID or a Guid must be provided for the object.

    string username

    The username this transaction is committed for. This must be set for internal access, otherwise, the transaction will be committed as the user who is currently logged in.

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<UpdateBranchResponse>

    OK

    Exceptions
    Type Condition
    CmsApiException

    A server side error occurred.

    UpdateObjectsAsync(string, UpdateObjectsRequest, string, CancellationToken)

    Update objects

    Declaration
    Task<UpdateObjectsResponse> UpdateObjectsAsync(string branch, UpdateObjectsRequest list, string username = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string branch

    The branch ID, Guid or ApiIdentifier

    UpdateObjectsRequest list

    The list of objects to update. Either an ID or a Guid must be provided for each object.

    string username

    The username this transaction is committed for. This must be set for internal access, otherwise, the transaction will be committed as the user who is currently logged in.

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<UpdateObjectsResponse>

    OK

    Exceptions
    Type Condition
    CmsApiException

    A server side error occurred.

    In this article
    Back to top Version 6.1.0.31rc