Axon.ivy 7.0 - the Digital Business Platform - is out now...

Hi everyone, As i know that every role that are created by using Ivy Designer, its “isDynamic” property will be set to “False” as default. And we you the ivy script like this for example : ivy.wf.getSecurityContext().getTopLevelRole().createChildRole(“MyRole”, “DisplayNameOfMyRole”, “Description of MyRole”, true); We can set the “isDynamic” = true if we want .

Is there any API in Ivy that support us to get the “isDynamic” value ? just like in IRole API, you can use getDisplayName() to get the “DisplayNameTemplate” or getName() to get the “Name” of role

Thanks. alt text

asked 01.11 at 03:37

Khoi%20Phan's gravatar image

Khoi Phan
164
accept rate: 0%

edited 01.11 at 03:38


You can access it by using internal API. But it could change at any release without notice...

public class RoleUtil {

    public static Boolean isDynamic(IRole role)
    {
        if (role instanceof ch.ivyteam.ivy.security.internal.Role)
        {
            ch.ivyteam.ivy.security.internal.Role internalRole = (ch.ivyteam.ivy.security.internal.Role)role;
            internalRole.getData().getIsDynamic();
        }
        return null;
    }

}
link

answered 03.11 at 04:12

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
6.0k11035
accept rate: 69%

thanks for your suggestion

(12.11 at 21:04) Khoi Phan Khoi%20Phan'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:

×74

Asked: 01.11 at 03:37

Seen: 53 times

Last updated: 12.11 at 21:04