C# Класс CmisSync.Lib.Cmis.ConvenienceExtenders.CmisConvenienceExtenders

Cmis convenience extenders.
Показать файл Открыть проект

Открытые методы

Метод Описание
AppendContent ( this doc, string content, bool lastChunk = true ) : IDocument
AreAllChildrenIgnored ( this obj ) : bool

Indicates if all children are ignored.

AreChangeEventsSupported ( this session ) : bool

Detect whether the repository has the ChangeLog capability.

ArePrivateWorkingCopySupported ( this session ) : bool

Detect whether the repository supports checkout/cancelCheckout/checkin

AsSessionParameter ( this repoInfo, string appName = null ) : string>.Dictionary
ContentStreamHash ( this doc, string type = "SHA-1" ) : byte[]

Returns the hash of the content stream on the server.

CreateDocument ( this folder, string name, string content, bool checkedOut = false ) : IDocument

Creates a document.

CreateFolder ( this folder, string name ) : IFolder

Creates a sub folder with the given name.

CreateSession ( this factory, RepoInfo repoInfo, IObjectFactory objectFactory = null, IAuthenticationProvider authenticationProvider = null, ICache cache = null, string appName = null ) : ISession
CreateSession ( this factory, RepoInfo repoInfo, string appName = null ) : ISession
IgnoreAllChildren ( this folder, string deviceId = "*" ) : void

Sets a flag to ignores all children of this folder.

IgnoredDevices ( this obj ) : IList

Lists all Ignored devices.

IsContentStreamHashSupported ( this session ) : bool

Returns the hash of the content stream on the server.

IsGetDescendantsSupported ( this session ) : bool

Determines if getDescendants calls are supported the specified session.

IsMultiFilingSupported ( this session ) : bool

Determines if multi filing is supported with the specified session.

IsServerAbleToUpdateModificationDate ( this session ) : bool

Determines if is server able to update modification date.

IsUnFilingSupported ( this session ) : bool

Determines if unfiling is supported with the specified session.

RemoveAllSyncIgnores ( this obj ) : void

Removes all sync ignores flags from the given cmis object

RemoveSyncIgnore ( this obj ) : void

Removes the sync ignore flags of the given device Ids from the given cmis object.

SecondaryObjectTypeIds ( this obj ) : IList

Secondary object type identifiers.

SetContent ( this doc, string content, bool overwrite = true, bool refresh = true ) : IObjectId

Sets the content stream of the document.

ToLogString ( this obj ) : string
UpdateLastWriteTimeUtc ( this obj, System.DateTime modificationDate ) : IObjectId

Updates the last write time in UTC via UpdateProperties

Приватные методы

Метод Описание
GetHexVal ( char hex ) : int
StringToByteArray ( string hex ) : byte[]

Hex string to byte array.

Описание методов

AppendContent() публичный статический Метод

public static AppendContent ( this doc, string content, bool lastChunk = true ) : IDocument
doc this
content string
lastChunk bool
Результат IDocument

AreAllChildrenIgnored() публичный статический Метод

Indicates if all children are ignored.
public static AreAllChildrenIgnored ( this obj ) : bool
obj this Remote cmis object.
Результат bool

AreChangeEventsSupported() публичный статический Метод

Detect whether the repository has the ChangeLog capability.
public static AreChangeEventsSupported ( this session ) : bool
session this The Cmis Session
Результат bool

ArePrivateWorkingCopySupported() публичный статический Метод

Detect whether the repository supports checkout/cancelCheckout/checkin
public static ArePrivateWorkingCopySupported ( this session ) : bool
session this The Cmis Session
Результат bool

AsSessionParameter() публичный статический Метод

public static AsSessionParameter ( this repoInfo, string appName = null ) : string>.Dictionary
repoInfo this
appName string
Результат string>.Dictionary

ContentStreamHash() публичный статический Метод

Returns the hash of the content stream on the server.
public static ContentStreamHash ( this doc, string type = "SHA-1" ) : byte[]
doc this Document with the content stream.
type string Type of the requested hash.
Результат byte[]

