[seam-commits] Seam SVN: r12762 - branches/enterprise/JBPAPP_5_0/examples/seambay/src/org/jboss/seam/example/seambay.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Thu May 20 09:00:15 EDT 2010
Author: manaRH
Date: 2010-05-20 09:00:14 -0400 (Thu, 20 May 2010)
New Revision: 12762
Modified:
branches/enterprise/JBPAPP_5_0/examples/seambay/src/org/jboss/seam/example/seambay/AuctionService.java
Log:
cleared warnings in src
Modified: branches/enterprise/JBPAPP_5_0/examples/seambay/src/org/jboss/seam/example/seambay/AuctionService.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/examples/seambay/src/org/jboss/seam/example/seambay/AuctionService.java 2010-05-20 03:13:45 UTC (rev 12761)
+++ branches/enterprise/JBPAPP_5_0/examples/seambay/src/org/jboss/seam/example/seambay/AuctionService.java 2010-05-20 13:00:14 UTC (rev 12762)
@@ -16,15 +16,17 @@
@WebService(name = "AuctionService", serviceName = "AuctionService")
public class AuctionService implements AuctionServiceRemote
{
+ @Override
@WebMethod
public boolean login(String username, String password)
{
- Identity.instance().setUsername(username);
- Identity.instance().setPassword(password);
+ Identity.instance().getCredentials().setUsername(username);
+ Identity.instance().getCredentials().setPassword(password);
Identity.instance().login();
return Identity.instance().isLoggedIn();
}
+ @Override
@WebMethod
public boolean logout()
{
@@ -32,6 +34,7 @@
return !Identity.instance().isLoggedIn();
}
+ @Override
@WebMethod @Restrict("#{identity.loggedIn}")
public Category[] listCategories()
{
@@ -43,6 +46,7 @@
return categories.toArray(new Category[categories.size()]);
}
+ @Override
@WebMethod
public void createAuction(String title, String description, int categoryId)
{
@@ -51,30 +55,35 @@
action.setDetails(title, description, categoryId);
}
+ @Override
@WebMethod
public Auction getNewAuctionDetails()
{
return getAuctionAction().getAuction();
}
+ @Override
@WebMethod
public void updateAuctionDetails(String title, String description, int categoryId)
{
getAuctionAction().setDetails(title, description, categoryId);
}
+ @Override
@WebMethod
public void setAuctionDuration(int days)
{
getAuctionAction().setDuration(days);
}
+ @Override
@WebMethod
public void setAuctionPrice(double price)
{
getAuctionAction().getAuction().setStartingPrice(price);
}
+ @Override
@WebMethod
public void confirmAuction()
{
@@ -86,6 +95,7 @@
return (AuctionAction) Component.getInstance(AuctionAction.class, true);
}
+ @Override
@WebMethod
public Auction[] findAuctions(String searchTerm)
{
More information about the seam-commits
mailing list