Beispiel #1
0
 /*
  * (non-Javadoc)
  *
  * @see java.lang.Object#hashCode()
  */
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + (dataType == null ? 0 : dataType.hashCode());
   result = prime * result + (plateforme == null ? 0 : plateforme.hashCode());
   result = prime * result + (projet == null ? 0 : projet.hashCode());
   result =
       prime * result + (projetSiteThemeDatatype == null ? 0 : projetSiteThemeDatatype.hashCode());
   result = prime * result + (site == null ? 0 : site.hashCode());
   result = prime * result + (theme == null ? 0 : theme.hashCode());
   return result;
 }
Beispiel #2
0
 @Override
 public String getDepositPlacePrefixForFileName() {
   final String siteName =
       getSite()
           .getPath()
           .replaceAll(
               AbstractRecurentObject.CST_PROPERTY_RECURENT_SEPARATOR,
               AbstractRecurentObject.CST_PROPERTY_RECURENT_SEPARATOR_IN_SITE_NAME);
   return new StringBuilder(projet.getCode())
       .append(AbstractRecurentObject.CST_PROPERTY_RECURENT_SEPARATOR_IN_FILE_NAME)
       .append(siteName)
       .append(AbstractRecurentObject.CST_PROPERTY_RECURENT_SEPARATOR_IN_FILE_NAME)
       .append(Utils.createCodeFromString(getName()))
       .toString();
 }
Beispiel #3
0
 /*
  * (non-Javadoc)
  *
  * @see org.inra.ecoinfo.refdata.node.INode#getPath()
  */
 @Override
 public String getPath() {
   return String.format(
       "%s/%s/%s/%s", dataType.getCode(), projet.getCode(), theme.getCode(), plateforme.getCode());
 }