CreateDocument() публичный статический Метод

Creates a document.
public static CreateDocument ( this folder, string name, string content, bool checkedOut = false ) : IDocument
folder this Parent folder.
name string Name of the document.
content string If content is not null, a content stream containing the given content will be added.
checkedOut bool If true, the new document will be created in checked out state.
Результат IDocument

CreateFolder() публичный статический Метод

Creates a sub folder with the given name.
public static CreateFolder ( this folder, string name ) : IFolder
folder this parent folder.
name string Name of the new sub folder.
Результат IFolder

CreateSession() публичный статический Метод

public static CreateSession ( this factory, RepoInfo repoInfo, IObjectFactory objectFactory = null, IAuthenticationProvider authenticationProvider = null, ICache cache = null, string appName = null ) : ISession
factory this
repoInfo CmisSync.Lib.Config.RepoInfo
objectFactory IObjectFactory
authenticationProvider IAuthenticationProvider
cache ICache
appName string
Результат ISession

CreateSession() публичный статический Метод

public static CreateSession ( this factory, RepoInfo repoInfo, string appName = null ) : ISession
factory this
repoInfo CmisSync.Lib.Config.RepoInfo
appName string
Результат ISession

IgnoreAllChildren() публичный статический Метод

Sets a flag to ignores all children of this folder.
public static IgnoreAllChildren ( this folder, string deviceId = "*" ) : void
folder this Folder which children should be ignored.
deviceId string Device Ids which should be ignored.
Результат void

IgnoredDevices() публичный статический Метод

Lists all Ignored devices.
public static IgnoredDevices ( this obj ) : IList
obj this Cmis object.
Результат IList

IsContentStreamHashSupported() публичный статический Метод

Returns the hash of the content stream on the server.
public static IsContentStreamHashSupported ( this session ) : bool
session this
Результат bool

IsGetDescendantsSupported() публичный статический Метод

Determines if getDescendants calls are supported the specified session.
public static IsGetDescendantsSupported ( this session ) : bool
session this Cmis session.
Результат bool

IsMultiFilingSupported() публичный статический Метод

Determines if multi filing is supported with the specified session.
public static IsMultiFilingSupported ( this session ) : bool
session this Cmis session.
Результат bool

IsServerAbleToUpdateModificationDate() публичный статический Метод

Determines if is server able to update modification date.
public static IsServerAbleToUpdateModificationDate ( this session ) : bool
session this Cmis session.
Результат bool

IsUnFilingSupported() публичный статический Метод

Determines if unfiling is supported with the specified session.
public static IsUnFilingSupported ( this session ) : bool
session this Cmis session.
Результат bool

RemoveAllSyncIgnores() публичный статический Метод

Removes all sync ignores flags from the given cmis object
public static RemoveAllSyncIgnores ( this obj ) : void
obj this Remote CMIS Object.
Результат void

RemoveSyncIgnore() публичный статический Метод

Removes the sync ignore flags of the given device Ids from the given cmis object.
public static RemoveSyncIgnore ( this obj ) : void
obj this Remote CMIS Object.
Результат void

SecondaryObjectTypeIds() публичный статический Метод

Secondary object type identifiers.
public static SecondaryObjectTypeIds ( this obj ) : IList
obj this Cmis object.
Результат IList

SetContent() публичный статический Метод

Sets the content stream of the document.
public static SetContent ( this doc, string content, bool overwrite = true, bool refresh = true ) : IObjectId
doc this Remote document.
content string New content as string.
overwrite bool If set to true overwrites existing content.
refresh bool If set to true refreshs the original remote doc instance.
Результат IObjectId

ToLogString() публичный статический Метод

public static ToLogString ( this obj ) : string
obj this
Результат string

UpdateLastWriteTimeUtc() публичный статический Метод

Updates the last write time in UTC via UpdateProperties
public static UpdateLastWriteTimeUtc ( this obj, System.DateTime modificationDate ) : IObjectId
obj this Fileable cmis object.
modificationDate System.DateTime Modification date.
Результат IObjectId