01: package olstore.session.helper;
02:
03: import olstore.dto.UserValue;
04: import olstore.entity.UserLocal;
05:
06: public interface UserHelper {
07: /**
08: * Used to save the user's information from a DTO back into the user entity bean
09: * @param userValue The DTO storing the user information
10: * @param addressValue The DTO storing the address information
11: * @param username The username of the user
12: */
13: public void SaveUser(olstore.dto.UserValue userValue,
14: olstore.dto.AddressValue addressValue,
15: java.lang.String username) throws java.lang.Exception;
16:
17: /**
18: * Return the user's DTO when the username is passed to it
19: * @param username The username of the user
20: * @return The DTO for the user
21: */
22: public olstore.dto.UserValue getUserValue(java.lang.String username)
23: throws java.lang.Exception;
24:
25: /**
26: * Creates a new user entity bean
27: * @param createUserValue The DTO for the User
28: * @param addressValue The DTO for the User's Address
29: */
30: public void CreateUser(olstore.dto.CreateUserValue createUserValue,
31: olstore.dto.AddressValue addressValue)
32: throws java.lang.Exception;
33:
34: /**
35: * Method to copy the user's information from the
36: * user entity bean to the userValue dto.
37: *
38: * @param user The user to get the information from.
39: * @return The userValue dto.
40: * @throws Exception
41: */
42: public olstore.dto.UserValue UserToDTO(UserLocal user)
43: throws Exception;
44: }
|