Thanks a lot :) On Thu, Dec 3, 2015 at 4:49 PM, Isura Karunaratne <is...@wso2.com> wrote:
> You can find an implementation from [1] > > > [1] > https://github.com/IsuraD/carbon-identity/blob/master/components/entitlement/org.wso2.carbon.identity.entitlement/src/main/java/org/wso2/carbon/identity/entitlement/pap/CarbonEntitlementDataFinder.java > > On Thu, Dec 3, 2015 at 4:35 PM, Kasun Dananjaya Delgolla <kas...@wso2.com> > wrote: > >> Hi Isura, >> >> We found multiple implementations for this class. Which one should we >> use? >> >> Thanks >> >> On Thu, Dec 3, 2015 at 3:16 PM, Kasun Dananjaya Delgolla <kas...@wso2.com >> > wrote: >> >>> Hi Isura, >>> >>> Thanks a lot. We will try with that. >>> >>> Thanks >>> >>> On Thu, Dec 3, 2015 at 2:25 PM, Isura Karunaratne <is...@wso2.com> >>> wrote: >>> >>>> Hi Kasun, >>>> >>>> You can use following method in AbstractUserStoreManager to get the >>>> filtered role names. >>>> >>>> public final String[] getRoleNames(String filter, int maxItemLimit, >>>> boolean noInternalRoles, >>>> boolean noSystemRole, boolean >>>> noSharedRoles){ >>>> >>>> } >>>> >>>> >>>> Thanks >>>> >>>> Isura >>>> >>>> >>>> On Thu, Dec 3, 2015 at 2:09 PM, Kasun Dananjaya Delgolla < >>>> kas...@wso2.com> wrote: >>>> >>>>> Hi All, >>>>> >>>>> We have user creation module in our EMM front end jaggery app. There, >>>>> we have a field which lists available user stores + another field which >>>>> lists roles. When a particular user store is selected, we want the roles >>>>> of >>>>> that user store listed on the role selector. >>>>> >>>>> The problem is, we don't have an API in the UserStoreManager to get >>>>> the roles of a particular user store. Current API we use is, >>>>> "getRoleNames()" which returns all the roles regardless of user stores. >>>>> This results in failing the user creation when selected the wrong user >>>>> store. >>>>> >>>>> Also, when editing the user, we have the same issue when using the >>>>> "getRoleListOfUser(username)" API. Is there any workaround or a fix done >>>>> for this? >>>>> >>>>> Thanks >>>>> -- >>>>> Kasun Dananjaya Delgolla >>>>> >>>>> Software Engineer >>>>> WSO2 Inc.; http://wso2.com >>>>> lean.enterprise.middleware >>>>> Tel: +94 11 214 5345 >>>>> Fax: +94 11 2145300 >>>>> Mob: + 94 771 771 015 >>>>> Blog: http://kddcodingparadise.blogspot.com >>>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya >>>>> <http://lk.linkedin.com/in/kasundananjaya>* >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> Dev@wso2.org >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> Isura Dilhara Karunaratne >>>> Senior Software Engineer >>>> >>>> Mob +94 772 254 810 >>>> >>>> >>> >>> >>> -- >>> Kasun Dananjaya Delgolla >>> >>> Software Engineer >>> WSO2 Inc.; http://wso2.com >>> lean.enterprise.middleware >>> Tel: +94 11 214 5345 >>> Fax: +94 11 2145300 >>> Mob: + 94 771 771 015 >>> Blog: http://kddcodingparadise.blogspot.com >>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya >>> <http://lk.linkedin.com/in/kasundananjaya>* >>> >> >> >> >> -- >> Kasun Dananjaya Delgolla >> >> Software Engineer >> WSO2 Inc.; http://wso2.com >> lean.enterprise.middleware >> Tel: +94 11 214 5345 >> Fax: +94 11 2145300 >> Mob: + 94 771 771 015 >> Blog: http://kddcodingparadise.blogspot.com >> Linkedin: *http://lk.linkedin.com/in/kasundananjaya >> <http://lk.linkedin.com/in/kasundananjaya>* >> > > > > -- > Isura Dilhara Karunaratne > Senior Software Engineer > > Mob +94 772 254 810 > > -- Kasun Dananjaya Delgolla Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware Tel: +94 11 214 5345 Fax: +94 11 2145300 Mob: + 94 771 771 015 Blog: http://kddcodingparadise.blogspot.com Linkedin: *http://lk.linkedin.com/in/kasundananjaya <http://lk.linkedin.com/in/kasundananjaya>*
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev