C# 클래스 CmisSync.Lib.Cmis.ConvenienceExtenders.CmisConvenienceExtenders

Cmis convenience extenders.
파일 보기 프로젝트 열기: OpenDataSpace/CmisSync

공개 메소드들

메소드 설명
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