Example usage for com.liferay.portal.kernel.util StringPool BLANK

List of usage examples for com.liferay.portal.kernel.util StringPool BLANK

Introduction

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

Prototype

String BLANK

To view the source code for com.liferay.portal.kernel.util StringPool BLANK.

Click Source Link

Usage

From source file:at.graz.meduni.liferay.portlet.bibbox.rdconnect.service.model.impl.RDConnectEventNotificationCacheModel.java

License:Open Source License

@Override
public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(eventnotificationId);

    if (notificationtype == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {//from  w  w w . ja v  a 2  s  . c o  m
        objectOutput.writeUTF(notificationtype);
    }

    objectOutput.writeLong(userId);
    objectOutput.writeBoolean(notificationselected);
}

From source file:at.graz.meduni.liferay.portlet.bibbox.rdconnect.service.model.impl.RDConnectEventNotificationModelImpl.java

License:Open Source License

@Override
public String getNotificationtype() {
    if (_notificationtype == null) {
        return StringPool.BLANK;
    } else {/*from  w ww .ja v  a  2 s .  c  o m*/
        return _notificationtype;
    }
}

From source file:at.graz.meduni.liferay.portlet.bibbox.rdconnect.service.service.persistence.RDConnectEventNotificationPersistenceImpl.java

License:Open Source License

/**
 * Returns the r d connect event notification where notificationtype = &#63; and userId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
 *
 * @param notificationtype the notificationtype
 * @param userId the user ID/*from   w ww  . ja v  a 2 s .  co  m*/
 * @param retrieveFromCache whether to use the finder cache
 * @return the matching r d connect event notification, or <code>null</code> if a matching r d connect event notification could not be found
 * @throws SystemException if a system exception occurred
 */
@Override
public RDConnectEventNotification fetchByEventNotificationForUser(String notificationtype, long userId,
        boolean retrieveFromCache) throws SystemException {
    Object[] finderArgs = new Object[] { notificationtype, userId };

    Object result = null;

    if (retrieveFromCache) {
        result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_EVENTNOTIFICATIONFORUSER, finderArgs, this);
    }

    if (result instanceof RDConnectEventNotification) {
        RDConnectEventNotification rdConnectEventNotification = (RDConnectEventNotification) result;

        if (!Validator.equals(notificationtype, rdConnectEventNotification.getNotificationtype())
                || (userId != rdConnectEventNotification.getUserId())) {
            result = null;
        }
    }

    if (result == null) {
        StringBundler query = new StringBundler(4);

        query.append(_SQL_SELECT_RDCONNECTEVENTNOTIFICATION_WHERE);

        boolean bindNotificationtype = false;

        if (notificationtype == null) {
            query.append(_FINDER_COLUMN_EVENTNOTIFICATIONFORUSER_NOTIFICATIONTYPE_1);
        } else if (notificationtype.equals(StringPool.BLANK)) {
            query.append(_FINDER_COLUMN_EVENTNOTIFICATIONFORUSER_NOTIFICATIONTYPE_3);
        } else {
            bindNotificationtype = true;

            query.append(_FINDER_COLUMN_EVENTNOTIFICATIONFORUSER_NOTIFICATIONTYPE_2);
        }

        query.append(_FINDER_COLUMN_EVENTNOTIFICATIONFORUSER_USERID_2);

        String sql = query.toString();

        Session session = null;

        try {
            session = openSession();

            Query q = session.createQuery(sql);

            QueryPos qPos = QueryPos.getInstance(q);

            if (bindNotificationtype) {
                qPos.add(notificationtype);
            }

            qPos.add(userId);

            List<RDConnectEventNotification> list = q.list();

            if (list.isEmpty()) {
                FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_EVENTNOTIFICATIONFORUSER, finderArgs, list);
            } else {
                if ((list.size() > 1) && _log.isWarnEnabled()) {
                    _log.warn(
                            "RDConnectEventNotificationPersistenceImpl.fetchByEventNotificationForUser(String, long, boolean) with parameters ("
                                    + StringUtil.merge(finderArgs)
                                    + ") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.");
                }

                RDConnectEventNotification rdConnectEventNotification = list.get(0);

                result = rdConnectEventNotification;

                cacheResult(rdConnectEventNotification);

                if ((rdConnectEventNotification.getNotificationtype() == null)
                        || !rdConnectEventNotification.getNotificationtype().equals(notificationtype)
                        || (rdConnectEventNotification.getUserId() != userId)) {
                    FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_EVENTNOTIFICATIONFORUSER, finderArgs,
                            rdConnectEventNotification);
                }
            }
        } catch (Exception e) {
            FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_EVENTNOTIFICATIONFORUSER, finderArgs);

            throw processException(e);
        } finally {
            closeSession(session);
        }
    }

    if (result instanceof List<?>) {
        return null;
    } else {
        return (RDConnectEventNotification) result;
    }
}

