public static boolean isNotEmpty(String text) { return !isEmpty(text); } }
public static boolean isNotEmpty(String text) { return !isEmpty(text); } }
public static String uncapitalize(String value) { if (StringUtils.isEmpty(value)) { return null; } if (value.length() == 1) { return value.toLowerCase(); } return value.substring(0, 1).toLowerCase() + value.substring(1); }
@Override protected String getOrCreateWindowId(FacesContext facesContext) { String windowId = ClientWindowHelper.getInitialRedirectWindowId(facesContext); if (StringUtils.isEmpty(windowId)) { windowId = getWindowIdParameter(facesContext); } boolean post = isPost(facesContext); if (StringUtils.isEmpty(windowId) && post) { windowId = getWindowIdPostParameter(facesContext); } if (StringUtils.isEmpty(windowId)) { if (jsfModuleConfig.isInitialRedirectEnabled() && !post) { ClientWindowHelper.handleInitialRedirect(facesContext, generateNewWindowId()); facesContext.responseComplete(); windowId = null; } else { windowId = generateNewWindowId(); } } return windowId; }
public String versionField(Class<?> entityClass) { EntityDescriptor entity = find(entityClass); if (entity != null) { if (!StringUtils.isEmpty(entity.getVersion())) { return entity.getVersion(); } AbstractEntityDescriptor parent = entity.getParent(); while (parent != null) { if (!StringUtils.isEmpty(parent.getVersion())) { return parent.getVersion(); } parent = parent.getParent(); } } return null; }
@Override protected String getOrCreateWindowId(FacesContext facesContext) { String windowId = ClientWindowHelper.getInitialRedirectWindowId(facesContext); if (StringUtils.isEmpty(windowId)) { windowId = getWindowIdParameter(facesContext); } boolean post = isPost(facesContext); if (StringUtils.isEmpty(windowId) && post) { windowId = getWindowIdPostParameter(facesContext); } if (StringUtils.isEmpty(windowId)) { if (jsfModuleConfig.isInitialRedirectEnabled() && !post) { ClientWindowHelper.handleInitialRedirect(facesContext, generateNewWindowId()); facesContext.responseComplete(); windowId = null; } else { windowId = generateNewWindowId(); } } return windowId; }
public String versionField(Class<?> entityClass) { EntityDescriptor entity = find(entityClass); if (entity != null) { if (!StringUtils.isEmpty(entity.getVersion())) { return entity.getVersion(); } AbstractEntityDescriptor parent = entity.getParent(); while (parent != null) { if (!StringUtils.isEmpty(parent.getVersion())) { return parent.getVersion(); } parent = parent.getParent(); } } return null; }
if (!StringUtils.isEmpty(authenticatorName))
public static String tableName(Class<?> entityClass, EntityManager entityManager) { String tableName = PersistenceUnitDescriptorProvider.getInstance().entityTableName(entityClass); if (StringUtils.isEmpty(tableName)) { Table tableAnnotation = entityClass.getAnnotation(Table.class); if (tableAnnotation != null && StringUtils.isNotEmpty(tableAnnotation.name())) { return tableAnnotation.name(); } EntityType<?> entityType = entityManager.getMetamodel().entity(entityClass); return entityType.getName(); } return tableName; }
if (!StringUtils.isEmpty(authenticatorName))