Project

General

Profile

Actions

Task #367

closed

Groovy script agenda add list of services

Added by Ondřej Kopr about 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Ondřej Kopr
Category:
Scripts
Target version:
Start date:
04/11/2017
Due date:
% Done:

100%

Estimated time:
Owner:

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

Related to IdStory Identity Manager - Task #412: setting permissions for (groovy) scriptsClosedOndřej Kopr05/10/2017

Actions
Actions #1

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

Actions #2

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.

Actions #3

Updated by Ondřej Kopr about 7 years ago

  • % Done changed from 0 to 40
Actions #4

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

Actions #5

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.

Actions #6

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

Actions #7

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
Actions #8

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.

Actions #9

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.

Actions #10

Updated by Marcel Poul almost 7 years ago

  • Related to Task #412: setting permissions for (groovy) scripts added
Actions #11

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).

Actions #12

Updated by Vít Švanda almost 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF