Java Doc for OlstoreImpl.java in  » J2EE » JOnAS-4.8.6 » olstore » domain » logic » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » JOnAS 4.8.6 » olstore.domain.logic 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   olstore.domain.logic.OlstoreImpl

OlstoreImpl
public class OlstoreImpl implements OlstoreFacade(Code)
The implementation of the OlstoreFacade class, used for interacting with the backend beans without directly referencing objects that can be replaced. Actions are done through Manager classes which wrap the classes that can be removed and replaced with new implementations.




Method Summary
public  voidcreateUser(UserValue user, AddressValue address)
     Creates a new user with the given values and address.
public  CollectionfindByMainPage()
     Returns all items that have been marked for the main page.
public  CollectionfindByMainPageAndFriendsOf(String username)
     Finds all items that have been marked for the main page, and have been purchased by friends of the user.
Parameters:
  username - the user's name.
public  CollectionfindByMainPageAndSpecialOffer()
     Finds all items that have been marked for the main page, and are on special.
public  CollectionfindOrdersForUpdate()
     Returns a collection of all orders whose status can be updated.
public  CollectiongetAll()
     Returns all items in the database.
public  CollectiongetAllUsers()
     Returns all users in the database.
public  StringgetDefaultType()
     Returns the default type.
public  MapgetFriendsMap(String username, Collection items)
     Get a map of all the friends of the current user for each one of the items in the collection.
public  ItemValuegetItemById(String itemId)
     Returns an ItemValue that matches the given ID.
Parameters:
  itemId - the ID of the item to be returned.
public  CollectiongetItemsByType(String type)
     Returns all items of the given type.
Parameters:
  type - the type of item being requested.
public  CollectiongetOrders(String username)
     Returns a collection of all orders placed by the user.
Parameters:
  username - the user whose orders we are returning.
public  PictureValuegetPictureById(String itemId)
     Returns a PictureValue that matches the given item's ID.
Parameters:
  itemId - the ID for the item whose picture is to be returned.
public  CollectiongetPropertiesForType(String type)
     Returns a collection of properties for the given type.
Parameters:
  type - the type whose properties will be returned.
public  CartManagergetShoppingCart(String username)
     Returns a cart manager for the given user.
Parameters:
  username - the username for the desired user's cart.
public  CollectiongetTypes()
     Returns a list of all types that are available.
public  UserValuegetUser(String username)
     Returns the user value for username.
Parameters:
  username - the users name to return.
public  CollectiongetUserPurchased(String username)
     Returns all items that have been purchased by the user.
Parameters:
  username - the name of the user.
public  booleanisPopulated()
     Returns if the database has been populated.
public  voidmarkItemAsInteresting(Integer itemId, String user)
     Record this item as interesting to the user.
public  voidsaveItem(ItemValue item)
     Saves the item given into the backend storage.
public  voidsaveType(TypeValue type)
     Saves the type given into the backend storage.
public  voidsaveUser(UserValue user, AddressValue address, String username)
     Saves the user given into backend storage.
public  voidsetDefaultType(String type)
    
public  voidsetItemManager(ItemManager item)
    
public  voidsetOrderManager(OrderManager order)
    
public  voidsetShoppingCart(ShoppingCartLocalHome cart)
    
public  voidsetStatus(Integer id, String status)
     Sets the status of the order given by ID with the given status.
public  voidsetTypeManager(TypeManager type)
    
public  voidsetUserManager(UserManager user)
    



Method Detail
createUser
public void createUser(UserValue user, AddressValue address) throws Exception(Code)
Creates a new user with the given values and address.
Parameters:
  user - the user's information.
Parameters:
  address - the user's address information.



findByMainPage
public Collection findByMainPage()(Code)
Returns all items that have been marked for the main page. a collection of all items that have been marked for the main page.



findByMainPageAndFriendsOf
public Collection findByMainPageAndFriendsOf(String username)(Code)
Finds all items that have been marked for the main page, and have been purchased by friends of the user.
Parameters:
  username - the user's name. a collection of all items that have been marked for the main page,and have been purchased by friends of the user.



