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.service.model.impl.ImporterConfigModelImpl.java

License:Open Source License

@JSON
@Override/*from w  ww .jav a  2s  . c om*/
public String getElementvalue() {
    if (_elementvalue == null) {
        return StringPool.BLANK;
    } else {
        return _elementvalue;
    }
}

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

License:Open Source License

@Override
public Invitation toEntityModel() {
    InvitationImpl invitationImpl = new InvitationImpl();

    invitationImpl.setInvitationId(invitationId);

    if (name == null) {
        invitationImpl.setName(StringPool.BLANK);
    } else {//from   w  w  w.  j  a  v a 2s  . co m
        invitationImpl.setName(name);
    }

    if (subject == null) {
        invitationImpl.setSubject(StringPool.BLANK);
    } else {
        invitationImpl.setSubject(subject);
    }

    if (body == null) {
        invitationImpl.setBody(StringPool.BLANK);
    } else {
        invitationImpl.setBody(body);
    }

    invitationImpl.setStatus(status);

    if (invitationsend == Long.MIN_VALUE) {
        invitationImpl.setInvitationsend(null);
    } else {
        invitationImpl.setInvitationsend(new Date(invitationsend));
    }

    if (lastchanged == Long.MIN_VALUE) {
        invitationImpl.setLastchanged(null);
    } else {
        invitationImpl.setLastchanged(new Date(lastchanged));
    }

    invitationImpl.setLastchanger(lastchanger);

    if (filter == null) {
        invitationImpl.setFilter(StringPool.BLANK);
    } else {
        invitationImpl.setFilter(filter);
    }

    invitationImpl.resetOriginalValues();

    return invitationImpl;
}

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

License:Open Source License

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

    if (name == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {//from   w  ww.  ja  v a2 s  .c  o  m
        objectOutput.writeUTF(name);
    }

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

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

    objectOutput.writeLong(status);
    objectOutput.writeLong(invitationsend);
    objectOutput.writeLong(lastchanged);
    objectOutput.writeLong(lastchanger);

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

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

License:Open Source License

@JSON
@Override//w  w  w. ja v a 2  s. c  o  m
public String getSubject() {
    if (_subject == null) {
        return StringPool.BLANK;
    } else {
        return _subject;
    }
}

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

License:Open Source License

@JSON
@Override//from   ww w  .j  a va  2s.c  o  m
public String getBody() {
    if (_body == null) {
        return StringPool.BLANK;
    } else {
        return _body;
    }
}

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

License:Open Source License

@JSON
@Override/*  w w w .j av  a 2  s .  c  om*/
public String getFilter() {
    if (_filter == null) {
        return StringPool.BLANK;
    } else {
        return _filter;
    }
}

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

License:Open Source License

@Override
public Logapi toEntityModel() {
    LogapiImpl logapiImpl = new LogapiImpl();

    logapiImpl.setLogapiId(logapiId);/*from w  w  w.j  av  a2  s .  c  om*/
    logapiImpl.setUserId(userId);

    if (userip == null) {
        logapiImpl.setUserip(StringPool.BLANK);
    } else {
        logapiImpl.setUserip(userip);
    }

    if (logmsg == null) {
        logapiImpl.setLogmsg(StringPool.BLANK);
    } else {
        logapiImpl.setLogmsg(logmsg);
    }

    if (date == Long.MIN_VALUE) {
        logapiImpl.setDate(null);
    } else {
        logapiImpl.setDate(new Date(date));
    }

    logapiImpl.resetOriginalValues();

    return logapiImpl;
}

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

License:Open Source License

@Override
public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(logapiId);//from  w w w. j  a v a2 s.  c  om
    objectOutput.writeLong(userId);

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

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

    objectOutput.writeLong(date);
}

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

License:Open Source License

@Override
public Networks toEntityModel() {
    NetworksImpl networksImpl = new NetworksImpl();

    networksImpl.setNetworkId(networkId);
    networksImpl.setOrganizationnetworkId(organizationnetworkId);
    networksImpl.setOrganizationId(organizationId);

    if (relation == null) {
        networksImpl.setRelation(StringPool.BLANK);
    } else {//from  w ww . j av a2 s  . c o m
        networksImpl.setRelation(relation);
    }

    if (externalnetworkId == null) {
        networksImpl.setExternalnetworkId(StringPool.BLANK);
    } else {
        networksImpl.setExternalnetworkId(externalnetworkId);
    }

    if (yearofestablishment == null) {
        networksImpl.setYearofestablishment(StringPool.BLANK);
    } else {
        networksImpl.setYearofestablishment(yearofestablishment);
    }

    networksImpl.resetOriginalValues();

    return networksImpl;
}

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

License:Open Source License

@Override
public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(networkId);//from  www  . j  a  v a 2 s.  co  m
    objectOutput.writeLong(organizationnetworkId);
    objectOutput.writeLong(organizationId);

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

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

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