From source file:at.graz.meduni.liferay.portlet.bibbox.rdconnect.service.service.persistence.RDConnectEventNotificationPersistenceImpl.java

License:Open Source License

/**
 * Returns the number of r d connect event notifications where notificationtype = &#63; and userId = &#63;.
 *
 * @param notificationtype the notificationtype
 * @param userId the user ID//from   w  ww .  ja v  a 2 s .co m
 * @return the number of matching r d connect event notifications
 * @throws SystemException if a system exception occurred
 */
@Override
public int countByEventNotificationForUser(String notificationtype, long userId) throws SystemException {
    FinderPath finderPath = FINDER_PATH_COUNT_BY_EVENTNOTIFICATIONFORUSER;

    Object[] finderArgs = new Object[] { notificationtype, userId };

    Long count = (Long) FinderCacheUtil.getResult(finderPath, finderArgs, this);

    if (count == null) {
        StringBundler query = new StringBundler(3);

        query.append(_SQL_COUNT_RDCONNECTEVENTNOTIFICATION_WHERE);

        boolean bindNotificationtype = false;

        if (notificationtype == null) {
            query.append(_FINDER_COLUMN_EVENTNOTIFICATIONFORUSER_NOTIFICATIONTYPE_1);
        } else if (notificationtype.equals(StringPool.BLANK)) {
            query.append(_FINDER_COLUMN_EVENTNOTIFICATIONFORUSER_NOTIFICATIONTYPE_3);
        } else {
            bindNotificationtype = true;

            query.append(_FINDER_COLUMN_EVENTNOTIFICATIONFORUSER_NOTIFICATIONTYPE_2);
        }

        query.append(_FINDER_COLUMN_EVENTNOTIFICATIONFORUSER_USERID_2);

        String sql = query.toString();

        Session session = null;

        try {
            session = openSession();

            Query q = session.createQuery(sql);

            QueryPos qPos = QueryPos.getInstance(q);

            if (bindNotificationtype) {
                qPos.add(notificationtype);
            }

            qPos.add(userId);

            count = (Long) q.uniqueResult();

            FinderCacheUtil.putResult(finderPath, finderArgs, count);
        } catch (Exception e) {
            FinderCacheUtil.removeResult(finderPath, finderArgs);

            throw processException(e);
        } finally {
            closeSession(session);
        }
    }

    return count.intValue();
}

From source file:at.graz.meduni.liferay.portlet.bibbox.rdconnect.service.service.persistence.RDConnectEventPersistenceImpl.java

License:Open Source License

/**
 * Returns an ordered range of all the r d connect events where restricted = &#63;.
 *
 * <p>//w  w  w . j a v  a2  s. co  m
 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link at.graz.meduni.liferay.portlet.bibbox.rdconnect.service.model.impl.RDConnectEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
 * </p>
 *
 * @param restricted the restricted
 * @param start the lower bound of the range of r d connect events
 * @param end the upper bound of the range of r d connect events (not inclusive)
 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
 * @return the ordered range of matching r d connect events
 * @throws SystemException if a system exception occurred
 */
