AppCollectionFactory
@agros/create-app / AppCollectionFactory
Class: AppCollectionFactory
Hierarchy
AbstractCollection
↳
AppCollectionFactory
Implements
AbstractCollection
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new AppCollectionFactory()
Inherited from
AbstractCollection.constructor
Defined in
agros-common/lib/collection.d.ts:20
Properties
entities
• Protected
entities: EntityDescriptor
[]
Implementation of
AbstractCollection.entities
Inherited from
AbstractCollection.entities
Defined in
agros-common/lib/collection.d.ts:19
licenseList
• Private
licenseList: { name
: string
; value
: string
= key }[]
Defined in
create-agros-app/src/app.factory.ts:26
licenseUtils
• Private
licenseUtils: LicenseUtils
Defined in
create-agros-app/src/app.factory.ts:25
projectConfig
• Protected
Readonly
projectConfig: ProjectConfigParser
Implementation of
AbstractCollection.projectConfig
Inherited from
AbstractCollection.projectConfig
Defined in
agros-common/lib/collection.d.ts:18
Methods
generate
▸ generate(__namedParameters
): Promise
<CollectionGenerateResult
>
Parameters
Name | Type |
---|---|
__namedParameters | AppCollectionOptions |
Returns
Promise
<CollectionGenerateResult
>
Implementation of
AbstractCollection.generate
Overrides
AbstractCollection.generate
Defined in
create-agros-app/src/app.factory.ts:28
getEntityDescriptor
▸ Protected
getEntityDescriptor(pathname
): EntityDescriptor
Parameters
Name | Type |
---|---|
pathname | string |
Returns
EntityDescriptor
Implementation of
AbstractCollection.getEntityDescriptor
Inherited from
AbstractCollection.getEntityDescriptor
Defined in
agros-common/lib/collection.d.ts:27
modulesPath
▸ Protected
modulesPath(pathname?
): string
Parameters
Name | Type |
---|---|
pathname? | string |
Returns
string
Implementation of
AbstractCollection.modulesPath
Inherited from
AbstractCollection.modulesPath
Defined in
agros-common/lib/collection.d.ts:24
projectPath
▸ Protected
projectPath(pathname?
): string
Parameters
Name | Type |
---|---|
pathname? | string |
Returns
string
Implementation of
AbstractCollection.projectPath
Inherited from
AbstractCollection.projectPath
Defined in
agros-common/lib/collection.d.ts:22
srcPath
▸ Protected
srcPath(pathname?
): string
Parameters
Name | Type |
---|---|
pathname? | string |
Returns
string
Implementation of
AbstractCollection.srcPath
Inherited from
AbstractCollection.srcPath
Defined in
agros-common/lib/collection.d.ts:23
updateEntities
▸ Protected
updateEntities(): void
Returns
void
Implementation of
AbstractCollection.updateEntities
Inherited from
AbstractCollection.updateEntities
Defined in
agros-common/lib/collection.d.ts:21
writeFile
▸ Protected
writeFile(pathname
, content
, options?
): Promise
<void
>
Parameters
Name | Type |
---|---|
pathname | string |
content | string |
options? | CollectionWriteFileOptions |
Returns
Promise
<void
>
Implementation of
AbstractCollection.writeFile
Inherited from
AbstractCollection.writeFile
Defined in
agros-common/lib/collection.d.ts:25
writeTemplateFile
▸ Protected
writeTemplateFile(source
, target
, props?
, options?
): Promise
<void
>
Parameters
Name | Type |
---|---|
source | string |
target | string |
props? | Record <string , any > |
options? | CollectionWriteFileOptions |
Returns
Promise
<void
>
Implementation of
AbstractCollection.writeTemplateFile
Inherited from
AbstractCollection.writeTemplateFile
Defined in
agros-common/lib/collection.d.ts:26