• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Dapplo.Confluence
    • AttachmentDomain
    • ConfluenceClient
    • ConfluenceClientConfig
    • ConfluenceException
    • ContentExtensions
    • GroupDomain
    • IAttachmentDomain
    • IConfluenceClient
    • IConfluenceClientPlugins
    • IConfluenceDomain
    • IContentDomain
    • IGroupDomain
    • IMiscDomain
    • ISpaceDomain
    • IUserDomain
    • MiscExtensions
    • SpaceExtensions
    • UserDomain
    • UserIdentifierExtensions
  • Dapplo.Confluence.Entities
    • BaseEntity<TId>
    • Body
    • BodyContent
    • Children
    • Content
    • CopyContent
    • CopyDestinations
    • CopyPageRequestDestination
    • Description
    • Error
    • Group
    • History
    • IUserIdentifier
    • Label
    • LastUpdated
    • Links
    • LongRunningTask
    • Metadata
    • PagingInformation
    • Picture
    • Plain
    • Positions
    • Result<TResult>
    • SearchDetails
    • Space
    • SpaceContents
    • SystemInfoEntity
    • User
    • UserWatch
    • Version
  • Dapplo.Confluence.Query
    • ContentTypes
    • Fields
    • IContentClause
    • IDatetimeClause
    • IDatetimeClauseWithoutValue
    • IFinalClause
    • ISimpleValueClause
    • ISpaceClause
    • ITextClause
    • ITitleClause
    • ITypeClause
    • IUserClause
    • Operators
    • Where

Class ConfluenceClient

A Confluence client build by using Dapplo.HttpExtensions

Inheritance
System.Object
ConfluenceClient
Implements
IConfluenceClientPlugins
IAttachmentDomain
IUserDomain
ISpaceDomain
IContentDomain
IMiscDomain
IGroupDomain
IConfluenceDomain
IConfluenceClient
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dapplo.Confluence
Assembly: Dapplo.Confluence.dll
Syntax
public class ConfluenceClient : IConfluenceClientPlugins, IAttachmentDomain, IUserDomain, ISpaceDomain, IContentDomain, IMiscDomain, IGroupDomain, IConfluenceDomain, IConfluenceClient

Constructors

| Improve this Doc View Source

ConfluenceClient()

Declaration
protected ConfluenceClient()
| Improve this Doc View Source

ConfluenceClient(Uri, IHttpSettings)

Create the ConfluenceApi object, here the HttpClient is configured

Declaration
protected ConfluenceClient(Uri confluenceUri, IHttpSettings httpSettings = null)
Parameters
Type Name Description
Uri confluenceUri

Base URL, e.g. https://yourConfluenceserver

IHttpSettings httpSettings

IHttpSettings or null for default

Properties

| Improve this Doc View Source

Attachment

The attachment domain

Declaration
public IAttachmentDomain Attachment { get; }
Property Value
Type Description
IAttachmentDomain
| Improve this Doc View Source

Behaviour

Store the specific HttpBehaviour, which contains a IHttpSettings and also some additional logic for making a HttpClient which works with Confluence

Declaration
public IHttpBehaviour Behaviour { get; protected set; }
Property Value
Type Description
IHttpBehaviour
| Improve this Doc View Source

ConfluenceApiUri

The base URI for your Confluence server api calls

Declaration
public Uri ConfluenceApiUri { get; }
Property Value
Type Description
Uri
| Improve this Doc View Source

ConfluenceUri

The base URI for your Confluence server downloads

Declaration
public Uri ConfluenceUri { get; }
Property Value
Type Description
Uri
| Improve this Doc View Source

Content

The content domain

Declaration
public IContentDomain Content { get; }
Property Value
Type Description
IContentDomain
| Improve this Doc View Source

Group

The group domain

Declaration
public IGroupDomain Group { get; }
Property Value
Type Description
IGroupDomain
| Improve this Doc View Source

HttpBehaviour

The IHttpBehaviour for this Confluence instance

Declaration
public IHttpBehaviour HttpBehaviour { get; }
Property Value
Type Description
IHttpBehaviour
| Improve this Doc View Source

Misc

The misc domain

Declaration
public IMiscDomain Misc { get; }
Property Value
Type Description
IMiscDomain
| Improve this Doc View Source

Plugins

Plugins dock to this property by implementing an extension method to IConfluenceClientPlugins

Declaration
public IConfluenceClientPlugins Plugins { get; }
Property Value
Type Description
IConfluenceClientPlugins
| Improve this Doc View Source

Space

The space domain

