Examples of DecoratorOUPropertiesDefinition


Examples of org.dspace.app.cris.model.jdyna.DecoratorOUPropertiesDefinition

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

    DecoratorOUPropertiesDefinition metadato = (DecoratorOUPropertiesDefinition) 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]*$");
       
    if (result && shortName.length()!=0) {

      ValidationResult result2 = null;

      // verifica se e' unica
      // controllo sul db che non ci siano shortname uguali
      result2 = validatorService.checkShortName(
          metadato.getObject().getClass(), metadato.getObject());
      if (!result2.isSuccess())
        errors.rejectValue("shortName", result2.getMessage());

    } else {
      errors.rejectValue("shortName",
View Full Code Here

Examples of org.dspace.app.cris.model.jdyna.DecoratorOUPropertiesDefinition

            }

            
            if (cont instanceof DecoratorOUPropertiesDefinition)
            {
                DecoratorOUPropertiesDefinition decorator = (DecoratorOUPropertiesDefinition) cont;
                result += ResearcherTagLibraryFunctions.countDynamicPublicMetadata(
                        p.getDynamicField(), decorator.getShortName(),
                        decorator.getRendering(), decorator.getReal(),
                        false);
            }
            

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.