@Override public List<Group> execute() throws IdentityStoreException { return identityStore.listGroups(metaClaim, filterPattern, offset, length); } }).pushEvent(IdentityStoreInterceptorConstants.POST_LIST_GROUPS_BY_META_CLAIM, (eventProperties) -> {
@Override public List<Group> execute() throws IdentityStoreException { return identityStore.listGroups(offset, length); } }).pushEvent(IdentityStoreInterceptorConstants.POST_LIST_GROUPS, (eventProperties) -> {
@Override public List<Group> execute() throws IdentityStoreException { return identityStore.listGroups(claim, offset, length, domainName); } }).pushEvent(IdentityStoreInterceptorConstants.POST_LIST_GROUPS_BY_CLAIM_DOMAIN, (eventProperties) -> {
@Override public List<Group> listGroups(int offset, int length) throws IdentityStoreException { return identityStore.listGroups(offset, length); }
@Override public List<Group> listGroups(Claim claim, int offset, int length, String domainName) throws IdentityStoreException { return identityStore.listGroups(claim, offset, length, domainName); }
@Override public List<Group> listGroups(MetaClaim metaClaim, String filterPattern, int offset, int length, String domainName) throws IdentityStoreException { return identityStore.listGroups(metaClaim, filterPattern, offset, length, domainName); }
@Override public List<Group> execute() throws IdentityStoreException { return identityStore.listGroups(claim, offset, length); } }).pushEvent(IdentityStoreInterceptorConstants.POST_LIST_GROUPS_BY_CLAIM, (eventProperties) -> {
@Override public List<Group> listGroups(int offset, int length, String domainName) throws IdentityStoreException { return identityStore.listGroups(offset, length, domainName); }
@Override public List<Group> listGroups(MetaClaim metaClaim, String filterPattern, int offset, int length) throws IdentityStoreException { return identityStore.listGroups(metaClaim, filterPattern, offset, length); }
@Override public List<Group> execute() throws IdentityStoreException { return identityStore.listGroups(offset, length, domainName); } }).pushEvent(IdentityStoreInterceptorConstants.POST_LIST_GROUPS_BY_DOMAIN, (eventProperties) -> {
@Override public List<Group> execute() throws IdentityStoreException { return identityStore.listGroups(metaClaim, filterPattern, offset, length, domainName); } }).pushEvent(IdentityStoreInterceptorConstants.POST_LIST_GROUPS_BY_META_CLAIM_DOMAIN, (eventProperties) -> {
@Override public List<Group> listGroups(Claim claim, int offset, int length) throws IdentityStoreException { return identityStore.listGroups(claim, offset, length); }
private List<Object> listGroupsWithPagination(int startIndex, int count) throws CharonException { try { //get the group list according to the start index and the count values provided. //TODO : Add the domain of the store. List<org.wso2.carbon.identity.mgt.Group> groupList = identityStore.listGroups(startIndex, count); List<Object> groupObjectList = new ArrayList<>(); //we need to set the first item of the array to be the number of groups in the given domain. groupObjectList.add(groupList.size()); //convert identity store users to objects. for (org.wso2.carbon.identity.mgt.Group group : groupList) { //get the details of the users. //TODO:We need to pass the scim claim dialect for this method List<Claim> claimList = group.getClaims(); //TODO this is a temporary method. need to remove this once the claim management is completed. claimList = ClaimMapper.getInstance().convertToScimDialect(claimList); Group scimGroup = getSCIMGroup(group, claimList); groupObjectList.add(scimGroup); } return groupObjectList; } catch (IdentityStoreException | GroupNotFoundException e) { throw new CharonException("Error in getting the user list with start index :" + startIndex + " and " + "count of :" + count, e); } }
groupList = identityStore.listGroups(filterClaim, startIndex, count);