Example usage for com.liferay.portal.kernel.util StringUtil upperCase

List of usage examples for com.liferay.portal.kernel.util StringUtil upperCase

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util StringUtil upperCase.

Prototype

public static String upperCase(String s) 

Source Link

Document

Converts all of the characters in the string to upper case.

Usage

From source file:com.liferay.portlet.shopping.service.persistence.ShoppingCouponFinderImpl.java

License:Open Source License

public int countByG_C_C_A_DT(long groupId, long companyId, String code, boolean active, String discountType,
        boolean andOperator) throws SystemException {

    code = StringUtil.upperCase(code);

    Session session = null;/*from  w  w  w .  j  ava 2s  . com*/

    try {
        session = openSession();

        String sql = CustomSQLUtil.get(COUNT_BY_G_C_C_A_DT);

        sql = CustomSQLUtil.replaceAndOperator(sql, andOperator);

        SQLQuery q = session.createSQLQuery(sql);

        q.addScalar(COUNT_COLUMN_NAME, Type.LONG);

        QueryPos qPos = QueryPos.getInstance(q);

        qPos.add(groupId);
        qPos.add(companyId);
        qPos.add(code);
        qPos.add(code);
        qPos.add(active);
        qPos.add(discountType);
        qPos.add(discountType);

        Iterator<Long> itr = q.iterate();

        if (itr.hasNext()) {
            Long count = itr.next();

            if (count != null) {
                return count.intValue();
            }
        }

        return 0;
    } catch (Exception e) {
        throw new SystemException(e);
    } finally {
        closeSession(session);
    }
}

From source file:com.liferay.portlet.shopping.service.persistence.ShoppingCouponFinderImpl.java

License:Open Source License

public List<ShoppingCoupon> findByG_C_C_A_DT(long groupId, long companyId, String code, boolean active,
        String discountType, boolean andOperator, int start, int end) throws SystemException {

    code = StringUtil.upperCase(code);

    Session session = null;/*from   w w  w . j av a2  s. c  o  m*/

    try {
        session = openSession();

        String sql = CustomSQLUtil.get(FIND_BY_G_C_C_A_DT);

        sql = CustomSQLUtil.replaceAndOperator(sql, andOperator);

        SQLQuery q = session.createSQLQuery(sql);

        q.addEntity("ShoppingCoupon", ShoppingCouponImpl.class);

        QueryPos qPos = QueryPos.getInstance(q);

        qPos.add(groupId);
        qPos.add(companyId);
        qPos.add(code);
        qPos.add(code);
        qPos.add(active);
        qPos.add(discountType);
        qPos.add(discountType);

        return (List<ShoppingCoupon>) QueryUtil.list(q, getDialect(), start, end);
    } catch (Exception e) {
        throw new SystemException(e);
    } finally {
        closeSession(session);
    }
}

From source file:com.liferay.portlet.shopping.service.persistence.ShoppingOrderFinderImpl.java

License:Open Source License

public int countByG_C_U_N_PPPS(long groupId, long companyId, long userId, String number,
        String billingFirstName, String billingLastName, String billingEmailAddress, String shippingFirstName,
        String shippingLastName, String shippingEmailAddress, String ppPaymentStatus, boolean andOperator)
        throws SystemException {

    number = StringUtil.upperCase(number);

    Session session = null;//from w  w w  . j av a 2s .  c  o m

    try {
        session = openSession();

        String sql = CustomSQLUtil.get(COUNT_BY_G_C_U_N_PPPS);

        if (userId <= 0) {
            sql = StringUtil.replace(sql, USER_ID_SQL, StringPool.BLANK);
        }

        if (Validator.isNull(ppPaymentStatus)) {
            sql = StringUtil.replace(sql, "ppPaymentStatus = ?", "ppPaymentStatus != ?");

            ppPaymentStatus = ShoppingOrderConstants.STATUS_LATEST;
        }

        sql = CustomSQLUtil.replaceAndOperator(sql, andOperator);

        SQLQuery q = session.createSQLQuery(sql);

        q.addScalar(COUNT_COLUMN_NAME, Type.LONG);

        QueryPos qPos = QueryPos.getInstance(q);

        qPos.add(groupId);
        qPos.add(companyId);

        if (userId > 0) {
            qPos.add(userId);
        }

        qPos.add(number);
        qPos.add(number);
        qPos.add(billingFirstName);
        qPos.add(billingFirstName);
        qPos.add(billingLastName);
        qPos.add(billingLastName);
        qPos.add(billingEmailAddress);
        qPos.add(billingEmailAddress);
        qPos.add(shippingFirstName);
        qPos.add(shippingFirstName);
        qPos.add(shippingLastName);
        qPos.add(shippingLastName);
        qPos.add(shippingEmailAddress);
        qPos.add(shippingEmailAddress);
        qPos.add(ppPaymentStatus);

        Iterator<Long> itr = q.iterate();

        if (itr.hasNext()) {
            Long count = itr.next();

            if (count != null) {
                return count.intValue();
            }
        }

        return 0;
    } catch (Exception e) {
        throw new SystemException(e);
    } finally {
        closeSession(session);
    }
}

