In currently, we can find exactly an IRole by using ""

But, how can we get a list of IRoles that having same prefix name, or using a keyword to get all IRoles into a list?

Thank you very much.

asked 22.01.2014 at 08:34

nghianguyen's gravatar image

accept rate: 0%

edited 22.01.2014 at 12:07

admin's gravatar image

admin ♦♦

I think you can get all roles and handle them by Java code


answered 22.01.2014 at 09:00

anphunl's gravatar image

accept rate: 50%

I think it would be great if Ivy could handle this case. Anyway, thanks for your answer

(22.01.2014 at 09:30) nghianguyen nghianguyen's gravatar image

@nghianguyen: This is a Q&A-Platform where users assist other users and also the ivyTeam mixes in - not an official support-system. Use soreconnect if you have (urgent) cases.

(12.02.2014 at 18:31) Nikel Weis Nikel%20Weis's gravatar image

I think we never find such e completed class in java.

But its easy to handle in a short methode like this.

public List<IRole> roleWithPrefix(String prefix){
    List<IRole> rolesToReturn = new ArrayList<IRole>();
    List<IRole> roles =;

    for(IRole role : roles){
    return rolesToReturn;

I think with a singeltonpattern you can add this method very efficient on your application


answered 22.01.2014 at 10:19

Raphael%20B%C3%BCrgin's gravatar image

Raphael Bürgin
accept rate: 55%

Thank you, Raphael. I see that Ivy has not provide any APIs for searching IRoles, your comment is best way for now.

(24.01.2014 at 10:07) 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: 22.01.2014 at 08:34

Seen: 2,030 times

Last updated: 12.02.2014 at 18:31