@Override
public List<RDConnectEvent> findByRestricted(String restricted, int start, int end,
        OrderByComparator orderByComparator) throws SystemException {
    boolean pagination = true;
    FinderPath finderPath = null;
    Object[] finderArgs = null;

    if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && (orderByComparator == null)) {
        pagination = false;
        finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_RESTRICTED;
        finderArgs = new Object[] { restricted };
    } else {
        finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_RESTRICTED;
        finderArgs = new Object[] { restricted, start, end, orderByComparator };
    }

    List<RDConnectEvent> list = (List<RDConnectEvent>) FinderCacheUtil.getResult(finderPath, finderArgs, this);

    if ((list != null) && !list.isEmpty()) {
        for (RDConnectEvent rdConnectEvent : list) {
            if (!Validator.equals(restricted, rdConnectEvent.getRestricted())) {
                list = null;

                break;
            }
        }
    }

    if (list == null) {
        StringBundler query = null;

        if (orderByComparator != null) {
            query = new StringBundler(3 + (orderByComparator.getOrderByFields().length * 3));
        } else {
            query = new StringBundler(3);
        }

        query.append(_SQL_SELECT_RDCONNECTEVENT_WHERE);

        boolean bindRestricted = false;

        if (restricted == null) {
            query.append(_FINDER_COLUMN_RESTRICTED_RESTRICTED_1);
        } else if (restricted.equals(StringPool.BLANK)) {
            query.append(_FINDER_COLUMN_RESTRICTED_RESTRICTED_3);
        } else {
            bindRestricted = true;

            query.append(_FINDER_COLUMN_RESTRICTED_RESTRICTED_2);
        }

        if (orderByComparator != null) {
            appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, orderByComparator);
        } else if (pagination) {
            query.append(RDConnectEventModelImpl.ORDER_BY_JPQL);
        }

        String sql = query.toString();

        Session session = null;

        try {
            session = openSession();

            Query q = session.createQuery(sql);

            QueryPos qPos = QueryPos.getInstance(q);

            if (bindRestricted) {
                qPos.add(restricted);
            }

            if (!pagination) {
                list = (List<RDConnectEvent>) QueryUtil.list(q, getDialect(), start, end, false);

                Collections.sort(list);

                list = new UnmodifiableList<RDConnectEvent>(list);
            } else {
                list = (List<RDConnectEvent>) QueryUtil.list(q, getDialect(), start, end);
            }

            cacheResult(list);

            FinderCacheUtil.putResult(finderPath, finderArgs, list);
        } catch (Exception e) {
            FinderCacheUtil.removeResult(finderPath, finderArgs);

            throw processException(e);
        } finally {
            closeSession(session);
        }
    }

    return list;
}

From source file:at.graz.meduni.liferay.portlet.bibbox.rdconnect.service.service.persistence.RDConnectEventPersistenceImpl.java

License:Open Source License

protected RDConnectEvent getByRestricted_PrevAndNext(Session session, RDConnectEvent rdConnectEvent,
        String restricted, OrderByComparator orderByComparator, boolean previous) {
    StringBundler query = null;/*w ww .  j  a va2 s.c  om*/

    if (orderByComparator != null) {
        query = new StringBundler(6 + (orderByComparator.getOrderByFields().length * 6));
    } else {
        query = new StringBundler(3);
    }

    query.append(_SQL_SELECT_RDCONNECTEVENT_WHERE);

    boolean bindRestricted = false;

    if (restricted == null) {
        query.append(_FINDER_COLUMN_RESTRICTED_RESTRICTED_1);
    } else if (restricted.equals(StringPool.BLANK)) {
        query.append(_FINDER_COLUMN_RESTRICTED_RESTRICTED_3);
    } else {
        bindRestricted = true;

        query.append(_FINDER_COLUMN_RESTRICTED_RESTRICTED_2);
    }

    if (orderByComparator != null) {
        String[] orderByConditionFields = orderByComparator.getOrderByConditionFields();

        if (orderByConditionFields.length > 0) {
            query.append(WHERE_AND);
        }

        for (int i = 0; i < orderByConditionFields.length; i++) {
            query.append(_ORDER_BY_ENTITY_ALIAS);
            query.append(orderByConditionFields[i]);

            if ((i + 1) < orderByConditionFields.length) {
                if (orderByComparator.isAscending() ^ previous) {
                    query.append(WHERE_GREATER_THAN_HAS_NEXT);
                } else {
                    query.append(WHERE_LESSER_THAN_HAS_NEXT);
                }
            } else {
                if (orderByComparator.isAscending() ^ previous) {
                    query.append(WHERE_GREATER_THAN);
                } else {
                    query.append(WHERE_LESSER_THAN);
                }
            }
        }

        query.append(ORDER_BY_CLAUSE);

        String[] orderByFields = orderByComparator.getOrderByFields();

        for (int i = 0; i < orderByFields.length; i++) {
            query.append(_ORDER_BY_ENTITY_ALIAS);
            query.append(orderByFields[i]);

            if ((i + 1) < orderByFields.length) {
                if (orderByComparator.isAscending() ^ previous) {
                    query.append(ORDER_BY_ASC_HAS_NEXT);
                } else {
                    query.append(ORDER_BY_DESC_HAS_NEXT);
                }
            } else {
                if (orderByComparator.isAscending() ^ previous) {
                    query.append(ORDER_BY_ASC);
                } else {
                    query.append(ORDER_BY_DESC);
                }
            }
        }
    } else {
        query.append(RDConnectEventModelImpl.ORDER_BY_JPQL);
    }

    String sql = query.toString();

    Query q = session.createQuery(sql);

    q.setFirstResult(0);
    q.setMaxResults(2);

    QueryPos qPos = QueryPos.getInstance(q);

    if (bindRestricted) {
        qPos.add(restricted);
    }

    if (orderByComparator != null) {
        Object[] values = orderByComparator.getOrderByConditionValues(rdConnectEvent);

        for (Object value : values) {
            qPos.add(value);
        }
    }

    List<RDConnectEvent> list = q.list();

    if (list.size() == 2) {
        return list.get(1);
    } else {
        return null;
    }
}

