Changeset 440 for tapas/web/src/com/ether/Controller.java
- Timestamp:
- 03/26/12 17:00:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tapas/web/src/com/ether/Controller.java
r420 r440 7 7 import com.ether.tapas.Observatory; 8 8 import com.ether.tapas.Tapas; 9 import com.ether.user.User; 9 10 import com.ether.user.UserRole; 10 11 import net.sf.json.JSONObject; 11 12 import org.apache.commons.logging.Log; 12 13 import org.apache.commons.logging.LogFactory; 14 import org.jetbrains.annotations.NotNull; 13 15 14 16 import java.util.ArrayList; … … 33 35 throws WebException 34 36 { 35 36 37 try 37 38 { … … 58 59 /** *********************** CALLS ***************************** **/ 59 60 /** *********************************************************** **/ 60 @ControllerMethod(jsonResult = true )61 public JSONObject createUserRequest( @ParamName("jsonTapas") @Mandatory @UseJSON final Tapas javaTapas )61 @ControllerMethod(jsonResult = true, userMandatory = true) 62 public JSONObject createUserRequest( @ParamName("jsonTapas") @Mandatory @UseJSON final Tapas javaTapas, @NotNull final User user ) // TODO rajouter parametre USER 62 63 throws WebException 63 64 { … … 65 66 throw new WebException( WebException.WebCode.ERROR_JSON_TAPAS_IS_NULL, "Serialization error : jsonTapas is null", WebException.getExceptionThrowable() ); 66 67 68 //TODO recuperer le USER via ControllerEther 69 67 70 //appel a createxml 68 getTapasService().createXMLRequest( javaTapas ); 71 getTapasService().createXMLRequest( javaTapas ); // en 2ieme parametre 72 73 //appel a runtime 74 //mettre une methode dans tapas service pour appel au shell system 75 69 76 70 77 final JSONObject result = new JSONObject();
Note: See TracChangeset
for help on using the changeset viewer.