dat250-group6's People
dat250-group6's Issues
Subscription button is gone
Also says waiting for approval on owned devices
Create REST endpoints
- GET /rest/devices - which should return a representation of all devices
- GET /rest/devices/{id} - which should return a representation of the device identified by id
- GET /rest/devices/{id}/registrations/ - which should return a representation with reference to all current registrations of the device identified by id
- GET /rest/devices/{id}/registration/{rid} - which should return a representation of the given rid for the device identified by id
- POST /rest/devices/{id}/ - which creates a registration for a specified user for the device identified by id and returns a representation of the registration. The user should be contained in the payload of the request (or optionally as a query parameter).
Implement log out
Get userinformation and devices in main - pass it to pages
ERROR: duplicate key value violates unique constraint "device_labels_pkey", when adding new device
Enable editing info about a device
User Ids in database are not sequential
We initialize a new user in UserController.getUser()
every time, similarly with device.
Search for a device
Enable editing of user
Only give feedback if you are subscribed
Don't give the possibility to give feedback if you are not subscribed to a device.
Number 11
Add new REST endpoints
Add endpoints:
- Unsubscribe
- Delete a device
- Edit device
- Approve subscription
Take into account isApprovedSubscription in Subscription
- An owner should be able to approve/deny pending subscriptions
- You aren't supposed to give feedback if the subscription isn't approved yet
- Devices with pending subscriptions shouldn't be shown in subscribed devices.
Register a new user
Add device handling based on user-device relation (subscribe, delete, unsubscribe...)
- Subscribe
- Delete
- Unsubscribe
Edit device
Three labels are always created when creating a device
Enable login
- Log in page
- Session cookie
- Log out
Enable adding feedback for a device
Create frontend
Add device
Enable subscribing to a device
On a device page:
- Subscribe to a device
- Unsubscribe to a device
Create business logic
- Log in
- Add new device
- Add new user
- Search for online devices
- Delete device
- Register for device
- Deregister for device
- See list of devices subscribed to
- Edit owned devices
- Add feedback to devices
- View feedback for owned devices
- Publish device
- Update user data
An owner of a device should be able to deny a subscription
You can only approve or leave a subscription pending in the current implementation
Make presentation for friday
- A brief introduction to the software technology that you are investigating (2 slides).
- A summary of what you have done until now and what prototype you are going to build (2 slides).
- A summary of how you intend to proceed in the project and how you will evaluate the prototype (1 slide).
Create sessions
Create database access functions
-
getDeviceById(int deviceId) - which should return a representation of the device identified by id
-
getSubscribers(int deviceId) - which should return a representation with reference to all current registrations of the device identified by id
-
getUserFromSubscriptionId(int deviceId, int registrationId) - which should return a representation of the given rid for the device identified by id
-
addSubscription(int deviceId, int userId) - which creates a registration for a specified user for the device identified by id and returns a representation of the registration. The user should be contained in the payload of the request (or optionally as a query parameter).
Delete a device
As a device owner, approve a device subscription
Feedback is not shown for other users than author
Implement messaging according to assigment
When a user is approved to use a registered device, the application needs to send a message to a Notify-subsystem implemented as a message-driven bean and the Java Message Service (JMS). You should add a JMS topic to your application in which this information can be published and received by a subscribing message-driven bean. The message-driven bean should sent a message to dweet.io via REST similar to the functionality of the advanced tweet example application.
Implement security according to assignment
Using the standard security features of the Java EE framework, implement a working solution for authentication and access control / authorization in the application. This must include a secure login mechanism using password and username, and the solution should use database storage of the user credentials. In the application, there should be at least two different roles with corresponding access rights. Finally, all communication between clients and the server should be protected by using the https protocol.
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.