From source file:at.graz.meduni.liferay.portlet.bibbox.rdconnect.service.service.persistence.RDConnectEventPersistenceImpl.java

License:Open Source License

/**
 * Returns the number of r d connect events where restricted = &#63;.
 *
 * @param restricted the restricted//from w  w w  .ja va2s  .c  o m
 * @return the number of matching r d connect events
 * @throws SystemException if a system exception occurred
 */
@Override
public int countByRestricted(String restricted) throws SystemException {
    FinderPath finderPath = FINDER_PATH_COUNT_BY_RESTRICTED;

    Object[] finderArgs = new Object[] { restricted };

    Long count = (Long) FinderCacheUtil.getResult(finderPath, finderArgs, this);

    if (count == null) {
        StringBundler query = new StringBundler(2);

        query.append(_SQL_COUNT_RDCONNECTEVENT_WHERE);

        boolean bindRestricted = false;

        if (restricted == null) {
            query.append(_FINDER_COLUMN_RESTRICTED_RESTRICTED_1);
        } else if (restricted.equals(StringPool.BLANK)) {
            query.append(_FINDER_COLUMN_RESTRICTED_RESTRICTED_3);
        } else {
            bindRestricted = true;

            query.append(_FINDER_COLUMN_RESTRICTED_RESTRICTED_2);
        }

        String sql = query.toString();

        Session session = null;

        try {
            session = openSession();

            Query q = session.createQuery(sql);

            QueryPos qPos = QueryPos.getInstance(q);

            if (bindRestricted) {
                qPos.add(restricted);
            }

            count = (Long) q.uniqueResult();

            FinderCacheUtil.putResult(finderPath, finderArgs, count);
        } catch (Exception e) {
            FinderCacheUtil.removeResult(finderPath, finderArgs);

            throw processException(e);
        } finally {
            closeSession(session);
        }
    }

    return count.intValue();
}

From source file:at.graz.meduni.liferay.portlet.bibbox.service.model.impl.BiobankPanelAssessmentCacheModel.java

License:Open Source License

