Scripting is used by Actors , in Concept permissions and in Visual elements . The main goal is to provide an advanced way to check permissions, roles, social groups and entity related attributes.
Methods related to currently authenticated user. The scripting context initializes the variable user
.
Function |
Description |
user.isAdmin(), user.isWorker(), user.isStudent(), user.isHhrr(), user.isResponsible(), user.isInNetworking(), user.isInternal(), user.isCompany(), user.isCenter() |
True or false indicating user different statuses. |
user.getBusiness() |
User preferred business. Accepts the same functions as |
user.getProfileMap().isInRole(role) |
True or false if user conform the syntaxis specified in Security . |
user.isActor(actor) |
True or false if user is actor. |
user.isActor(entity, actor) |
True or false if user is actor for the given entity. |
Function |
Description |
pfunc.isUser() |
True or false if there is an authenticated user. |
pfunc.anyOfSyndications(user, csvSyndications) |
True or false if |
pfunc.anyOfGroupings(user, csvGroupings) |
True or false if |
Per module attributes address those features unique to the entities in this module. Per module attributes sum to the generic attributes.
Dossier context initializes the variables dpl
and issue
, dossier
or category
. Notice that when applying constraints that uniquely refer to a project, the dossier must be of type project.
Function |
Description |
dossier.isDirectOwner(user), category.isDirectOwner(user) |
True or false value indicating whether the user is directly assigned as owner. |
dpl.isParticipant(user), dpl.isShowAllAttachments(user), dpl.isShowParticipants(user), dpl.isShowAllIssues(user), |
True or false indicating the dossier/category participation attribute with the same name. |
dpl.isOwner(user), dpl.isSubject(user) |
True or false indicating the dossier/category participation attribute with the same name. |
dpl.isResporter(user), dpl.isResponsible(user), dpl.isQA(user), dpl.isAssistant(user) |
True or false indicating the issue participation attribute with the same name. |
Function |
Description |
dfunc.anyParticipation(Object user) |
True or false if the given user participates in any dossier or category. |
dfunc.anyOfCategories(dossier, csvCategories) |
True or false if |
dfunc.anyOfPhases(dossier, csvIndexes) |
True or false if |
dfunc.anyOfPhaseTypes(dossier, csvTypes) |
True or false if |
dfunc.anyOfRoles(dpl, user, csvRoles) |
True or false if |
dfunc.anyOfExtRoles(dpl, user, csvRoles) |
True or false if |
dfunc.anyOfDiscriminators(dpl, user, csvDiscriminators) |
True or false if |
dfunc.anyOfRoles(user, csvRoles) |
True or false if |
dfunc.anyOfExtRoles(user, csvRoles) |
True or false if |
It is possible to use scripting files with the directive file:file_name
. Scripting files are located in /WEB-INF/elephant/scripts
.
Scripts generate no logs with errors. Starting the script with debug:
indicates the Scripting API to write any error in the log file.
English | 11/21/21 16:46 | Lluís Turró Cutiller | |
English | 12/01/21 13:46 | Lluís Turró Cutiller | |
English | 12/06/21 16:50 | Lluís Turró Cutiller | |
English | 05/12/22 00:37 | Lluís Turró Cutiller | |
English | 06/10/22 11:24 | Lluís Turró Cutiller | |
English | 06/14/22 14:59 | Lluís Turró Cutiller | |
English | 06/25/22 07:24 | Lluís Turró Cutiller | |
English | 07/05/22 07:23 | Lluís Turró Cutiller |