Home Manual Reference Source Repository
import OwnableResource from '@mapcreator/api/src/traits/OwnableResource.js'
public class | source

OwnableResource

Extends:

Trait → OwnableResource

Provides a ResourceBase with functions for dealing with being ownable by an organisation

Member Summary

Public Members
public get

Get the list of associated organisations

public get

If the resource can be owned by an organisation

Inherited Summary

From class Trait
public

Optional initialization method

Public Members

public get organisations: SimpleResourceProxy: * source

Get the list of associated organisations

Return:

SimpleResourceProxy

A proxy for accessing the resource

public get ownable: boolean: boolean source

If the resource can be owned by an organisation

Return:

boolean

Can be owned by an organisation