LoadConsumerRowsConfig
Configuration object for loading entity rows for a given consumer. The consumer has to exist in the current execution scope. The requested fields have to be loaded (=needed) in the consumer, otherwise the fields have no content.
Methods
addParameter
addParameter(
pName,pValue):LoadConsumerRowsConfig
Adds a parameter value when loading the entity
Parameters
string | number | booleanname of parameter
string | number | booleanvalue of parameter
Returns
LoadConsumerRowsConfigapplyRecordSorting
applyRecordSorting(
pRecordSortingMode):LoadConsumerRowsConfig
Sets a flag that specifies whether the record order should be applied when loading the entity data.
If not set, this property is per default entities.RECORD_SORTING_NONE.
Loading and applying the record order costs resources and time but is necessary sometimes. This property will not affect required sorting columns, for example when the database requires a guaranteed order like the UID-column.
Parameters
string | number | booleanwhen entities.RECORD_SORTING_FULL, the record order is calculated and applied when loading the rows. when entities.RECORD_SORTING_NONE, no record order is calculated and thus none is applied.
Returns
LoadConsumerRowsConfigconsumer
consumer(
pConsumer):LoadConsumerRowsConfig
Sets the name of the consumer, which points to the entity to use
Parameters
string | number | booleanname of consumer
Returns
LoadConsumerRowsConfigcount
count(
pCount):LoadConsumerRowsConfig
Sets the maximum number of rows to load.
Parameters
numbernumber of rows
Returns
LoadConsumerRowsConfigentity
entity(
pEntity):LoadConsumerRowsConfig
Sets the name of the entity to load
Parameters
string | number | booleanname of entity
Returns
LoadConsumerRowsConfigfields
fields(
pFields):LoadConsumerRowsConfig
Sets the name of the fields to load
Parameters
string[]the name of fields
Returns
LoadConsumerRowsConfigfieldValues
fieldValues(
pNewFieldValues):LoadConsumerRowsConfig
Sets the field values for this entity
Parameters
anythe new field values
Returns
LoadConsumerRowsConfigfilter
filter(
pFilter):LoadConsumerRowsConfig
Sets a filter when loading the entity. Can contain the filter in json format as a string or a filter builder using neonFilter.createFilterGroup()
Parameters
anythe filter, JSON - format as defined for entity-filters
Returns
LoadConsumerRowsConfigfromEntityRecordsRecipe
fromEntityRecordsRecipe(
pEntityRecordsRecipe):LoadConsumerRowsConfig
This method is reserved for future use.
Parameters
anyReturns
LoadConsumerRowsConfigThrows
May throw an exception.
ignorePermissions
ignorePermissions(
pIgnore):LoadConsumerRowsConfig
Ignores permissions, which are set for this entity
Parameters
booleantrue ignores permissions, default is false
Returns
LoadConsumerRowsConfiglocale
locale(
pLocale):LoadConsumerRowsConfig
Overwrites the locale to be used for execution. Only possible in a server process.
Parameters
string | number | booleanthe locale to be used for execution
Returns
LoadConsumerRowsConfigprovider
provider(
pProvider):LoadConsumerRowsConfig
Sets the name of the provider for loading the entity
Parameters
string | number | booleanname of provider
Returns
LoadConsumerRowsConfigskipPrevalidation
skipPrevalidation(
pSkip):LoadConsumerRowsConfig
Skips the pre-validation of changes in the entity
Parameters
booleantrue skips the pre-validation false
Returns
LoadConsumerRowsConfigstartrow
startrow(
pStartRow):LoadConsumerRowsConfig
Sets the starting row to load. Useful for paging
Parameters
numberthe number of the row to start, 0 ist first
Returns
LoadConsumerRowsConfigtimezone
timezone(
pTimezone):LoadConsumerRowsConfig
Overwrites the timezone to be used for execution. Only possible in a server process.
Parameters
string | number | booleanthe timezone to be used for execution
Returns
LoadConsumerRowsConfiguid
uid(
pUid):LoadConsumerRowsConfig
Set a single uid to load when loading the entity. Overrides uids().
Parameters
string | number | booleanvalue of uid
Returns
LoadConsumerRowsConfiguids
uids(
pUids):LoadConsumerRowsConfig
Sets multiple uids to load when loading the entity. Overrides uid().
Parameters
string[]values if uids
Returns
LoadConsumerRowsConfiguser
user(
pUser):LoadConsumerRowsConfig
Overwrites the user to be used for execution. Only possible in a server process.
To perform an entities-action in a serverProcess with a user given here the process itself has to be run under an user-context. So this will only overwrite which user is used but it is not possible to run a serverProcess without an user-context and then set the user with this method. That is due to technical restrictions how and when the Package entities.*** is created within JDito.
In short: Set at least a technical user to execute the serverProcess when using this property in a serverProcess.
Parameters
string | number | booleanthe title for the user to be used for execution
Returns
LoadConsumerRowsConfig