Class

PropertySchema

PropertySchema()

An object of class PropertySchema' consists of metadata, an info block and the property schema itself.

ps = { 'info' : 'meta' : 'schema' : }

Constructor

# new PropertySchema()

View Source infohub/PropertySchema.js, line 28

Classes

PropertySchema

Methods

# findGroup(grpid) → {Object|null}

Parameters:
Name Type Description
grpid *

View Source infohub/PropertySchema.js, line 77

Object | null

# findPropertyType(typeid) → {Object|null}

Parameters:
Name Type Description
typeid *

View Source infohub/PropertySchema.js, line 93

Object | null

# getAsJson() → {Object|null}

View Source infohub/PropertySchema.js, line 140

Object | null

# getPropertytypeListForQuery()

Get property types from key 'propertytypes' as list of { 'property_type' : '~eq~ ...typeid... ', 'value' : '~notnull'
} to pass it as a parameter to endpoint which creates a queryid.

View Source infohub/PropertySchema.js, line 154

# saveSchemaState()

Save current schema internally. The last saved schema can be restored by restoreSchemaState()

View Source infohub/PropertySchema.js, line 184

# setByJson(json_object) → {void}

Set schema by JSON object

Parameters:
Name Type Description
json_object Object

View Source infohub/PropertySchema.js, line 123

void

# updateSchemaByDependencies(cb, node) → {Object}

Update property members in schema taking dependencies into account.
The current state is saved and can be restored by restoreSchemaState().

Parameters:
Name Type Default Description
cb function null
node Object null

Optional node with properties. By default the values in property list are used.

View Source infohub/PropertySchema.js, line 203

updated schema as JSON

Object