Declaration
public ISpaceDomain Space { get; }
Property Value
Type Description
ISpaceDomain
| Improve this Doc View Source

User

The user domain

Declaration
public IUserDomain User { get; }
Property Value
Type Description
IUserDomain

Methods

| Improve this Doc View Source

ConfigureBehaviour(IChangeableHttpBehaviour, IHttpSettings)

Helper method to configure the IChangeableHttpBehaviour

Declaration
protected IHttpBehaviour ConfigureBehaviour(IChangeableHttpBehaviour behaviour, IHttpSettings httpSettings = null)
Parameters
Type Name Description
IChangeableHttpBehaviour behaviour

IChangeableHttpBehaviour

IHttpSettings httpSettings

IHttpSettings

Returns
Type Description
IHttpBehaviour

the behaviour, but configured as IHttpBehaviour

| Improve this Doc View Source

Create(Uri, IHttpSettings)

Factory method to create a ConfluenceClient

Declaration
public static IConfluenceClient Create(Uri confluenceUri, IHttpSettings httpSettings = null)
Parameters
Type Name Description
Uri confluenceUri

Uri to your confluence server

IHttpSettings httpSettings

IHttpSettings used if you need specific settings

Returns
Type Description
IConfluenceClient

IConfluenceClient

| Improve this Doc View Source

CreateDownloadUri(Links)

Retrieve the Download as Uri from the supplied links object

Declaration
public Uri CreateDownloadUri(Links links)
Parameters
Type Name Description
Links links

Links

Returns
Type Description
Uri

Uri

| Improve this Doc View Source

CreateJsonNetJsonSerializer()

Factory for CreateJsonNetJsonSerializer

Declaration
public static JsonNetJsonSerializer CreateJsonNetJsonSerializer()
Returns
Type Description
JsonNetJsonSerializer

JsonNetJsonSerializer

| Improve this Doc View Source

CreateTinyUiUri(Links)

Retrieve the TinyUi as Uri from the supplied links object

Declaration
public Uri CreateTinyUiUri(Links links)
Parameters
Type Name Description
Links links

Links

Returns
Type Description
Uri

Uri

| Improve this Doc View Source

CreateWebUiUri(Links)

Retrieve the WebUi as Uri from the supplied links object

Declaration
public Uri CreateWebUiUri(Links links)
Parameters
Type Name Description
Links links

Links

Returns
Type Description
Uri

Uri

| Improve this Doc View Source

IsCloudServer(CancellationToken)

Checks if the client is connected to a cloud server

Declaration
public Task<bool> IsCloudServer(CancellationToken cancellationToken = null)
Parameters
Type Name Description
CancellationToken cancellationToken
Returns
Type Description
Task<System.Boolean>

bool

| Improve this Doc View Source

PromoteContext()

This makes sure that the HttpBehavior is promoted for the following Http call.

Declaration
public void PromoteContext()
| Improve this Doc View Source

SetBasicAuthentication(String, String)

Set Basic Authentication for the current client

Declaration
public void SetBasicAuthentication(string user, string password)
Parameters
Type Name Description
System.String user

username

System.String password

password

| Improve this Doc View Source

SetBearerAuthentication(String)

Set Bearer Authentication for the current client

Declaration
public void SetBearerAuthentication(string bearer)
Parameters
Type Name Description
System.String bearer

bearer

Implements

IConfluenceClientPlugins
IAttachmentDomain
IUserDomain
ISpaceDomain
IContentDomain
IMiscDomain
IGroupDomain
IConfluenceDomain
IConfluenceClient

Extension Methods