@Override
public BiobankPanelAssessment toEntityModel() {
    BiobankPanelAssessmentImpl biobankPanelAssessmentImpl = new BiobankPanelAssessmentImpl();

    biobankPanelAssessmentImpl.setBiobankpanelassessmentId(biobankpanelassessmentId);
    biobankPanelAssessmentImpl.setOrganizationId(organizationId);
    biobankPanelAssessmentImpl.setUserId(userId);

    if (reviewer == null) {
        biobankPanelAssessmentImpl.setReviewer(StringPool.BLANK);
    } else {/*from w  w w. j  a  va 2s . c o  m*/
        biobankPanelAssessmentImpl.setReviewer(reviewer);
    }

    if (dateofassessment == Long.MIN_VALUE) {
        biobankPanelAssessmentImpl.setDateofassessment(null);
    } else {
        biobankPanelAssessmentImpl.setDateofassessment(new Date(dateofassessment));
    }

    if (background1_1 == null) {
        biobankPanelAssessmentImpl.setBackground1_1(StringPool.BLANK);
    } else {
        biobankPanelAssessmentImpl.setBackground1_1(background1_1);
    }

    if (background1_1_comments == null) {
        biobankPanelAssessmentImpl.setBackground1_1_comments(StringPool.BLANK);
    } else {
        biobankPanelAssessmentImpl.setBackground1_1_comments(background1_1_comments);
    }

    if (elsi1_2 == null) {
        biobankPanelAssessmentImpl.setElsi1_2(StringPool.BLANK);
    } else {
        biobankPanelAssessmentImpl.setElsi1_2(elsi1_2);
    }

    if (quality1_3 == null) {
        biobankPanelAssessmentImpl.setQuality1_3(StringPool.BLANK);
    } else {
        biobankPanelAssessmentImpl.setQuality1_3(quality1_3);
    }

    if (quality1_3_comments == null) {
        biobankPanelAssessmentImpl.setQuality1_3_comments(StringPool.BLANK);
    } else {
        biobankPanelAssessmentImpl.setQuality1_3_comments(quality1_3_comments);
    }

    if (cataloguemeetpurposes2_1 == null) {
        biobankPanelAssessmentImpl.setCataloguemeetpurposes2_1(StringPool.BLANK);
    } else {
        biobankPanelAssessmentImpl.setCataloguemeetpurposes2_1(cataloguemeetpurposes2_1);
    }

    if (adequateitplatform2_2 == null) {
        biobankPanelAssessmentImpl.setAdequateitplatform2_2(StringPool.BLANK);
    } else {
        biobankPanelAssessmentImpl.setAdequateitplatform2_2(adequateitplatform2_2);
    }

    if (addedvaluecatalogue2_3 == null) {
        biobankPanelAssessmentImpl.setAddedvaluecatalogue2_3(StringPool.BLANK);
    } else {
        biobankPanelAssessmentImpl.setAddedvaluecatalogue2_3(addedvaluecatalogue2_3);
    }

    if (associateddata2_4 == null) {
        biobankPanelAssessmentImpl.setAssociateddata2_4(StringPool.BLANK);
    } else {
        biobankPanelAssessmentImpl.setAssociateddata2_4(associateddata2_4);
    }

    if (associateddata2_4_comments == null) {
        biobankPanelAssessmentImpl.setAssociateddata2_4_comments(StringPool.BLANK);
    } else {
        biobankPanelAssessmentImpl.setAssociateddata2_4_comments(associateddata2_4_comments);
    }

    if (reasonstoaccept3_1 == null) {
        biobankPanelAssessmentImpl.setReasonstoaccept3_1(StringPool.BLANK);
    } else {
        biobankPanelAssessmentImpl.setReasonstoaccept3_1(reasonstoaccept3_1);
    }

    if (recommendation3_2 == null) {
        biobankPanelAssessmentImpl.setRecommendation3_2(StringPool.BLANK);
    } else {
        biobankPanelAssessmentImpl.setRecommendation3_2(recommendation3_2);
    }

    if (needadditionalinformation3_3 == null) {
        biobankPanelAssessmentImpl.setNeedadditionalinformation3_3(StringPool.BLANK);
    } else {
        biobankPanelAssessmentImpl.setNeedadditionalinformation3_3(needadditionalinformation3_3);
    }

    if (finalrecommendation_4 == null) {
        biobankPanelAssessmentImpl.setFinalrecommendation_4(StringPool.BLANK);
    } else {
        biobankPanelAssessmentImpl.setFinalrecommendation_4(finalrecommendation_4);
    }

    biobankPanelAssessmentImpl.resetOriginalValues();

    return biobankPanelAssessmentImpl;
}

From source file:at.graz.meduni.liferay.portlet.bibbox.service.model.impl.BiobankPanelAssessmentCacheModel.java

License:Open Source License

@Override
public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(biobankpanelassessmentId);
    objectOutput.writeLong(organizationId);
    objectOutput.writeLong(userId);//from   w  w w.j  a  v a  2 s  .c o m

    if (reviewer == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(reviewer);
    }

    objectOutput.writeLong(dateofassessment);

    if (background1_1 == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(background1_1);
    }

    if (background1_1_comments == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(background1_1_comments);
    }

    if (elsi1_2 == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(elsi1_2);
    }

    if (quality1_3 == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(quality1_3);
    }

    if (quality1_3_comments == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(quality1_3_comments);
    }

    if (cataloguemeetpurposes2_1 == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(cataloguemeetpurposes2_1);
    }

    if (adequateitplatform2_2 == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(adequateitplatform2_2);
    }

    if (addedvaluecatalogue2_3 == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(addedvaluecatalogue2_3);
    }

    if (associateddata2_4 == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(associateddata2_4);
    }

    if (associateddata2_4_comments == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(associateddata2_4_comments);
    }

    if (reasonstoaccept3_1 == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(reasonstoaccept3_1);
    }

    if (recommendation3_2 == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(recommendation3_2);
    }

    if (needadditionalinformation3_3 == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(needadditionalinformation3_3);
    }

    if (finalrecommendation_4 == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {
        objectOutput.writeUTF(finalrecommendation_4);
    }
}

From source file:at.graz.meduni.liferay.portlet.bibbox.service.model.impl.BiobankPanelAssessmentModelImpl.java

License:Open Source License

@JSON
@Override/*from  w w  w .  j a va2  s  .  c o m*/
public String getReviewer() {
    if (_reviewer == null) {
        return StringPool.BLANK;
    } else {
        return _reviewer;
    }
}