List of usage examples for org.springframework.util Assert hasLength
@Deprecated public static void hasLength(@Nullable String text)
From source file:org.pentaho.platform.plugin.services.importexport.legacy.DbSolutionRepositoryImportSource.java
/** * @return//from w w w .j a v a2s . co m */ public Iterable<IRepositoryFileBundle> getFiles() { Assert.hasLength(requiredCharset); return new Iterable<IRepositoryFileBundle>() { public Iterator<IRepositoryFileBundle> iterator() { return new RepositoryFileBundleIterator(); } }; }
From source file:org.pentaho.platform.plugin.services.security.userrole.ldap.transform.GrantedAuthorityToString.java
public void setRolePrefix(final String rolePrefix) { Assert.hasLength(rolePrefix); this.rolePrefix = rolePrefix; }
From source file:org.pentaho.platform.plugin.services.security.userrole.ldap.transform.SearchResultToAttrValueList.java
public void afterPropertiesSet() throws Exception { Assert.hasLength(attributeName); }
From source file:org.pentaho.platform.repository2.unified.jcr.JcrRepositoryFileDao.java
/** * {@inheritDoc}//from w w w .j a v a 2s.c o m */ @Override @SuppressWarnings("unchecked") public List<RepositoryFile> getDeletedFiles(final String origParentFolderPath, final String filter) { Assert.hasLength(origParentFolderPath); return (List<RepositoryFile>) jcrTemplate.execute(new JcrCallback() { @Override public Object doInJcr(final Session session) throws RepositoryException, IOException { PentahoJcrConstants pentahoJcrConstants = new PentahoJcrConstants(session); return deleteHelper.getDeletedFiles(session, pentahoJcrConstants, origParentFolderPath, filter); } }); }
From source file:org.springframework.richclient.application.support.flexdock.FlexConfigurationManager.java
public void ensureInizialized() { if (config == null) { Assert.hasLength(persistentFileName); Assert.hasLength(defaultLayoutLocation); //create resource loader File persistentFile = new File(persistentFileName); if (persistentFile.exists()) { configResource = new FileSystemResource(persistentFile); } else {// w w w . j a v a2 s.c om configResource = new DefaultResourceLoader().getResource(defaultLayoutLocation); } try { Assert.notNull(configResource, "Default layout location " + defaultLayoutLocation + " not found"); //load view list viewList = new ArrayList(); viewList = new ViewConfiguration().parse(new InputSource(configResource.getInputStream())); //load conifuration config = ConfigurationManager.load(configResource.getURL()); } catch (IOException e) { e.printStackTrace(); } } }