AttachmentDomain.AttachAsync<TContent>(IAttachmentDomain, String, TContent, String, String, String, CancellationToken)
AttachmentDomain.AttachAsync<TContent>(IAttachmentDomain, Int64, TContent, String, String, String, CancellationToken)
AttachmentDomain.DeleteAsync(IAttachmentDomain, Content, CancellationToken)
AttachmentDomain.DeleteAsync(IAttachmentDomain, Int64, Boolean, CancellationToken)
AttachmentDomain.GetAttachmentsAsync(IAttachmentDomain, String, CancellationToken)
AttachmentDomain.GetAttachmentsAsync(IAttachmentDomain, Int64, CancellationToken)
AttachmentDomain.GetContentAsync<TResponse>(IAttachmentDomain, Content, CancellationToken)
AttachmentDomain.UpdateAsync(IAttachmentDomain, Content, CancellationToken)
AttachmentDomain.UpdateDataAsync<TContent>(IAttachmentDomain, Int64, Int64, TContent, String, String, String, CancellationToken)
ContentExtensions.CreateAsync(IContentDomain, ContentTypes, String, String, String, Nullable<Int64>, CancellationToken)
ContentExtensions.CreateAsync(IContentDomain, ContentTypes, String, String, Body, Nullable<Int64>, CancellationToken)
ContentExtensions.CreateAsync(IContentDomain, Content, CancellationToken)
ContentExtensions.DeleteAsync(IContentDomain, Int64, Boolean, CancellationToken)
ContentExtensions.GetAsync(IContentDomain, Int64, IEnumerable<String>, CancellationToken)
ContentExtensions.GetByTitleAsync(IContentDomain, String, String, PagingInformation, CancellationToken)
ContentExtensions.GetChildrenAsync(IContentDomain, Int64, PagingInformation, Nullable<Int32>, CancellationToken)
ContentExtensions.GetHistoryAsync(IContentDomain, Int64, CancellationToken)
ContentExtensions.SearchAsync(IContentDomain, IFinalClause, String, PagingInformation, IEnumerable<String>, CancellationToken)
ContentExtensions.SearchAsync(IContentDomain, SearchDetails, CancellationToken)
ContentExtensions.MoveAsync(IContentDomain, Int64, Positions, Int64, CancellationToken)
ContentExtensions.CopyAsync(IContentDomain, Int64, CopyContent, IEnumerable<String>, CancellationToken)
ContentExtensions.UpdateAsync(IContentDomain, Content, CancellationToken)
ContentExtensions.GetLabelsAsync(IContentDomain, Int64, CancellationToken)
ContentExtensions.AddLabelsAsync(IContentDomain, Int64, IEnumerable<Label>, CancellationToken)
ContentExtensions.DeleteLabelAsync(IContentDomain, Int64, String, CancellationToken)
GroupDomain.GetGroupsAsync(IGroupDomain, PagingInformation, CancellationToken)
GroupDomain.GetGroupMembersAsync(IGroupDomain, String, PagingInformation, CancellationToken)
MiscExtensions.GetPictureAsync<TResponse>(IMiscDomain, Picture, CancellationToken)
MiscExtensions.GetSystemInfoAsync(IMiscDomain, CancellationToken)
SpaceExtensions.CreateAsync(ISpaceDomain, String, String, String, CancellationToken)
SpaceExtensions.CreatePrivateAsync(ISpaceDomain, String, String, String, CancellationToken)
SpaceExtensions.DeleteAsync(ISpaceDomain, String, CancellationToken)
SpaceExtensions.GetAllAsync(ISpaceDomain, CancellationToken)
SpaceExtensions.GetAllWithParametersAsync(ISpaceDomain, IEnumerable<String>, String, String, String, Nullable<Boolean>, PagingInformation, CancellationToken)
SpaceExtensions.GetAsync(ISpaceDomain, String, CancellationToken)
SpaceExtensions.GetContentsAsync(ISpaceDomain, String, CancellationToken)
SpaceExtensions.UpdateAsync(ISpaceDomain, Space, CancellationToken)
UserDomain.GetAnonymousUserAsync(IUserDomain, CancellationToken)
UserDomain.GetCurrentUserAsync(IUserDomain, CancellationToken)
UserDomain.GetUserAsync(IUserDomain, String, CancellationToken)
UserDomain.GetUserAsync(IUserDomain, IUserIdentifier, CancellationToken)
UserDomain.GetGroupMembershipsAsync(IUserDomain, IUserIdentifier, PagingInformation, CancellationToken)
UserDomain.AddContentWatcher(IUserDomain, Int64, IUserIdentifier, CancellationToken)
UserDomain.RemoveContentWatcher(IUserDomain, Int64, IUserIdentifier, CancellationToken)
UserDomain.IsContentWatcher(IUserDomain, Int64, IUserIdentifier, CancellationToken)
UserDomain.AddLabelWatcher(IUserDomain, String, IUserIdentifier, CancellationToken)
UserDomain.RemoveLabelWatcher(IUserDomain, String, IUserIdentifier, CancellationToken)
UserDomain.IsLabelWatcher(IUserDomain, String, IUserIdentifier, CancellationToken)
UserDomain.AddSpaceWatcher(IUserDomain, String, IUserIdentifier, CancellationToken)
UserDomain.RemoveSpaceWatcher(IUserDomain, String, IUserIdentifier, CancellationToken)
UserDomain.IsSpaceWatcher(IUserDomain, String, IUserIdentifier, CancellationToken)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2017 Dapplo