Changeset 402 for tapas/service
- Timestamp:
- 03/08/12 17:20:11 (12 years ago)
- Location:
- tapas/service
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tapas/service/implementation/com/ether/TapasServiceImpl.java
r389 r402 3 3 import com.ether.dao.ParameterDAO; 4 4 import com.ether.dao.PlateformDAO; 5 import com.ether.tapas.Tapas; 5 6 import org.apache.commons.logging.Log; 6 7 import org.apache.commons.logging.LogFactory; 7 import org.jdom.*; 8 import org.jdom.Attribute; 9 import org.jdom.Document; 10 import org.jdom.Element; 8 11 import org.jdom.output.Format; 9 12 import org.jdom.output.XMLOutputter; … … 15 18 import java.io.FileOutputStream; 16 19 import java.util.List; 17 import java.util.prefs.Preferences;18 20 19 21 /** … … 25 27 { 26 28 27 public void createXMLRequest() 28 29 public void createXMLRequest( @NotNull final Tapas tapas ) 29 30 { 30 31 String idF = "Ether_TAPAS_0000001"; … … 66 67 } 67 68 68 69 69 public void createXMLFile( final String fichier, final Document document ) 70 70 { … … 83 83 84 84 85 // TODO : supprimer cette méthode --> EXEMPLE 85 86 @Nullable 86 87 @Transactional(readOnly = true) … … 98 99 } 99 100 101 // TODO : supprimer cette méthode --> EXEMPLE 100 102 @Nullable 101 103 @Transactional(readOnly = true) … … 115 117 } 116 118 119 // TODO : supprimer cette méthode --> EXEMPLE 117 120 @Nullable 118 121 @Transactional(readOnly = true) … … 130 133 } 131 134 135 // TODO : supprimer cette méthode --> EXEMPLE 132 136 @Required 133 137 public void setPlateformDAO( final PlateformDAO plateformDAO ) … … 136 140 } 137 141 142 // TODO : supprimer cette méthode --> EXEMPLE 138 143 @Required 139 144 public void setParameterDAO( final ParameterDAO parameterDAO ) … … 144 149 private static final Log LOGGER = LogFactory.getLog( TapasServiceImpl.class ); 145 150 146 151 // TODO : supprimer ces DAO --> EXEMPLES 147 152 private PlateformDAO _plateformDAO; 148 153 private ParameterDAO _parameterDAO; -
tapas/service/interface/com/ether/TapasService.java
r389 r402 1 1 package com.ether; 2 2 3 import com.ether.tapas.Tapas; 3 4 import org.jdom.Document; 4 5 import org.jetbrains.annotations.NotNull; … … 8 9 9 10 /** 10 * @author vmipsl11 * @date 0 7 mar 201111 * @author rboipsl 12 * @date 02 march 2012 12 13 */ 13 14 public interface TapasService 14 15 extends Service 15 16 { 16 17 public void createXMLRequest(); 17 public void createXMLRequest( @NotNull final Tapas tapas ); 18 18 19 19 public void createXMLFile( final String fichier, final Document document ); 20 21 @Nullable22 List<Plateform> getAllPlateforms() throws ServiceException;23 24 @Nullable25 Plateform getPlateformById( @Nullable final Integer plateformId ) throws ServiceException;26 27 @Nullable28 List<Parameter> getAllParametersByPlateformId( @NotNull final Integer plateformId ) throws ServiceException;29 20 } -
tapas/service/test/com/ether/EtherTest.java
r389 r402 2 2 3 3 import org.jetbrains.annotations.NotNull; 4 import org.junit.Assert;5 4 import org.junit.Test; 6 5 … … 11 10 import java.io.File; 12 11 import java.io.Serializable; 13 import java.text.DateFormat;14 12 import java.text.ParseException; 15 import java.text.SimpleDateFormat;16 import java.util.Calendar;17 import java.util.Date;18 13 19 14 /** … … 29 24 { 30 25 31 getService().createXMLRequest( );26 getService().createXMLRequest( null ); 32 27 33 28 }
Note: See TracChangeset
for help on using the changeset viewer.