ics491_timesheet's People
ics491_timesheet's Issues
Implement wrapper/interface that handles all communication with the database.
May be a cleaner/better design approach. The class would also be able to handle all validation and sanitation of requests.
Implement the class that provides timesheet info.
This class should at least contain a function that calculates total hours a given user has worked. It will request the necessary rows from the database given an id/username in order to gather all relevant timed sessions and make necessary calculations.
Implement Login/Authentication system.
Self-explanatory... I made a Token class that holds username, id, and privilegeLevel variables. The login class should create a Token with the given variables and pass it along to the UserInterface class which will then operate according to the variables in the Token, most importantly the privilegeLevel.
That's my take on it anyway... let me know if you don't like the idea or have a better suggestion.
Implement class that handles record management.
The class must implement functions that add/delete/modify user records to the database. These records include information such as username, id, real name, hourly salary, social security number (irrelevant but sensitive information to make a point about security).
Implement PunchClock class.
The PunchClock class handles the checking in and out of the user. It will get the checkin/checkout times and date via some trigger and send to the database to be recorded.
I think the best way to approach this is to use the Observer design pattern. This class would be the observer and the UserInterface class would be the subject. Read more here: http://www.journaldev.com/1739/observer-design-pattern-in-java
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.