/** * This method returns a Hashmap (Long typeId, TypeFacade typeFacade) * with the specified authority and domain. * @param authority * @param domain * @return HashMap */ public Map getHashMapByAuthorityDomain(String authority, String domain) { List typeList = getListByAuthorityDomain(authority, domain); return createTypeFacadeMapById(typeList); }
/** * This method returns a Hashmap (Long typeId, TypeFacade typeFacade) * with the specified authority and domain. * @param authority * @param domain * @return HashMap */ public Map getHashMapByAuthorityDomain(String authority, String domain) { List typeList = getListByAuthorityDomain(authority, domain); return createTypeFacadeMapById(typeList); }
/** * This method return an ArrayList (Long typeId, TypeFacade typeFacade) * with the specified authority and domain. * @param authority * @param domain * @return ArrayList */ public List getArrayListByAuthorityDomain(String authority, String domain) { List typeList = getListByAuthorityDomain(authority, domain); List typeFacadeList = new ArrayList(); for (int i = 0; i < typeList.size(); i++) { TypeD typeData = (TypeD) typeList.get(i); TypeFacade typeFacade = new TypeFacade(typeData); typeFacadeList.add(typeFacade); } return typeFacadeList; }
/** * This method return an ArrayList (Long typeId, TypeFacade typeFacade) * with the specified authority and domain. * @param authority * @param domain * @return ArrayList */ public List getArrayListByAuthorityDomain(String authority, String domain) { List typeList = getListByAuthorityDomain(authority, domain); List typeFacadeList = new ArrayList(); for (int i = 0; i < typeList.size(); i++) { TypeD typeData = (TypeD) typeList.get(i); TypeFacade typeFacade = new TypeFacade(typeData); typeFacadeList.add(typeFacade); } return typeFacadeList; }
public List getFacadeListByAuthorityDomain(String authority, String domain) { List typeList = new ArrayList(); List list = getListByAuthorityDomain(authority, domain); for (int i=0; i<list.size();i++){ TypeD type = (TypeD)list.get(i); TypeFacade f = new TypeFacade(type.getAuthority(), type.getDomain(), type.getKeyword(), type.getDescription()); f.setTypeId(type.getTypeId()); typeList.add(f); } return (List)typeList; }
public List getFacadeListByAuthorityDomain(String authority, String domain) { List typeList = new ArrayList(); List list = getListByAuthorityDomain(authority, domain); for (int i=0; i<list.size();i++){ TypeD type = (TypeD)list.get(i); TypeFacade f = new TypeFacade(type.getAuthority(), type.getDomain(), type.getKeyword(), type.getDescription()); f.setTypeId(type.getTypeId()); typeList.add(f); } return (List)typeList; }