File

src/app/services/portfolio/portfolio.service.ts

Description

A portfolio service.

Index

Properties
Methods
Accessors

Constructor

constructor(toolbarService: ToolbarService, persistenceService: PersistenceService, countCacheService: CountCacheService, engine: EngineService, model: ModelModel)

Constructs the Portfolio service. ~constructor

Parameters :
Name Type Optional Description
toolbarService ToolbarService No

The toolbar service injected dependency.

persistenceService PersistenceService No

The persistence service injected dependency.

countCacheService CountCacheService No

The count cache service injected dependency.

engine EngineService No

The engine service injected dependency.

model ModelModel No

The model injected dependency.

Methods

Public checkToggleCollapsed
checkToggleCollapsed(propertyName: string)

Checkes if the section toggle state is collapsed. ~delegate

Parameters :
Name Type Optional Description
propertyName string No

The name of the property to process.

Returns : boolean

Whether the section toggle state is collapsed.

Public cvDefined
cvDefined()

Whether CV is defined.

Returns : boolean

Whether the CV is defined.

Public entitiesDefined
entitiesDefined()

Whether entities are defined.

Returns : boolean

Whether the entities are defined.

Public generalTimelineDefined
generalTimelineDefined()

Whether the general timeline is defined.

Returns : boolean

Whether the general timeline is defined.

Public getDecryptedProjectPeriod
getDecryptedProjectPeriod(project: Project)

Project period decrypted delegate ~delegate

Parameters :
Name Type Optional Description
project Project No

The project index

Returns : string
Public getFrequenciesCache
getFrequenciesCache(frequenciesCacheKey: string)

Gets the calculated frequencies object for an entity.

Parameters :
Name Type Optional
frequenciesCacheKey string No
Returns : any[]

The calculated frequencies object for an entity.

Public getFrequency
getFrequency(frequenciesCacheKey: string, propertyName: string)

Get frequency. Match frequency for the template to the precalculated cache. ~delegate

Parameters :
Name Type Optional Description
frequenciesCacheKey string No

The frequencies cache key.

propertyName string No

The name of the property to process.

Returns : any

The frequency object.

Public getProjectIsOnePersonTeam
getProjectIsOnePersonTeam(project: Project)

One person team project indicator. ~delegate

Parameters :
Name Type Optional Description
project Project No

The project index

Returns : boolean
Public getProjectStartsNewPeriod
getProjectStartsNewPeriod(project: Project)

Project starts new period indicator.

Parameters :
Name Type Optional Description
project Project No

The project index

Returns : boolean
Public isEmpty
isEmpty(obj: Record)

Whether an object is empty.

Parameters :
Name Type Optional Description
obj Record<string | > No

The object to check.

Returns : boolean

Whether an object is empty.

Public jsonDefined
jsonDefined(json: any)

Whether a specific json is defined.

Parameters :
Name Type Optional Description
json any No

The json to check.

Returns : boolean

Whether the json is defined.

Public projectsDefined
projectsDefined()

Whether projects are defined.

Returns : boolean

Whether the projects are defined.

Public subscribe
subscribe(kind: "ST" | "RM", handler: (event: T) => void)
Type parameters :
  • T

Subscribe dispatcher. ~delegate

Parameters :
Name Type Optional
kind "ST" | "RM" No
handler function No
Returns : Subscription | undefined
Public uiDefined
uiDefined()

Whether UI is defined.

Returns : boolean

Whether the UI is defined.

Properties

Public Optional currentProjectPeriod
Type : Project

Current project period.

Public Readonly engine
Type : EngineService
The engine service injected dependency.
Public Readonly model
Type : ModelModel
The model injected dependency.
Public Readonly persistenceService
Type : PersistenceService
The persistence service injected dependency.
Public Readonly toolbarService
Type : ToolbarService
The toolbar service injected dependency.

Accessors

decryptedPeriod
getdecryptedPeriod()

Project period decrypted getter.

results matching ""

    No results matching ""