All changes to the JobRouter Dashboard API are listed here.
Changes in version 5.2
The ApiUser object
You can use the new getFullName and getDateFormatId methods to obtain the user's fullname and date format ID.
Changes in version 4.3
New method
The isMandatory method was added to mark widgets as mandatory or optional widgets. This allows users to automatically display mandatory widgets on their dashboard. The permissions of the user are taken into account.
Changes in version 4.2
Revision of the getCategory method
The getCategory method can be overridden to assign the widget to a JobRouter category. A rights check no longer takes place.
Please note: Self-implemented widgets, which were in the categories administration or processowner, now need their own rights check and have to be adapted! This adjustment can be done in the isAuthorized method.
New methods
The methods hasUserAdminRights and hasUserOwnProcesses have been added to allow better permission checking.
The method getWidgetFileUrl has been added to allow access to content, such as images, via the browser, even when the dashboard directory is outsourced.
The ApiUser object
You can use the getUser and getUserByUsername methods to obtain an ApiUser object that you can use to retrieve user properties.
Deprecated methods
With the introduction of the ApiUser object, the following methods are obsolete and should no longer be used:
•getCurrentUsername
•getCurrentJobFunctions
•isCurrentUserInJobFunction
•hasUserAdminRights
•hasUserOwnProcesses
These methods are removed with JobRouter 4.3.
Changes in version 4.0
In version 4.0.3 the JobRouter Dashboard API has been released.