Package it.cilea.osd.jdyna.web

Examples of it.cilea.osd.jdyna.web.Tab


 
 
  @Override
  public void validate(Object object, Errors errors) {

    Tab metadato = (Tab) object;

    // lo shortname non puo' essere vuoto

    String shortName = metadato.getShortName();

    // validazione shortname...deve essere unico e non nullo e formato solo da caratteri
    // alfabetici da 'a-zA-Z','_' e '-'
    boolean result = (shortName != null) && shortName.matches("^[a-z_\\-A-Z]*$");
       
 
View Full Code Here


       
        String contentType = "";
        String ext = "";

        Tab tab = applicationService.get(Tab.class, Integer.parseInt(tabId));
        ext = tab.getExt();
        contentType = tab.getMime();
        if (ext != null && !ext.isEmpty() && contentType != null
                && !contentType.isEmpty())
        {
            File image = new File(
                    tab.getFileSystemPath()
                            + File.separatorChar
                            + AFormTabController.DIRECTORY_TAB_ICON
                            + File.separatorChar
                            + AFormTabController.PREFIX_TAB_ICON
                            + tabId
View Full Code Here

TOP

Related Classes of it.cilea.osd.jdyna.web.Tab

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.