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.bibbox.reactjsservice.model.impl.ToolInformationCacheModel.java

License:Open Source License

@Override
public ToolInformation toEntityModel() {
    ToolInformationImpl toolInformationImpl = new ToolInformationImpl();

    toolInformationImpl.setToolInformationId(toolInformationId);

    if (gitUUID == null) {
        toolInformationImpl.setGitUUID(StringPool.BLANK);
    } else {//  www .  j a v  a 2 s  . c om
        toolInformationImpl.setGitUUID(gitUUID);
    }

    if (logourl == null) {
        toolInformationImpl.setLogourl(StringPool.BLANK);
    } else {
        toolInformationImpl.setLogourl(logourl);
    }

    if (name == null) {
        toolInformationImpl.setName(StringPool.BLANK);
    } else {
        toolInformationImpl.setName(name);
    }

    if (category == null) {
        toolInformationImpl.setCategory(StringPool.BLANK);
    } else {
        toolInformationImpl.setCategory(category);
    }

    if (company == null) {
        toolInformationImpl.setCompany(StringPool.BLANK);
    } else {
        toolInformationImpl.setCompany(company);
    }

    if (demourl == null) {
        toolInformationImpl.setDemourl(StringPool.BLANK);
    } else {
        toolInformationImpl.setDemourl(demourl);
    }

    if (downloadurl == null) {
        toolInformationImpl.setDownloadurl(StringPool.BLANK);
    } else {
        toolInformationImpl.setDownloadurl(downloadurl);
    }

    if (toolId == null) {
        toolInformationImpl.setToolId(StringPool.BLANK);
    } else {
        toolInformationImpl.setToolId(toolId);
    }

    if (platform == null) {
        toolInformationImpl.setPlatform(StringPool.BLANK);
    } else {
        toolInformationImpl.setPlatform(platform);
    }

    if (license == null) {
        toolInformationImpl.setLicense(StringPool.BLANK);
    } else {
        toolInformationImpl.setLicense(license);
    }

    if (description == null) {
        toolInformationImpl.setDescription(StringPool.BLANK);
    } else {
        toolInformationImpl.setDescription(description);
    }

    toolInformationImpl.resetOriginalValues();

    return toolInformationImpl;
}

From source file:at.bibbox.reactjsservice.model.impl.ToolInformationCacheModel.java

License:Open Source License

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

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

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

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

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

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

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

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

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

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

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

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

From source file:at.bibbox.reactjsservice.model.impl.ToolInformationModelImpl.java

License:Open Source License

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

From source file:at.bibbox.reactjsservice.model.impl.ToolInformationModelImpl.java

License:Open Source License

@JSON
@Override/*ww w .j av  a 2s  .  co  m*/
public String getLogourl() {
    if (_logourl == null) {
        return StringPool.BLANK;
    } else {
        return _logourl;
    }
}

From source file:at.bibbox.reactjsservice.model.impl.ToolInformationModelImpl.java

License:Open Source License

@JSON
@Override/*from w  w  w  .  j av a2  s.  co  m*/
public String getName() {
    if (_name == null) {
        return StringPool.BLANK;
    } else {
        return _name;
    }
}

From source file:at.bibbox.reactjsservice.model.impl.ToolInformationModelImpl.java

License:Open Source License

@JSON
@Override/*from  w  w w  .  j a  v a  2 s  .  co m*/
public String getCategory() {
    if (_category == null) {
        return StringPool.BLANK;
    } else {
        return _category;
    }
}

From source file:at.bibbox.reactjsservice.model.impl.ToolInformationModelImpl.java

License:Open Source License

@JSON
@Override//  w  w w  . j  av  a 2s  .  com
public String getCompany() {
    if (_company == null) {
        return StringPool.BLANK;
    } else {
        return _company;
    }
}

From source file:at.bibbox.reactjsservice.model.impl.ToolInformationModelImpl.java

License:Open Source License

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

From source file:at.bibbox.reactjsservice.model.impl.ToolInformationModelImpl.java

License:Open Source License

@JSON
@Override/*  w  w w  . j a va2 s.  c  om*/
public String getDownloadurl() {
    if (_downloadurl == null) {
        return StringPool.BLANK;
    } else {
        return _downloadurl;
    }
}

From source file:at.bibbox.reactjsservice.model.impl.ToolInformationModelImpl.java

License:Open Source License

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