Example usage for org.apache.shiro.util StringUtils EMPTY_STRING

List of usage examples for org.apache.shiro.util StringUtils EMPTY_STRING

Introduction

In this page you can find the example usage for org.apache.shiro.util StringUtils EMPTY_STRING.

Prototype

String EMPTY_STRING

To view the source code for org.apache.shiro.util StringUtils EMPTY_STRING.

Click Source Link

Document

Constant representing the empty string, equal to ""

Usage

From source file:com.flowlogix.ejb.JNDIConfigurer.java

License:Apache License

public JNDIObjectLocator buildLocator() throws NamingException {
    return buildLocator(StringUtils.EMPTY_STRING);
}

From source file:com.inet.xportal.calbuilder.cmmservice.MainboardCalViewDataservice.java

License:Open Source License

@Override
protected WebDataService service(final AbstractBaseAction action, final Map<String, Object> params)
        throws WebOSBOException {
    FirmProfileDTO subfirm = subfirmBO.loadByPrefix(action.getFirmPrefix());
    if (subfirm == null) {
        subfirm = WebContext.INSTANCE.cache().getBean(SiteBO.class).load(action.getSiteID());

        subfirm.setPrefix(WebContext.INSTANCE.cache().getWebContext());
    }//w w  w.j  a  va  2s  . c  o  m

    SearchDTO<CalElement> result = null;
    int[] ymwd = CalElementUtil.ymwd();
    // get current year (if missed)
    int year = XParamUtils.getInteger("year", params, ymwd[0]);
    // get day report
    int day = XParamUtils.getInteger("day", params, -1);
    if (day == -1) {
        // get current week (if missed)
        result = elementBO.weekFirm(subfirm.getUuid(), StringUtils.EMPTY_STRING, year,
                XParamUtils.getInteger("week", params, ymwd[2]), 1);
    } else {
        result = elementBO.dayFirm(subfirm.getUuid(), StringUtils.EMPTY_STRING, year, day, 1);
    }

    if (result == null)
        result = new SearchDTO<CalElement>();

    return new ObjectWebDataservice<SearchDTO<CalElement>>(result);
}