Suzii / pb138-cv_generator

Repository for CV generator - PB138 semestral project.
0 stars 0 forks source link

User and CV service #4

Open Suzii opened 9 years ago

Suzii commented 9 years ago

Implement two interfaces providing User and CV service to application server backend. Users will be stored in XML file with structure something like <users> <user> <login>Anicka</login> <password-hash>MD5checksum</password-hash> </user> </users>

Classes will use provided XML transformator and will also utilize with Xml2Json and JSon2Xml interfaces.

cypo721 commented 9 years ago

User interface is now implemented and functionable. It is going to be tested to find bugs.

Suzii commented 9 years ago

User service functionality tested, seems to be OK. CvService needs to handle all exceptions and log them appropriately. Logging of all store/retrieve actions in debug mode should be implemented as well.

cypo721 commented 9 years ago

CVService is fully implemented. Generating of PDF is functionable.

Suzii commented 9 years ago

Initial configuration of whole application has been changed. Paths to pb138-database folder as well as folder with pdflatex.exe file should be now injected to services upon their instantiation. Changes to be implemented:

  1. UserServiceImpl constructor must accept String parameter with path to db folder. 2 CvServiceImpl constructor must accept String parameters with path to db folder and path to folder contining pdflatex.exe file
Suzii commented 9 years ago

When generate pfd method is called and no XY.xml file for XY login exists - exception is thrown. Plealse, check this use case and return null instead of throwing an exception.

cypo721 commented 9 years ago

Both constructors are prepared to accept string parameters with path to database folder and path to pdflatex folder. Also checking of existing xml file for given login is done.

cypo721 commented 9 years ago

Now both services are tested with unit tests.