Table of Contents
The Gentics .Node PortalConnector WebService API can be used to read data from the Gentics .Node ContentRepository using WebServices. This section describes the accessible service methods and the properties of used objects.
The URL to get the
*.wsdl
is
http://[hostname]:[port]/Portal.Node/ws/services/datasource?wsdl
. Where
hostname
is the server hostname,
port
the server port. To access a specific datasource, add the datasourceid to construct an URL like
http://[hostname]:[port]/Portal.Node/ws/services/datasource/[datasourceid]
.
Get all objects from the datasource that match the given rule. Returns an array of SimpleWSObjects.
Table 8.1. Parameters for method getObjects()
Name | Type | Description |
---|---|---|
rule | String | Filter rule to filter returned objects |
attributeNames | Array of Strings | Array of attribute names of the prefetched attributes |
start | Integer | Index of the first returned object (starting with 0) |
count | Integer | Maximum number of returned objects (-1 for all objects) |
sortColumns | Array of Sorting | Optional sorting, may be null or empty for no sorting |
Get the number of objects that match the given rule. Returns an Integer.
Get all objects from the datasource with given ids. Returns an array of SimpleWSObjects.
Table 8.3. Parameters for method getObjectsByID()
Name | Type | Description |
---|---|---|
ids | Array of Strings | Ids of the objects to fetch |
attributeNames | Array of Strings | Array of attribute names of the prefetched attributes |
start | Integer | Index of the first returned object (starting with 0) |
count | Integer | Maximum number of returned objects (-1 for all objects) |
sortColumns | Array of Sorting | Optional sorting, may be null or empty for no sorting |
Get a single object with the given id. Returns a SimpleWSObject.
The SimpleWSObject represents a single object.
Table 8.6. Properties of SimpleWSObject
Name | Type | Description |
---|---|---|
id | String | Id of the object |
attributes | Array of SimpleWSAttribute | Array of all attributes that are prefetched for this object. Additional attributes can be fetched using “getAttribute(objectId,attributeName)” (Section 1.2.5) . |
The SimpleWSAttribute represents an attribute of a SimpleWSObject.
Table 8.7. Properties of SimpleWSAttribute
Name | Type | Description |
---|---|---|
name | String | Name of the attribute |
type | String |
Datatype of the attribute. Is one of (
stringValue
,
integerValue
,
longValue
,
doubleValue
,
dateValue
,
objectValue
,
binaryValue
,
multiStringValue
,
multiIntegerValue
,
multiLongValue
,
multiDoubleValue
,
multiDateValue
,
multiObjectValue
,
multiBinaryValue
). Access the property with this name to get the attribute
value.
|
(Value of property
type
)
| (Various) | Value of the attribute. |