From source file:com.liferay.portlet.shopping.service.persistence.ShoppingOrderFinderImpl.java

License:Open Source License

public List<ShoppingOrder> findByG_C_U_N_PPPS(long groupId, long companyId, long userId, String number,
        String billingFirstName, String billingLastName, String billingEmailAddress, String shippingFirstName,
        String shippingLastName, String shippingEmailAddress, String ppPaymentStatus, boolean andOperator,
        int start, int end, OrderByComparator obc) throws SystemException {

    number = StringUtil.upperCase(number);

    Session session = null;//ww w  .j  av a  2  s  .  co m

    try {
        session = openSession();

        String sql = CustomSQLUtil.get(FIND_BY_G_C_U_N_PPPS);

        if (userId <= 0) {
            sql = StringUtil.replace(sql, USER_ID_SQL, StringPool.BLANK);
        }

        if (Validator.isNull(ppPaymentStatus)) {
            sql = StringUtil.replace(sql, "ppPaymentStatus = ?", "ppPaymentStatus != ?");

            ppPaymentStatus = ShoppingOrderConstants.STATUS_LATEST;
        }

        sql = CustomSQLUtil.replaceAndOperator(sql, andOperator);
        sql = CustomSQLUtil.replaceOrderBy(sql, obc);

        SQLQuery q = session.createSQLQuery(sql);

        q.addEntity("ShoppingOrder", ShoppingOrderImpl.class);

        QueryPos qPos = QueryPos.getInstance(q);

        qPos.add(groupId);
        qPos.add(companyId);

        if (userId > 0) {
            qPos.add(userId);
        }

        qPos.add(number);
        qPos.add(number);
        qPos.add(billingFirstName);
        qPos.add(billingFirstName);
        qPos.add(billingLastName);
        qPos.add(billingLastName);
        qPos.add(billingEmailAddress);
        qPos.add(billingEmailAddress);
        qPos.add(shippingFirstName);
        qPos.add(shippingFirstName);
        qPos.add(shippingLastName);
        qPos.add(shippingLastName);
        qPos.add(shippingEmailAddress);
        qPos.add(shippingEmailAddress);
        qPos.add(ppPaymentStatus);

        return (List<ShoppingOrder>) QueryUtil.list(q, getDialect(), start, end);
    } catch (Exception e) {
        throw new SystemException(e);
    } finally {
        closeSession(session);
    }
}

From source file:com.liferay.shopping.service.persistence.ShoppingCouponFinderImpl.java

License:Open Source License

public int countByG_C_C_A_DT(long groupId, long companyId, String code, boolean active, String discountType,
        boolean andOperator) throws SystemException {

    code = StringUtil.upperCase(code);

    Session session = null;/*from w  ww . j  a v a 2s.  co  m*/

    try {
        session = openSession();

        String sql = CustomSQLUtil.get(COUNT_BY_G_C_C_A_DT);

        sql = CustomSQLUtil.replaceAndOperator(sql, andOperator);

        SQLQuery q = session.createSQLQuery(sql);

        q.addScalar(COUNT_COLUMN_NAME, Type.LONG);

        QueryPos qPos = QueryPos.getInstance(q);

        qPos.add(groupId);
        qPos.add(companyId);
        qPos.add(code);
        qPos.add(code);
        qPos.add(active);
        qPos.add(discountType);
        qPos.add(discountType);

        Iterator<Long> itr = q.list().iterator();

        if (itr.hasNext()) {
            Long count = itr.next();

            if (count != null) {
                return count.intValue();
            }
        }

        return 0;
    } catch (Exception e) {
        throw new SystemException(e);
    } finally {
        closeSession(session);
    }
}

From source file:com.liferay.shopping.service.persistence.ShoppingCouponFinderImpl.java

License:Open Source License

