C# Class CmisSync.Lib.Cmis.ConvenienceExtenders.CmisConvenienceExtenders

Cmis convenience extenders.
Afficher le fichier Open project: OpenDataSpace/CmisSync

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
GetHexVal ( char hex ) : int
StringToByteArray ( string hex ) : byte[]

Hex string to byte array.

Method Details

AppendContent() public static méthode

public static AppendContent ( this doc, string content, bool lastChunk = true ) : IDocument
doc this
content string
lastChunk bool
Résultat IDocument

AreAllChildrenIgnored() public static méthode

Indicates if all children are ignored.
public static AreAllChildrenIgnored ( this obj ) : bool
obj this Remote cmis object.
Résultat bool

AreChangeEventsSupported() public static méthode

Detect whether the repository has the ChangeLog capability.
public static AreChangeEventsSupported ( this session ) : bool
session this The Cmis Session
Résultat bool

ArePrivateWorkingCopySupported() public static méthode

Detect whether the repository supports checkout/cancelCheckout/checkin
public static ArePrivateWorkingCopySupported ( this session ) : bool
session this The Cmis Session
Résultat bool

AsSessionParameter() public static méthode

public static AsSessionParameter ( this repoInfo, string appName = null ) : string>.Dictionary
repoInfo this
appName string
Résultat string>.Dictionary

ContentStreamHash() public static méthode

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.
Résultat byte[]

CreateDocument() public static méthode

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.
Résultat IDocument

CreateFolder() public static méthode

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.
Résultat IFolder

CreateSession() public static méthode

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
Résultat ISession

CreateSession() public static méthode

public static CreateSession ( this factory, RepoInfo repoInfo, string appName = null ) : ISession
factory this
repoInfo CmisSync.Lib.Config.RepoInfo
appName string
Résultat ISession

IgnoreAllChildren() public static méthode

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.
Résultat void

IgnoredDevices() public static méthode

Lists all Ignored devices.
public static IgnoredDevices ( this obj ) : IList
obj this Cmis object.
Résultat IList

IsContentStreamHashSupported() public static méthode

Returns the hash of the content stream on the server.
public static IsContentStreamHashSupported ( this session ) : bool
session this
Résultat bool

IsGetDescendantsSupported() public static méthode

Determines if getDescendants calls are supported the specified session.
public static IsGetDescendantsSupported ( this session ) : bool
session this Cmis session.
Résultat bool

IsMultiFilingSupported() public static méthode

Determines if multi filing is supported with the specified session.
public static IsMultiFilingSupported ( this session ) : bool
session this Cmis session.
Résultat bool

IsServerAbleToUpdateModificationDate() public static méthode

Determines if is server able to update modification date.
public static IsServerAbleToUpdateModificationDate ( this session ) : bool
session this Cmis session.
Résultat bool

IsUnFilingSupported() public static méthode

Determines if unfiling is supported with the specified session.
public static IsUnFilingSupported ( this session ) : bool
session this Cmis session.
Résultat bool

RemoveAllSyncIgnores() public static méthode

Removes all sync ignores flags from the given cmis object
public static RemoveAllSyncIgnores ( this obj ) : void
obj this Remote CMIS Object.
Résultat void

RemoveSyncIgnore() public static méthode

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.
Résultat void

SecondaryObjectTypeIds() public static méthode

Secondary object type identifiers.
public static SecondaryObjectTypeIds ( this obj ) : IList
obj this Cmis object.
Résultat IList

SetContent() public static méthode

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.
Résultat IObjectId

ToLogString() public static méthode

public static ToLogString ( this obj ) : string
obj this
Résultat string

UpdateLastWriteTimeUtc() public static méthode

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.
Résultat IObjectId