findByMainPageAndSpecialOffer
public Collection findByMainPageAndSpecialOffer()(Code)
Finds all items that have been marked for the main page, and are on special. a collection of all items that have been marked for the main page and areon special.



findOrdersForUpdate
public Collection findOrdersForUpdate()(Code)
Returns a collection of all orders whose status can be updated. collection of all orders whose status can be updated.



getAll
public Collection getAll()(Code)
Returns all items in the database. all items in the database as a Collection.



getAllUsers
public Collection getAllUsers()(Code)
Returns all users in the database. a Collection of all users in the database.



getDefaultType
public String getDefaultType()(Code)
Returns the default type. the default type.



getFriendsMap
public Map getFriendsMap(String username, Collection items)(Code)
Get a map of all the friends of the current user for each one of the items in the collection.
Parameters:
  username - the currently logged in user
Parameters:
  items - the items that will be included in the friends map



getItemById
public ItemValue getItemById(String itemId) throws Exception(Code)
Returns an ItemValue that matches the given ID.
Parameters:
  itemId - the ID of the item to be returned. an ItemValue for the item represted by the item ID.



getItemsByType
public Collection getItemsByType(String type)(Code)
Returns all items of the given type.
Parameters:
  type - the type of item being requested. a collection of all items of the requested type.



getOrders
public Collection getOrders(String username)(Code)
Returns a collection of all orders placed by the user.
Parameters:
  username - the user whose orders we are returning. a Collection of all orders by username.



getPictureById
public PictureValue getPictureById(String itemId) throws Exception(Code)
Returns a PictureValue that matches the given item's ID.
Parameters:
  itemId - the ID for the item whose picture is to be returned. a picture that belongs to the item given by itemId.



getPropertiesForType
public Collection getPropertiesForType(String type) throws Exception(Code)
Returns a collection of properties for the given type.
Parameters:
  type - the type whose properties will be returned. a collection of properties for the given type.



getShoppingCart
public CartManager getShoppingCart(String username)(Code)
Returns a cart manager for the given user.
Parameters:
  username - the username for the desired user's cart. a cart manager object that can be used to interact with the user's shopping cart.



getTypes
public Collection getTypes()(Code)
Returns a list of all types that are available. a collection of all types that are available.



getUser
public UserValue getUser(String username)(Code)
Returns the user value for username.
Parameters:
  username - the users name to return. a UserValue representation of the user.



getUserPurchased
public Collection getUserPurchased(String username)(Code)
Returns all items that have been purchased by the user.
Parameters:
  username - the name of the user. a Collection of all items that have been purchased by the user.



isPopulated
public boolean isPopulated()(Code)
Returns if the database has been populated. true if the database isn't empty of users, false otherwise.



markItemAsInteresting
public void markItemAsInteresting(Integer itemId, String user) throws Exception(Code)
Record this item as interesting to the user.
Parameters:
  itemId - the ID of the item the user wants to mark as interesting
Parameters:
  user - the username of the currently logged in user
throws:
  Exception - if there is an error making the change



saveItem
public void saveItem(ItemValue item) throws Exception(Code)
Saves the item given into the backend storage.
Parameters:
  item - the item to save.



saveType
public void saveType(TypeValue type) throws Exception(Code)
Saves the type given into the backend storage.
Parameters:
  type - the type to save.



saveUser
public void saveUser(UserValue user, AddressValue address, String username) throws Exception(Code)
Saves the user given into backend storage.
Parameters:
  user - the user to save.
Parameters:
  address - the address of the user.
Parameters:
  username - the user's name.



setDefaultType
public void setDefaultType(String type)(Code)



setItemManager
public void setItemManager(ItemManager item)(Code)



setOrderManager
public void setOrderManager(OrderManager order)(Code)



setShoppingCart
public void setShoppingCart(ShoppingCartLocalHome cart)(Code)



setStatus
public void setStatus(Integer id, String status)(Code)
Sets the status of the order given by ID with the given status.
Parameters:
  id - the ID of the order.
Parameters:
  status - the new status for the order.



setTypeManager
public void setTypeManager(TypeManager type)(Code)



setUserManager
public void setUserManager(UserManager user)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.