public List<ShoppingCoupon> findByG_C_C_A_DT(long groupId, long companyId, String code, boolean active,
        String discountType, boolean andOperator, int start, int end) throws SystemException {

    code = StringUtil.upperCase(code);

    Session session = null;/*from   ww w.  j a  va 2 s.com*/

    try {
        session = openSession();

        String sql = CustomSQLUtil.get(FIND_BY_G_C_C_A_DT);

        sql = CustomSQLUtil.replaceAndOperator(sql, andOperator);

        SQLQuery q = session.createSQLQuery(sql);

        q.addEntity("Shopping_ShoppingCoupon", ShoppingCouponImpl.class);

        QueryPos qPos = QueryPos.getInstance(q);

        qPos.add(groupId);
        qPos.add(companyId);
        qPos.add(code);
        qPos.add(code);
        qPos.add(active);
        qPos.add(discountType);
        qPos.add(discountType);

        return (List<ShoppingCoupon>) QueryUtil.list(q, getDialect(), start, end);
    } catch (Exception e) {
        throw new SystemException(e);
    } finally {
        closeSession(session);
    }
}

From source file:com.liferay.shopping.service.persistence.ShoppingOrderFinderImpl.java

License:Open Source License

public int countByG_C_U_N_PPPS(long groupId, long companyId, long userId, String number,
        String billingFirstName, String billingLastName, String billingEmailAddress, String shippingFirstName,
        String shippingLastName, String shippingEmailAddress, String ppPaymentStatus, boolean andOperator)
        throws SystemException {

    number = StringUtil.upperCase(number);

    Session session = null;// w  w  w.j  ava  2 s.  c  o m

    try {
        session = openSession();

        String sql = CustomSQLUtil.get(COUNT_BY_G_C_U_N_PPPS);

        if (userId <= 0) {
            sql = StringUtil.replace(sql, USER_ID_SQL, StringPool.BLANK);
        }

        if (Validator.isNull(ppPaymentStatus)) {
            sql = StringUtil.replace(sql, "ppPaymentStatus = ?", "ppPaymentStatus != ?");

            ppPaymentStatus = ShoppingOrderConstants.STATUS_LATEST;
        }

        sql = CustomSQLUtil.replaceAndOperator(sql, andOperator);

        SQLQuery q = session.createSQLQuery(sql);

        q.addScalar(COUNT_COLUMN_NAME, Type.LONG);

        QueryPos qPos = QueryPos.getInstance(q);

        qPos.add(groupId);
        qPos.add(companyId);

        if (userId > 0) {
            qPos.add(userId);
        }

        qPos.add(number);
        qPos.add(number);
        qPos.add(billingFirstName);
        qPos.add(billingFirstName);
        qPos.add(billingLastName);
        qPos.add(billingLastName);
        qPos.add(billingEmailAddress);
        qPos.add(billingEmailAddress);
        qPos.add(shippingFirstName);
        qPos.add(shippingFirstName);
        qPos.add(shippingLastName);
        qPos.add(shippingLastName);
        qPos.add(shippingEmailAddress);
        qPos.add(shippingEmailAddress);
        qPos.add(ppPaymentStatus);

        Iterator<Long> itr = q.list().iterator();

        if (itr.hasNext()) {
            Long count = itr.next();

            if (count != null) {
                return count.intValue();
            }
        }

        return 0;
    } catch (Exception e) {
        throw new SystemException(e);
    } finally {
        closeSession(session);
    }
}

From source file:com.liferay.shopping.service.persistence.ShoppingOrderFinderImpl.java

License:Open Source License

