diff --git a/docs/extending/rules.md b/docs/extending/rules.md index 8c13a75049..fd629c949e 100644 --- a/docs/extending/rules.md +++ b/docs/extending/rules.md @@ -195,51 +195,11 @@ You can now declare a toolbar button action that is based on the rule above. The button will be visible only when the linked rule evaluates to `true`. -## Application Evaluators - -| Ver. | Key | Description | -| ----- | ----------------------------------- | ------------------------------------------------------------------------ | -| 1.7.0 | app.selection.canDelete | User has permission to delete selected node(s). | -| 1.7.0 | app.selection.canDownload | User can download selected node(s). | -| 1.7.0 | app.selection.notEmpty | At least one node is selected. | -| 1.7.0 | app.selection.canAddFavorite | User can add selected node(s) to favorites. | -| 1.7.0 | app.selection.canRemoveFavorite | User can remove selected node(s) from favorites. | -| 1.7.0 | app.selection.first.canUpdate | User has permission to update selected node(s). | -| 1.7.0 | app.selection.file | A single File node is selected. | -| 1.7.0 | app.selection.file.isLocked | File is locked for editing. | -| 1.7.0 | app.selection.file.canUploadVersion | User can update file version. | -| 1.7.0 | app.selection.library | A single Library node is selected. | -| 1.7.0 | app.selection.hasLibraryRole | The selected Library node has a role property. | -| 1.7.0 | app.selection.folder | A single Folder node is selected. | -| 1.7.0 | app.selection.folder.canUpdate | User has permissions to update the selected folder. | -| 1.8.0 | canToggleJoinLibrary | Checks if user can perform "Join" or "Cancel Join Request" on a library. | -| 1.8.0 | canToggleSharedLink | Checks if user can toggle shared link mode. | -| 1.9.0 | app.canShowLogout | Whether logout action should be present or not. | -| 1.12.0 | app.isLibraryManager | Checks if user is library manager. | - -## Navigation Evaluators - -The application exposes a set of navigation-related evaluators to help developers restrict or enable certain actions based on the route or page displayed. - -The negated evaluators are provided just to simplify development, and to avoid having complex rule trees just to negate the rules, -for example mixing `core.every` and `core.not`. -**Tip:** You can also negate any rule by utilizing a `!` prefix: -`!app.navigation.isTrashcan` is the opposite of the `app.navigation.isTrashcan`. - -| Version | Key | Description | -| ------- | --------------------------------- | ---------------------------------------------------------------- | -| 1.7.0 | app.navigation.folder.canCreate | User can create content in the currently opened folder. | -| 1.7.0 | app.navigation.isTrashcan | User is using the **Trashcan** page. | -| 1.7.0 | app.navigation.isLibraries | User is using a **Libraries** or **Library Search Result** page. | -| 1.7.0 | app.navigation.isSharedFiles | User is using the **Shared Files** page. | -| 1.7.0 | app.navigation.isFavorites | User is using the **Favorites** page. | -| 1.7.0 | app.navigation.isRecentFiles | User is using the **Recent Files** page. | -| 1.7.0 | app.navigation.isSearchResults | User is using the **Search Results** page. | -| 1.7.0 | app.navigation.isPreview | Current page is **Preview**. | - -**Tip:** See the [Registration](./registration) section for more details -on how to register your own entries to be re-used at runtime. +**Tips:** +1. You can also negate any rule by utilizing a `!` prefix: `!app.navigation.isTrashcan` is the opposite of the `app.navigation.isTrashcan`. +2. See the [Registration](./registration) section for more details on how to register your own entries to be re-used at runtime. +3. See [Rules List](./rules-list.md) for a full list of rules available with the Alfresco Content Application ### Example