C# 클래스 afung.MangaWeb3.Server.Collection

The Collection class
파일 보기 프로젝트 열기: a-fung/MangaWeb3 1 사용 예제들

공개 메소드들

메소드 설명
Accessible ( AjaxBase ajax ) : bool

Get whether the current request can access the collection

CheckNewCollectionName ( string name ) : bool

Check whether a name can be used for creating a new collection

CheckNewCollectionPath ( string path ) : string

Check whether a path can be used for creating a new collection

CreateNewCollection ( string name, string path, bool public_, bool autoadd ) : Collection

Create a new collection

DeleteCollections ( int ids ) : void

Delete collections and all associated data from database

GetAccessible ( AjaxBase ajax ) : afung.MangaWeb3.Server.Collection[]

Get a list of collections from database which is accessible by the current user

GetAllCollectionNames ( ) : string[]

Get the names of all the collections from database

GetAllCollections ( ) : afung.MangaWeb3.Server.Collection[]

Get all collections from database

GetAutoAdd ( ) : afung.MangaWeb3.Server.Collection[]

Get a list of collections from database which uses auto add

GetById ( int id ) : Collection

Get a collection from database by ID

GetByName ( string name ) : Collection

Get a collection from database by name

MarkFolderCacheDirty ( ) : void

Mark Folder Cache Dirty

ProcessFolderCache ( ) : void

Process folder cache and save it in database

Save ( ) : void

Save the collection to database

SetCollectionsPublic ( int ids, bool public_ ) : void

Set collections to be public/private

ToJson ( ) : CollectionJson

Get an object to be stringified and passed to client app

ToJsonArray ( Collection collections ) : afung.MangaWeb3.Common.CollectionJson[]

Get an array of CollectionJson to be passed to client app

비공개 메소드들

메소드 설명
Collection ( ) : System

Instantiate a new instance of Collection class

FromData ( object>.Dictionary data ) : Collection

Create a new instance of Collection using data from database

메소드 상세

Accessible() 공개 메소드

Get whether the current request can access the collection
public Accessible ( AjaxBase ajax ) : bool
ajax AjaxBase The AjaxBase object which received the request
리턴 bool

CheckNewCollectionName() 공개 정적인 메소드

Check whether a name can be used for creating a new collection
public static CheckNewCollectionName ( string name ) : bool
name string The name
리턴 bool

CheckNewCollectionPath() 공개 정적인 메소드

Check whether a path can be used for creating a new collection
public static CheckNewCollectionPath ( string path ) : string
path string
리턴 string

CreateNewCollection() 공개 정적인 메소드

Create a new collection
public static CreateNewCollection ( string name, string path, bool public_, bool autoadd ) : Collection
name string The collection name
path string The collection path
public_ bool Whether the collection is public
autoadd bool Whether the collection uses auto add
리턴 Collection

DeleteCollections() 공개 정적인 메소드

Delete collections and all associated data from database
public static DeleteCollections ( int ids ) : void
ids int A list of collection IDs
리턴 void

GetAccessible() 공개 정적인 메소드

Get a list of collections from database which is accessible by the current user
public static GetAccessible ( AjaxBase ajax ) : afung.MangaWeb3.Server.Collection[]
ajax AjaxBase The AjaxBase object which received the request
리턴 afung.MangaWeb3.Server.Collection[]

GetAllCollectionNames() 공개 정적인 메소드

Get the names of all the collections from database
public static GetAllCollectionNames ( ) : string[]
리턴 string[]

GetAllCollections() 공개 정적인 메소드

Get all collections from database
public static GetAllCollections ( ) : afung.MangaWeb3.Server.Collection[]
리턴 afung.MangaWeb3.Server.Collection[]

GetAutoAdd() 공개 정적인 메소드

Get a list of collections from database which uses auto add
public static GetAutoAdd ( ) : afung.MangaWeb3.Server.Collection[]
리턴 afung.MangaWeb3.Server.Collection[]

GetById() 공개 정적인 메소드

Get a collection from database by ID
public static GetById ( int id ) : Collection
id int
리턴 Collection

GetByName() 공개 정적인 메소드

Get a collection from database by name
public static GetByName ( string name ) : Collection
name string The name
리턴 Collection

MarkFolderCacheDirty() 공개 메소드

Mark Folder Cache Dirty
public MarkFolderCacheDirty ( ) : void
리턴 void

ProcessFolderCache() 공개 메소드

Process folder cache and save it in database
public ProcessFolderCache ( ) : void
리턴 void

Save() 공개 메소드

Save the collection to database
public Save ( ) : void
리턴 void

SetCollectionsPublic() 공개 정적인 메소드

Set collections to be public/private
public static SetCollectionsPublic ( int ids, bool public_ ) : void
ids int A list of collection IDs
public_ bool Whether is public or private
리턴 void

ToJson() 공개 메소드

Get an object to be stringified and passed to client app
public ToJson ( ) : CollectionJson
리턴 afung.MangaWeb3.Common.CollectionJson

ToJsonArray() 공개 정적인 메소드

Get an array of CollectionJson to be passed to client app
public static ToJsonArray ( Collection collections ) : afung.MangaWeb3.Common.CollectionJson[]
collections Collection An array of collections
리턴 afung.MangaWeb3.Common.CollectionJson[]