Manual Reference Source Test
public class | source

Statable

A mixin for classes that have statuses. Currently the following types are statable: Content, Flow, Sections

Member Summary

Public Members
public

Method Summary

Public Methods
public

getStatus(owner: Object): Promise<any>

Gets and updates the status of an object if it's a json api type.

public

Initializer for the mixin class

Public Members

public status: String source

Public Methods

public getStatus(owner: Object): Promise<any> source

Gets and updates the status of an object if it's a json api type.

Params:

NameTypeAttributeDescription
owner Object

This is an object to which get the status of.

owner.type String

This is the type of object

Return:

Promise<any>

Returns the status from StatusService given the owner type and sets the owner.status to its value.

public initializer() source

Initializer for the mixin class