Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TAM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Labrador
TAM
Merge requests
!54
Something went wrong while fetching comments. Please try again.
Add limits endpoints
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Add limits endpoints
backend_limits_endpoint
into
dev
Overview
13
Commits
1
Pipelines
1
Changes
16
Merged
Add limits endpoints
Otto Visser
requested to merge
backend_limits_endpoint
into
dev
Jun 1, 2018
Overview
13
Commits
1
Pipelines
1
Changes
16
In this merge request, the following is changed:
The API is updated to have endpoint for limits
The endpoints for retrieving and updating the user set limits in the database are put in place.
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
0b893d91
1 commit,
Jun 4, 2018
16 files
+
549
−
18
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
16
src/main/java/nl/tudelft/ewi/tam/beans/Limits.java
0 → 100644
+
113
−
0
View file @ 0b893d91
Edit in single-file editor
Open in Web IDE
package
nl.tudelft.ewi.tam.beans
;
/**
* This class embodies the Limits table of the database.
*/
public
class
Limits
{
/**
* The ints representing the period on which the limits apply.
*/
private
int
year
,
quarter
;
/**
* The ints representing the limits of the hour and courses.
*/
private
int
hourLimit
,
courseLimit
;
/**
* Instantiate a new Limits instance using the provided initial variable values.
*
* @param year the year where the limits apply
* @param quarter the quarter where the limits apply
* @param hourLimit the limit on the hours
* @param courseLimit the limit on the courses
*/
public
Limits
(
final
int
year
,
final
int
quarter
,
final
int
hourLimit
,
final
int
courseLimit
)
{
this
.
year
=
year
;
this
.
quarter
=
quarter
;
this
.
hourLimit
=
hourLimit
;
this
.
courseLimit
=
courseLimit
;
}
/**
* Instantiate a new Limits instance without instantiated variables.
*/
public
Limits
()
{
// Intentionally left empty. This constructor is used for serializing json objects by the jackson library.
}
/**
* Sets new courseLimit.
*
* @param courseLimit new value of courseLimit
*/
public
void
setCourseLimit
(
final
int
courseLimit
)
{
this
.
courseLimit
=
courseLimit
;
}
/**
* Gets year.
*
* @return value of year
*/
public
int
getYear
()
{
return
year
;
}
/**
* Gets quarter.
*
* @return value of quarter
*/
public
int
getQuarter
()
{
return
quarter
;
}
/**
* Gets courseLimit.
*
* @return value of courseLimit
*/
public
int
getCourseLimit
()
{
return
courseLimit
;
}
/**
* Gets hourLimit.
*
* @return value of hourLimit
*/
public
int
getHourLimit
()
{
return
hourLimit
;
}
/**
* Sets new hourLimit.
*
* @param hourLimit new value of hourLimit
*/
public
void
setHourLimit
(
final
int
hourLimit
)
{
this
.
hourLimit
=
hourLimit
;
}
/**
* Sets new year.
*
* @param year new value of year
*/
public
void
setYear
(
final
int
year
)
{
this
.
year
=
year
;
}
/**
* Sets new quarter.
*
* @param quarter new value of quarter
*/
public
void
setQuarter
(
final
int
quarter
)
{
this
.
quarter
=
quarter
;
}
}
Loading