Task #367
closedGroovy script agenda add list of services
100%
Description
Into scripts agenda add new information about which services can be used in scripts (new relation table).
Add new interface for services (get beans for interface).
Add newly added service into script executor.
FE: add new multi select with services.
Related issues
Updated by Ondřej Kopr about 7 years ago
Script use now DTO.
Add READ permission to IdmScriptController
BE: create script authority entity, dto, controller, service, repository
FE: create service and manager
Updated by Ondřej Kopr about 7 years ago
FE: create new table with modal window for add and edit script authority,
BE: create endpoint for get list all available services.
Updated by Ondřej Kopr about 7 years ago
- % Done changed from 40 to 60
Add two new columns into SystemAttributeMapping entity. Found issue with entity -> dto (SystemAttributeMapping -> IdmScript).
This issues will be solved with manual mapping on BE, after refctor systemAttributeMapping to DTO will be thsi manual refactoring deleted.
TODO: Implement RoleAttributeMapping and tests
Updated by Ondřej Kopr about 7 years ago
After test execute scripts, was changed default evaluation and add new evaluation. (Now we call script inside another script, each with different permission).
Implement new evaluator (DefaultTransformToResourceEvaluator, DefaultTransformFromResourceEvaluator) and abstract class (AbstractScriptEvaluator).
Create new endpoint (/search/quick/example) in IdmScriptController - this endpoint fill script dto with example for categories.
Script evaluating was tested on table and ldap
TODO: after finish with create example, will be implemented same logic to RoleAttributeMaping.
Updated by Ondřej Kopr about 7 years ago
- % Done changed from 60 to 90
After speech code review with VS was removed new endpoint and example/template for script is now filled with service (getDto - check if trimmed or not )
Implement doc: https://proj.bcvsolutions.eu/ngidm/doku.php?id=navrh:scripts
Updated by Ondřej Kopr about 7 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Ondřej Kopr to Vít Švanda
Create big integration test only for script and script evaluator: https://github.com/bcvsolutions/CzechIdMng/blob/develop/Realization/backend/core/core-impl/src/test/java/eu/bcvsolutions/idm/core/script/ScriptEvaluatorTest.java
Vitek could you make review? Thank you.
Updated by Ondřej Kopr about 7 years ago
- Status changed from Needs feedback to In Progress
- Assignee changed from Vít Švanda to Ondřej Kopr
- % Done changed from 90 to 80
Po rozhovoru se ZB, bude malý reimplement FE.
Updated by Ondřej Kopr about 7 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Ondřej Kopr to Vít Švanda
- % Done changed from 80 to 90
After discussion with ZB, will be little reimplement FE.
Sorry for czech language (it's friday).
I was fixed missing localization, add split button and some information message about script authorities to script detail.
Updated by Marcel Poul almost 7 years ago
- Related to Task #412: setting permissions for (groovy) scripts added
Updated by Vít Švanda almost 7 years ago
- Status changed from Needs feedback to Resolved
- Assignee changed from Vít Švanda to Ondřej Kopr
- % Done changed from 90 to 100
Works and looks fine. Nice documentation .
In future would be nice to Script Category enum more module independent (it means delete this enum).
Updated by Vít Švanda almost 7 years ago
- Status changed from Resolved to Closed