public List<ShoppingOrder> findByG_C_U_N_PPPS(long groupId, long companyId, long userId, String number,
        String billingFirstName, String billingLastName, String billingEmailAddress, String shippingFirstName,
        String shippingLastName, String shippingEmailAddress, String ppPaymentStatus, boolean andOperator,
        int start, int end, OrderByComparator obc) throws SystemException {

    number = StringUtil.upperCase(number);

    Session session = null;//from w  w w. jav  a 2  s.  c  o  m

    try {
        session = openSession();

        String sql = CustomSQLUtil.get(FIND_BY_G_C_U_N_PPPS);

        if (userId <= 0) {
            sql = StringUtil.replace(sql, USER_ID_SQL, StringPool.BLANK);
        }

        if (Validator.isNull(ppPaymentStatus)) {
            sql = StringUtil.replace(sql, "ppPaymentStatus = ?", "ppPaymentStatus != ?");

            ppPaymentStatus = ShoppingOrderConstants.STATUS_LATEST;
        }

        sql = CustomSQLUtil.replaceAndOperator(sql, andOperator);
        sql = CustomSQLUtil.replaceOrderBy(sql, obc);

        SQLQuery q = session.createSQLQuery(sql);

        q.addEntity("Shopping_ShoppingOrder", ShoppingOrderImpl.class);

        QueryPos qPos = QueryPos.getInstance(q);

        qPos.add(groupId);
        qPos.add(companyId);

        if (userId > 0) {
            qPos.add(userId);
        }

        qPos.add(number);
        qPos.add(number);
        qPos.add(billingFirstName);
        qPos.add(billingFirstName);
        qPos.add(billingLastName);
        qPos.add(billingLastName);
        qPos.add(billingEmailAddress);
        qPos.add(billingEmailAddress);
        qPos.add(shippingFirstName);
        qPos.add(shippingFirstName);
        qPos.add(shippingLastName);
        qPos.add(shippingLastName);
        qPos.add(shippingEmailAddress);
        qPos.add(shippingEmailAddress);
        qPos.add(ppPaymentStatus);

        return (List<ShoppingOrder>) QueryUtil.list(q, getDialect(), start, end);
    } catch (Exception e) {
        throw new SystemException(e);
    } finally {
        closeSession(session);
    }
}

From source file:com.vportal.portlet.vcms.service.impl.VcmsArticleServiceImpl.java

License:Open Source License

