Parameters
The plugin mobileapp adds several configuration parameters:
- Query directory: queries://..., identifier of a query directory. Each query will be considered as a stream and will be concatenated and sorted. This will also be used for notifications.
Note: if instead of pointing to a directory, you point to a single query, only that query will be used.
We recommend creating a query directory and configuring the id of this directory, even if a single query is required.
- Number of items per query: maximum number of items to be retrieved per query
- Description size: length of the string to be returned in a content description during a notification (notification pushed to validation).
- Include project spaces: Commi indicated earlier, informs the application not to request information related to project spaces (returned in getTheme).
- Number of items : Maximum number of elements to be brought up in the project space activity flow.
- Include project spaces: enable or disable project space activity flows
Query directory
- Create a request directory from the cms named mobileapp and retrieve its id to enter it in the configuration.
- Give read rights to this query directory (to connected people if there are visibility constraints, or to everyone otherwise).
Query sorting
Each query is sorted, then all the results are aggregated and sorted again. Here's the algorithm:
If there's only one query in all, and it contains a sort, it will be used for the 1st sort, no second sort will be applied.
- If there are several queries, for each one we'll check whether the sorting is done on "creationDate", "lastValidation" or "lastModified".
- If yes, it will be used, with an ASC order
- Otherwise, if the sort is on a date or datetime, it will be used.
- If no sort is defined, use "lastValidation" ASC
- In the end, each query is sorted by date.
All results are then sorted according to the dates used for sorting (algo manager Date, LocalDate and ZonedDateTime).
Queries are executed in the Live workspace, so they don't need to have any status criteria (information not available in the Live workspace).