diff --git a/src/main/java/com/letterpaw/soap/service/UserPremiumService.java b/src/main/java/com/letterpaw/soap/service/UserPremiumService.java index c5c36f59dc53dde5d8f0526e05b10ce913bde3a3..12df860cd9b3f0e4cb3b656932089ddc61c75557 100644 --- a/src/main/java/com/letterpaw/soap/service/UserPremiumService.java +++ b/src/main/java/com/letterpaw/soap/service/UserPremiumService.java @@ -6,6 +6,7 @@ import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebResult; import javax.jws.WebService; +import java.sql.SQLException; import java.util.List; @WebService @@ -13,25 +14,29 @@ public interface UserPremiumService { @WebMethod(operationName = "registerPremium") @WebResult(name = "premiumRequest") - public String registerPremium(@WebParam(name = "userId") int userId, @WebParam(name = "email") String email); + public String registerPremium(@WebParam(name = "userId") int userId, @WebParam(name = "email") String email) throws SQLException; @WebMethod(operationName = "checkStatus") @WebResult(name = "userStatus") - public String checkStatus(@WebParam(name = "userId") int userId); + public String checkStatus(@WebParam(name = "userId") int userId) throws SQLException; @WebMethod(operationName = "cancelRegister") @WebResult(name = "responseCancel") - public String cancelRegister(@WebParam(name = "userId") int userId); + public String cancelRegister(@WebParam(name = "userId") int userId) throws SQLException; @WebMethod(operationName = "approvePremium") @WebResult(name = "approvalResponse") - public String approvePremium(@WebParam(name = "userId") int userId); + public String approvePremium(@WebParam(name = "userId") int userId) throws SQLException; @WebMethod(operationName = "rejectPremium") @WebResult(name = "rejectionResponse") - public String rejectPremium(@WebParam(name = "userId") int userId); + public String rejectPremium(@WebParam(name = "userId") int userId) throws SQLException; @WebMethod(operationName = "getAllPremium") @WebResult(name = "listUserPremium") - public List<UserPremium> getAllPremium(); + public List<UserPremium> getAllPremium() throws SQLException; + + @WebMethod(operationName = "getAllPending") + @WebResult(name = "listUserPending") + public List<UserPremium> getAllPending() throws SQLException; }