public VcmsArticle updateArticle(ActionRequest req, UploadPortletRequest upRequest, long groupId,
        long companyId, String articleId, long status, String title, String lead, String content,
        boolean hasImage, String imageTitle, String image, String language, boolean discussible,
        boolean hasAttachment, boolean hasPoll, String pollId, boolean sticky, boolean stickyNeverExpired,
        Date stickyExpireDate) throws PortalException, SystemException, RemoteException {

    VcmsArticlePermission.check(getPermissionChecker(), Long.parseLong(articleId), ActionKeysExt.UPDATE);

    _validate(title, content);/* w w w .j a va 2  s .c o  m*/

    Date now = new Date();
    String userId = String.valueOf(getUserId());

    VcmsArticle article = VcmsArticleUtil.findByPrimaryKey(articleId);

    List listTypes = (List) VcmsArticleTypeLocalServiceUtil.getByArticleId(articleId);

    String typeIds = "";

    if (Validator.isNotNull(listTypes) && listTypes.size() > 0) {
        for (int i = 0; i < listTypes.size(); i++) {
            VcmsArticleType vArticleType = (VcmsArticleType) listTypes.get(i);
            typeIds += String.valueOf(vArticleType.getTypeId()) + (i < listTypes.size() - 1 ? "," : "");
        }
    }

    /* --Add by VanVtk -- */

    long groupIdHistory = article.getGroupId();
    long companyIdHistory = article.getCompanyId();

    String titleHistory = article.getTitle();
    String leadHistory = article.getLead();
    String contentHistory = article.getContent();
    String author = article.getAuthor();
    String source = article.getSource();
    long statusHistory = article.getStatus();
    boolean hasImageHistory = article.getHasImage();
    String imageTitleHistory = article.getImageTitle();
    String imageHistory = article.getImage();
    String languageHistory = article.getLanguage();
    int userHitHistory = article.getUserHit();
    boolean discussibleHistory = article.getDiscussible();
    boolean hasAttachmentHistory = article.getHasAttachment();
    boolean hasPollHistory = article.getHasPoll();
    String pollIdHistory = article.getPollId();
    boolean stickyHistory = article.getSticky();
    boolean stickyNeverExpiredHistory = article.getStickyNeverExpired();
    Date stickyExpireDateHistory = article.getStickyExpireDate();
    Date effectiveDate = article.getEffectiveDate();
    Date expireDate = article.getExpireDate();

    int countVersion = vcmsArticleVersionPersistence.countByArticle(articleId);

    String versionName = "Verison" + countVersion + " [" + now.toGMTString() + "]";

    VcmsArticleVersionServiceUtil.addVersion(groupIdHistory, languageHistory, companyIdHistory, articleId,
            typeIds, statusHistory, versionName, titleHistory, leadHistory, contentHistory, userHitHistory,
            hasImageHistory, imageTitleHistory, imageHistory, author, source, discussibleHistory,
            hasPollHistory, pollIdHistory, effectiveDate, expireDate, stickyHistory, stickyNeverExpiredHistory,
            stickyExpireDateHistory, hasAttachmentHistory);

    /* --End Add by VanVtk -- */

    article.setGroupId(groupId);
    article.setCompanyId(companyId);

    article.setTitle(title);
    article.setLead(lead);
    article.setContent(content);

    /*try {
       if (Validator.isNotNull(image) && Validator.isNotNull(req)) {
    saveImage(req, article, image, imageTitle, companyId);
       } else {
    article.setImage(article.getImage());
    article.setImageTitle(article.getImageTitle());
       }
            
    } catch (Exception e1) {
       // TODO Auto-generated catch block
       e1.printStackTrace();
    }*/
    try {
        if (Validator.isNotNull(image) && Validator.isNotNull(req)) {
            saveImage(req, upRequest, article, image, imageTitle, companyId);
        } else {
            if (image.equals("delete_image")) {
                article.setImage(null);
                article.setImageTitle(null);
                article.setHasImage(false);
            } else {
                article.setImage(article.getImage());
                article.setImageTitle(article.getImageTitle());
            }
        }

    } catch (Exception e1) {
        // TODO Auto-generated catch block
        e1.printStackTrace();
    }

    article.setLanguage(language);
    article.setUserHit(article.getUserHit());
    article.setDiscussible(discussible);
    article.setHasAttachment(hasAttachment);
    article.setHasPoll(hasPoll);
    article.setPollId(pollId);
    article.setSticky(sticky);
    article.setStickyNeverExpired(stickyNeverExpired);
    article.setStickyExpireDate(stickyExpireDate);

    if (status != 0) {
        VcmsStatus vStatus = VcmsStatusLocalServiceUtil.getVcmsStatus(status);
        if (vStatus.getIsPrimary()) {

            article.setModifiedByUser(userId);
            article.setModifiedDate(now);

            VcmsLoggerServiceUtil.log(CalendarUtil.getTimestamp(now) + " - "
                    + StringUtil.upperCase(vStatus.getName()) + ": VCMS article [" + title + "] by " + userId);

        } else if (vStatus.getActive()) {

            article.setPublishedByUser(userId);
            article.setPublishedDate(now);

            VcmsLoggerServiceUtil.log(CalendarUtil.getTimestamp(now) + " - "
                    + StringUtil.upperCase(vStatus.getName()) + ": VCMS article [" + title + "] by " + userId);

            try {

                SearchIndexer.updateArticle(article.getCompanyId(), article.getGroupId(),
                        article.getArticleId(), article.getTitle(), article.getLead(), article.getContent());

            } catch (Exception e) {
                // TODO: handle exception
            }

            article.setPublishedDate(now);
            article.setPublishedByUser(userId);

            // Lucene

            VcmsLoggerServiceUtil.log(
                    CalendarUtil.getTimestamp(now) + " - PUBLISH: VCMS article [" + title + "] by " + userId);

        } else {

            article.setModifiedByUser(userId);
            article.setModifiedDate(now);

            article.setPublishedByUser(null);
            article.setPublishedDate(null);

            VcmsLoggerServiceUtil.log(CalendarUtil.getTimestamp(now) + " - "
                    + StringUtil.upperCase(vStatus.getName()) + ": VCMS article [" + title + "] by " + userId);
        }

        article.setStatus(vStatus.getStatusId());

    } else {

        article.setStatus(0);

        VcmsLoggerServiceUtil
                .log(CalendarUtil.getTimestamp(now) + " - WITHDRAW: VCMS article [" + title + "] by " + userId);

    }

    vcmsArticlePersistence.update(article, false);

    return article;
}

From source file:org.kisti.edison.bestsimulation.service.impl.SimulationLocalServiceImpl.java

License:Open Source License

/**
 * ? //from   w ww  .ja  va 2 s. c o  m
 * @simulationUuid
 * @fileId
 * @Token
 * @title
 * @description
 * @scienceApp_name
 * @return
 * @throws ParserConfigurationException 
 * @throws SAXException 
 */
