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

License:Open Source License

@Override
public KdssmpParameterOptions toEntityModel() {
    KdssmpParameterOptionsImpl kdssmpParameterOptionsImpl = new KdssmpParameterOptionsImpl();

    kdssmpParameterOptionsImpl.setParameteroptionsId(parameteroptionsId);
    kdssmpParameterOptionsImpl.setParameterconfigurationId(parameterconfigurationId);

    if (option == null) {
        kdssmpParameterOptionsImpl.setOption(StringPool.BLANK);
    } else {//w ww. ja va  2 s.  c  o  m
        kdssmpParameterOptionsImpl.setOption(option);
    }

    if (value == null) {
        kdssmpParameterOptionsImpl.setValue(StringPool.BLANK);
    } else {
        kdssmpParameterOptionsImpl.setValue(value);
    }

    kdssmpParameterOptionsImpl.resetOriginalValues();

    return kdssmpParameterOptionsImpl;
}

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

License:Open Source License

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

    if (option == null) {
        objectOutput.writeUTF(StringPool.BLANK);
    } else {/*w  w w. j a v a  2s  .co m*/
        objectOutput.writeUTF(option);
    }

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

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

License:Open Source License

@Override
public String getOption() {
    if (_option == null) {
        return StringPool.BLANK;
    } else {/*from   w w w  . java 2  s . c  o  m*/
        return _option;
    }
}

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

License:Open Source License

@Override
public KdssmpPatient toEntityModel() {
    KdssmpPatientImpl kdssmpPatientImpl = new KdssmpPatientImpl();

    kdssmpPatientImpl.setPatientId(patientId);
    kdssmpPatientImpl.setOrganizationId(organizationId);

    if (firstname == null) {
        kdssmpPatientImpl.setFirstname(StringPool.BLANK);
    } else {//w  ww  .  jav  a 2s .c o m
        kdssmpPatientImpl.setFirstname(firstname);
    }

    if (lastname == null) {
        kdssmpPatientImpl.setLastname(StringPool.BLANK);
    } else {
        kdssmpPatientImpl.setLastname(lastname);
    }

    if (gender == null) {
        kdssmpPatientImpl.setGender(StringPool.BLANK);
    } else {
        kdssmpPatientImpl.setGender(gender);
    }

    if (dateofbirth == Long.MIN_VALUE) {
        kdssmpPatientImpl.setDateofbirth(null);
    } else {
        kdssmpPatientImpl.setDateofbirth(new Date(dateofbirth));
    }

    if (dateofdeath == Long.MIN_VALUE) {
        kdssmpPatientImpl.setDateofdeath(null);
    } else {
        kdssmpPatientImpl.setDateofdeath(new Date(dateofdeath));
    }

    kdssmpPatientImpl.resetOriginalValues();

    return kdssmpPatientImpl;
}

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

License:Open Source License

@Override
public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(patientId);/* ww w . ja v  a 2  s.  c  o  m*/
    objectOutput.writeLong(organizationId);

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

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

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

    objectOutput.writeLong(dateofbirth);
    objectOutput.writeLong(dateofdeath);
}

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

License:Open Source License

@Override
public String getFirstname() {
    if (_firstname == null) {
        return StringPool.BLANK;
    } else {//  w  w  w.  j  a  va  2  s .  c o m
        return _firstname;
    }
}

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

License:Open Source License

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

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

License:Open Source License

@Override
public String getGender() {
    if (_gender == null) {
        return StringPool.BLANK;
    } else {/* ww w  .j  av  a2  s .c om*/
        return _gender;
    }
}

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

License:Open Source License

@Override
public KdssmpRules toEntityModel() {
    KdssmpRulesImpl kdssmpRulesImpl = new KdssmpRulesImpl();

    kdssmpRulesImpl.setRuleId(ruleId);// w  w w .ja  va  2s  .  c  o m

    if (rule == null) {
        kdssmpRulesImpl.setRule(StringPool.BLANK);
    } else {
        kdssmpRulesImpl.setRule(rule);
    }

    kdssmpRulesImpl.resetOriginalValues();

    return kdssmpRulesImpl;
}

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

License:Open Source License

@Override
public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(ruleId);/*  ww w .j a v  a2s . c  o  m*/

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