Here you can find the source of getUserGroupsFromImpex( final String impexContent, final int uidIndex)
public static List<String> getUserGroupsFromImpex( final String impexContent, final int uidIndex)
//package com.java2s; /*/* w w w . j a va2 s . co m*/ * [y] hybris Platform * * Copyright (c) 2000-2014 hybris AG * All rights reserved. * * This software is the confidential and proprietary information of hybris * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * license agreement you entered into with hybris. * * */ import java.util.ArrayList; import java.util.List; public class Main { public static List<String> getUserGroupsFromImpex( final String impexContent, final int uidIndex) { final List<String> list = new ArrayList<String>(); final String[] lines = impexContent.split("\n"); int index = 0; while (!lines[index].trim().startsWith("INSERT_UPDATE UserGroup")) { index++; } while (++index < lines.length && lines[index].trim().startsWith(";")) { final String[] lineTockens = lines[index].split(";"); list.add(lineTockens[uidIndex]); } return list; } }