public Map executeJob(String icebreakerUrl, Map params)
        throws MalformedURLException, IOException, ParserConfigurationException, SAXException {

    Map resultMap = null;

    if (!CustomUtil.strNull(params.get("Token")).equals("")) {

        String URL = icebreakerUrl + "/api/simulation/" + CustomUtil.strNull(params.get("simulationUuid"))
                + "/job/submit";
        String syncCallBackURL = CustomUtil.strNull(params.get("syncCallBackURL"));
        URL += "?url=" + syncCallBackURL;

        log.debug("executeJob URL-->" + URL);
        URL url = new URL(URL);
        HttpURLConnection conn = (HttpURLConnection) url.openConnection();
        conn.setReadTimeout(300000);
        conn.setDoOutput(true);
        conn.setRequestMethod("POST");
        conn.setRequestProperty("Accept", "application/xml");
        conn.setRequestProperty("Content-Type", "application/xml");
        conn.setRequestProperty("Authorization", "Basic " + CustomUtil.strNull(params.get("Token")));

        StringBuffer bodyStr = new StringBuffer();
        String executionStr = CustomUtil.strNull(params.get("executionStr"));
        String executionType = StringUtil
                .upperCase(CustomUtil.strNull(params.get("executionType"), "SEQUENTIAL"));

        bodyStr.append("<job>");
        bodyStr.append("   <type>" + executionType + "</type>");
        bodyStr.append("   <category>"
                + StringUtil.upperCase(CustomUtil.strNull(params.get("code_mpi_module"), "")) + "</category>");
        bodyStr.append("   <title>" + CustomUtil.strNull(params.get("title")) + "</title>");
        bodyStr.append("   <description>" + CustomUtil.strNull(params.get("description")) + "</description>");
        if (!CustomUtil.strNull(params.get("scienceAppId")).equals("")) {
            bodyStr.append("   <solverId>" + CustomUtil.strNull(params.get("scienceAppId")) + "</solverId>");
        }
        if (!CustomUtil.strNull(params.get("scienceAppName")).equals("")) {
            bodyStr.append(
                    "   <solverName>" + CustomUtil.strNull(params.get("scienceAppName")) + "</solverName>");
        }
        bodyStr.append("   <cyberLabId>" + CustomUtil.strNull(params.get("cyberLabId"), " ") + "</cyberLabId>");
        bodyStr.append("   <classId>" + CustomUtil.strNull(params.get("classId"), " ") + "</classId>");
        bodyStr.append("   <executable>" + CustomUtil.strNull(params.get("exec_path")) + "</executable>");

        bodyStr.append(CustomUtil.strNull(params.get("execution_mpi_attributes")));
        bodyStr.append(CustomUtil.strNull(params.get("code_library")));
        bodyStr.append(CustomUtil.strNull(params.get("filesItem")));
        bodyStr.append("   <cluster>" + CustomUtil.strNull(params.get("cluster")) + "</cluster>");
        bodyStr.append("   <execution>" + executionStr + "</execution>");
        bodyStr.append("</job>");

        log.debug("##### SUBMIT #################################");
        log.debug(bodyStr.toString());
        log.debug("##### SUBMIT #################################");

        OutputStream os = conn.getOutputStream();
        os.write(bodyStr.toString().getBytes());
        os.flush();

        String output = "";

        if (conn.getResponseCode() == 201) {

            BufferedReader br = new BufferedReader(new InputStreamReader((conn.getInputStream())));

            while ((output = br.readLine()) != null) {
                if (!CustomUtil.strNull(output).equals("null")) {

                    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                    DocumentBuilder builder = factory.newDocumentBuilder();
                    Document document = builder
                            .parse(new InputSource(new StringReader(CustomUtil.strNull(output))));

                    String uuid = document.getElementsByTagName("uuid").item(0).getChildNodes().item(0)
                            .getNodeValue();

                    String status = document.getElementsByTagName("status").item(0).getChildNodes().item(0)
                            .getNodeValue();
                    status = CustomUtil.getStatusConvertIceToPortal(status);

                    String submittedTime = document.getElementsByTagName("submittedTime").item(0)
                            .getChildNodes().item(0).getNodeValue();

                    submittedTime = submittedTime.substring(0, 19); //2012-07-12T20:50:37                   
                    submittedTime = submittedTime.replace("T", " "); //2012-07-12 20:50:37
                    resultMap = new HashMap();
                    resultMap.put("uuid", uuid);
                    resultMap.put("status", status);
                    resultMap.put("submittedTime", submittedTime);

                }
            }
        } else if (conn.getResponseCode() == 400) {
            System.out.println(
                    "Failed IcebreakerService [ executeJob ] : BAD REQUEST : wrong body content - HTTP error code : "
                            + conn.getResponseCode());
        } else {
            System.out.println("Failed IcebreakerService [ executeJob ] : ETC : etc error - HTTP error code : "
                    + conn.getResponseCode());
        }

        conn.disconnect();
    } else {
        System.out.println(
                "Failed IcebreakerService [ executeJob ] : Token is NOT NULL - Request error code : 999");
    }

    return resultMap;
}