| org.objectweb.salome_tmf.api.sql.ISQLAction
All known Subclasses: org.objectweb.salome_tmf.soap.SQLActionSoapBindingStub, org.objectweb.salome_tmf.databaseSQL.SQLAction,
Method Summary | |
public int | addFileAttach(int idBddAction, SalomeFileWrapper file, String description) | public int | addUrlAttach(int idBddAction, String strUrl, String description) | public void | addUseParam(int idBddAction, int idBddParam) | public void | delete(int idBddAction) | public void | delete(int idBddAction, boolean reorder) | public void | deleteAllAttachment(int idBddAction) | public void | deleteAttachment(int idBddAction, int idBddAttach) | public void | deleteParamUse(int idBddAction, int idBddParam) | public ActionWrapper | getActionWrapper(int idBddAction) | public FileAttachementWrapper[] | getAllAttachFile(int idBddAction) | public UrlAttachementWrapper[] | getAllAttachUrl(int idBddAction) | public int | getID(int testId, String actionName) | public ParameterWrapper[] | getParamsUses(int idBddAction) | public int | insert(int idBddTest, String name, String description, String awaitedResult) | public void | update(int idBddAction, String newActionName, String newActionDesc, String newActionResAttendu) | public int | updateOrder(int idBddAction, boolean inc) |
addFileAttach | public int addFileAttach(int idBddAction, SalomeFileWrapper file, String description) throws Exception(Code) | | Insert a file to the action identifeid by idBddAction
Parameters: idBddAction - Parameters: file - Parameters: description - the id of the attachment in the table ATTACHEMENT throws: Exception - no permission needed See Also: SQLFileAttachment.insert(File, String) |
addUrlAttach | public int addUrlAttach(int idBddAction, String strUrl, String description) throws Exception(Code) | | Insert a UrlAttachment to the action identifeid by idBddAction
Table used are ATTACHEMENT and ACTION_ATTACHEMENT
Parameters: idBddAction - Parameters: strUrl - Parameters: description - the id of the attachment in the table ATTACHEMENT throws: Exception - no permission needed See Also: SQLUrlAttachment.insert(String, String) |
addUseParam | public void addUseParam(int idBddAction, int idBddParam) throws Exception(Code) | | insert in table ACTION_PARAM_TEST the use of the parameter identifed by idBddParam for the action idBddAction
WARNING This methode don't insert the reference of idBddParam int the table CAS_PARAM_TEST
Parameters: idBddAction - Parameters: idBddParam - throws: Exception - See Also: |
delete | public void delete(int idBddAction) throws Exception(Code) | | Delete in database the action identified by idBddAction
this delete all Attachemnts, reference of using parameters,
and update the order of the actions which are referenced in the same test
Parameters: idBddAction - throws: Exception - See Also: deleteAllAttachment(int) See Also: need permission canDeleteTest |
delete | public void delete(int idBddAction, boolean reorder) throws Exception(Code) | | Delete in database the action identified by idBddAction
this delete all Attachemnts, reference of using parameters,
and update the order of the actions which are referenced in the same test if reorder = true
Parameters: idBddAction - Parameters: reorder - re-order the actions in the test throws: Exception - See Also: deleteAllAttachment(int) See Also: need permission canDeleteTest |
deleteAllAttachment | public void deleteAllAttachment(int idBddAction) throws Exception(Code) | | Delete all Attachement of an action identied by idBddAction in database
Delete reference in table : ATTACHEMENT and ACTION_ATTACHEMENT
Parameters: idBddAction - throws: Exception - |
deleteAttachment | public void deleteAttachment(int idBddAction, int idBddAttach) throws Exception(Code) | | Delete Attchement identidied by idBddAttach int ATTACHEMNT table and reference in ACTION_ATTACHEMENT
Parameters: idBddAction - : unique identifier of the action in database Parameters: idBddAttach - : unique identifier of the attachment in database throws: Exception - need permission canDeleteTest |
deleteParamUse | public void deleteParamUse(int idBddAction, int idBddParam) throws Exception(Code) | | Delete the reference of the use parameter idBddParam in action, but not delete the
parameter to the database
Parameters: idBddAction - : unique identifier of the action in database Parameters: idBddParam - : unique identifier of the parameter in database throws: Exception - need permission canDeleteTest |
getActionWrapper | public ActionWrapper getActionWrapper(int idBddAction) throws Exception(Code) | | Return a wrapped action represented by idBddAction in database
Parameters: idBddAction - : unique identifier of the action in database Return a wrapped action represented by idBddAction in database throws: Exception - no permission needed |
getID | public int getID(int testId, String actionName) throws Exception(Code) | | Return the Id of an action called name in the test identified by testId
Parameters: testId - Parameters: actionName - the Id of an action called name in the test identified by testId throws: Exception - no permission needed |
getParamsUses | public ParameterWrapper[] getParamsUses(int idBddAction) throws Exception(Code) | | Return an Array of ParameterWrapper used by an action identified by idBddAction
Parameters: idBddAction - : unique identifier of the action in database a Vector of java.lang.String contening all parameters names used by this action throws: Exception - no permission needed |
insert | public int insert(int idBddTest, String name, String description, String awaitedResult) throws Exception(Code) | | Insert an Action in the table ACTION_TEST for the test identified by idBddTest
Parameters: idBddTest - Parameters: name - : name of the action Parameters: description - : description of the action Parameters: awaitedResult - : awaited result of the action the id of the new action throws: Exception - need canCreateTest permission |
update | public void update(int idBddAction, String newActionName, String newActionDesc, String newActionResAttendu) throws Exception(Code) | | Update the information of an action identified by idBddAction in database (ACTION_TEST)
Parameters: idBddAction - Parameters: newActionName - Parameters: newActionDesc - Parameters: newActionResAttendu - throws: Exception - need permission canUpdateTest |
updateOrder | public int updateOrder(int idBddAction, boolean inc) throws Exception(Code) | | Increment or decrement the order of the action identified by idBddAction in the test
Then, reorder other action to preserve a correct order
Parameters: idBddAction - Parameters: inc - true for doind a decrementation (+1) or false (-1) the new order of the action throws: Exception - need permission canUpdateTest |
|
|