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

License:Open Source License

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

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

License:Open Source License

@JSON
@Override/*  www .j ava2  s.c om*/
public String getWidth() {
    if (_width == null) {
        return StringPool.BLANK;
    } else {
        return _width;
    }
}

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

License:Open Source License

@JSON
@Override/*from  ww  w . j  av a  2 s.  com*/
public String getHeight() {
    if (_height == null) {
        return StringPool.BLANK;
    } else {
        return _height;
    }
}

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

License:Open Source License

@Override
public Icons toEntityModel() {
    IconsImpl iconsImpl = new IconsImpl();

    iconsImpl.setIconsId(iconsId);// w w  w  .jav a 2s . c  o m

    if (iconurl == null) {
        iconsImpl.setIconurl(StringPool.BLANK);
    } else {
        iconsImpl.setIconurl(iconurl);
    }

    if (group == null) {
        iconsImpl.setGroup(StringPool.BLANK);
    } else {
        iconsImpl.setGroup(group);
    }

    iconsImpl.resetOriginalValues();

    return iconsImpl;
}

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

License:Open Source License

@Override
public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(iconsId);/*  www . j a va 2  s .c  om*/

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

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

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

License:Open Source License

@JSON
@Override/*w w  w . j av  a2s. co  m*/
public String getIconurl() {
    if (_iconurl == null) {
        return StringPool.BLANK;
    } else {
        return _iconurl;
    }
}

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

License:Open Source License

@Override
public OrganizationSearchIndex toEntityModel() {
    OrganizationSearchIndexImpl organizationSearchIndexImpl = new OrganizationSearchIndexImpl();

    organizationSearchIndexImpl.setSearchid(searchid);
    organizationSearchIndexImpl.setOrganisationid(organisationid);
    organizationSearchIndexImpl.setLocationid(locationid);

    if (location == null) {
        organizationSearchIndexImpl.setLocation(StringPool.BLANK);
    } else {//ww w  .java  2  s .  c  om
        organizationSearchIndexImpl.setLocation(location);
    }

    if (key == null) {
        organizationSearchIndexImpl.setKey(StringPool.BLANK);
    } else {
        organizationSearchIndexImpl.setKey(key);
    }

    if (searchvalue == null) {
        organizationSearchIndexImpl.setSearchvalue(StringPool.BLANK);
    } else {
        organizationSearchIndexImpl.setSearchvalue(searchvalue);
    }

    organizationSearchIndexImpl.resetOriginalValues();

    return organizationSearchIndexImpl;
}

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

License:Open Source License

@Override
public void writeExternal(ObjectOutput objectOutput) throws IOException {
    objectOutput.writeLong(searchid);/* w  w  w  . j a  va 2s.  c o m*/
    objectOutput.writeLong(organisationid);
    objectOutput.writeLong(locationid);

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

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

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

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

License:Open Source License

@Override
public String getLocation() {
    if (_location == null) {
        return StringPool.BLANK;
    } else {/*from   w w  w  . j  av a 2 s. c o  m*/
        return _location;
    }
}

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

License:Open Source License

@Override
public String getKey() {
    if (_key == null) {
        return StringPool.BLANK;
    } else {/*from ww w  . j  ava  2s . c om*/
        return _key;
    }
}