public CmsProjectBean getProjectBean(CmsObject cms, Map<String, String> params) {

        if (CmsStringUtil.isEmptyOrWhitespaceOnly(params.get(CmsPublishOptions.PARAM_FILES))) {
            return null;
        }

        Locale locale = OpenCms.getWorkplaceManager().getWorkplaceLocale(cms);
        String name = Messages.get().getBundle(locale).key(Messages.GUI_PROJECT_DIRECT_PUBLISH_0);
        CmsProjectBean bean = new CmsProjectBean(ID, 0, name, name);

        bean.setRank(150);
        bean.setDefaultGroupName(name);
        return bean;
    }
public CmsProjectBean getProjectBean ( CmsObject cms , Map < String , String > params ) { if ( CmsStringUtil . isEmptyOrWhitespaceOnly ( params . get ( CmsPublishOptions . PARAM_FILES ) ) ) { return null ; } Locale locale = OpenCms . getWorkplaceManager ( ) . getWorkplaceLocale ( cms ) ; String name = Messages . get ( ) . getBundle ( locale ) . key ( Messages . GUI_PROJECT_DIRECT_PUBLISH_0 ) ; CmsProjectBean bean = new CmsProjectBean ( ID , 0 , name , name ) ; bean . setRank ( 150 ) ; bean . setDefaultGroupName ( name ) ; return bean ; }
@see org.opencms.ade.publish.I_CmsVirtualProject#getProjectBean(org.opencms.file.CmsObject, java.util.Map)