Is there any public APIs to make an IRole at runtime by programming?

Because in our project, we need a process to handle add/remove IRole automatically (no need to login to Ivy Server and create it by manually)

Thank you so much.

asked 20.01.2014 at 07:47

nghianguyen's gravatar image

nghianguyen
6336
accept rate: 0%

edited 20.01.2014 at 09:54

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
4.2k172450


No, there is no public API at the moment to do this.

However, there is a non public API to dynamically create new roles:

import ch.ivyteam.ivy.security.IRole;
IRole role = ivy.session.getSecurityContext().getTopLevelRole().createChildRole("roleName", "displayName", "description", null, true);
link

answered 20.01.2014 at 09:49

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
4.2k172450
accept rate: 73%

Thanks so much! It works like a charm.

(20.01.2014 at 09:58) nghianguyen nghianguyen's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×28
×11

Asked: 20.01.2014 at 07:47

Seen: 1,101 times

Last updated: 20.01.2014 at 09:58