You have been redirected from an outdated version of the article.
Below is the content available on this topic. To view the old article click here.
AbstractNode
AbstractNode is the default base type of all custom types (meaning that everything inherits from it).
It provides the following basic properties that all nodes and relationships in Structr share:
Name |
Type |
Description |
id |
String |
The UUID of this object |
type |
String |
The type of this object |
name |
String |
The name of this object (optional) |
createdDate |
Date |
The creation timestamp of this object |
createdBy |
String |
The UUID of the user that created this object. (This will be 00000000000000000000000000000000 for objects created by the SuperUser) |
lastModifiedDate |
Date |
The last modified timestamp of this object |
lastModifiedBy |
String |
The UUID of the last user that has modified this object. (This will be 00000000000000000000000000000000 for objects created by the SuperUser) |
visibleToPublicUsers |
Boolean |
Whether this object is visible to public users |
visibleToAuthenticatedUsers |
Boolean |
Whether this object is visible to authenticated users |
structrChangeLog |
String |
The Changelog of this entity. Must be enabled in the configuration, see Changelog. |
Search results for "AbstractNode"
Inherited Attributes
AbstractNode
and AbstractRelationship
define the minimal set of properties necessary for the operation of Structr. Because those two classes will always be at the top of the inheritance chain, the base properties are available in all classes. The most important of these properties is the id
property, which contains a 32-character hexadecimal character string.
Base Classes
Each node type in the Structr data model can have a base class to inherit existing functionality. If no base class has been explicitly defined, the base class defaults to AbstractNode
for node types, and AbstractRelationship
for edge types. These two internal classes provide the basic functionality for nodes and edges in Structr.
XMPP
Structr provides a scriptable XMPP Client Implementation based on the XMPPClient entity.
XMPPClient is a base type that provides a Scriptable XMPP Client Implementation.
XMPPClient extends AbstractNode and provides the following additional properties.
Name | Type | Description |
xmppUsername | String | The username of this XMPPClient |
xmppPassword | String | The password for this XMPPClient |
xmppService | String | The service name to connect to |
xmppHost | String | The host name to connect to |
xmppPort | Integer | The port to connect to |
isEnabled | Boolean | A boolean value that indicates whether this XMPPClient is enabled (should connect to a server and receive messages) |
isConnected | Boolean | A boolean value that indicates whether this XMPPClient is connected to a server |
Example:
let xmppClient = $.this;
xmppClient.doJoinChat('chatRoom@conference.server.org', 'nickname', 'password');
Cypher
admin@Structr> MATCH (n:AbstractNode) RETURN n
Query returned 3264 objects in 62 ms.
Too many results (> 10), please use LIMIT to reduce the result count of your Cypher query.
admin@Structr>