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

accept rate: 0%

edited 20.01.2014 at 09:54

Reto%20Weiss's gravatar image

Reto Weiss ♦♦

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

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

IRole role = ivy.session.getSecurityContext().getTopLevelRole().createChildRole("roleName", "displayName", "description", null, true);

answered 20.01.2014 at 09:49

Reto%20Weiss's gravatar image

Reto Weiss ♦♦
accept rate: 74%

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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



Asked: 20.01.2014 at 07:47

Seen: 3,057 times

Last updated: 20.01.2014 at 09:58