Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bspastoriza19-esi-solutions
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Breixo Senra Pastoriza
bspastoriza19-esi-solutions
Commits
e9962712
Commit
e9962712
authored
Oct 10, 2018
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes some JavaDoc errors
Some JavaDoc errors detected in the entities have been fixed.
parent
655b645a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
Owner.java
...rc/main/java/es/uvigo/esei/xcs/domain/entities/Owner.java
+3
-2
Pet.java
.../src/main/java/es/uvigo/esei/xcs/domain/entities/Pet.java
+6
-1
OwnerResource.java
rest/src/main/java/es/uvigo/esei/xcs/rest/OwnerResource.java
+1
-0
PetResource.java
rest/src/main/java/es/uvigo/esei/xcs/rest/PetResource.java
+1
-0
No files found.
domain/src/main/java/es/uvigo/esei/xcs/domain/entities/Owner.java
View file @
e9962712
...
...
@@ -79,9 +79,8 @@ public class Owner extends User implements Serializable {
}
/**
* Returns the pets that belong
s
to this owner. The collection returned is
* Returns the pets that belong to this owner. The collection returned is
* unmodifiable and no order are guaranteed.
* If the pet already belongs to this owner, no action will be done.
*
* @return the pets that belongs to this owner.
*/
...
...
@@ -138,6 +137,8 @@ public class Owner extends User implements Serializable {
/**
* Adds a pet directly to the pets collection of this owner if the pet does
* not already belongs to this owner. The pet's owner will not be updated.
* If the pet already belongs to this owner, no action will be done.
*
*
* @param pet the pet to add to this owner. {@code null} values not
* supported.
...
...
domain/src/main/java/es/uvigo/esei/xcs/domain/entities/Pet.java
View file @
e9962712
...
...
@@ -103,6 +103,11 @@ public class Pet implements Serializable {
this
.
setOwner
(
owner
);
}
/**
* Returns the identifier of this pet.
*
* @return the identifier of this pet.
*/
public
int
getId
()
{
return
id
;
}
...
...
@@ -195,7 +200,7 @@ public class Pet implements Serializable {
}
/**
* Sets the owner of this pet. The new owner can be {@code null}, mea
i
ning
* Sets the owner of this pet. The new owner can be {@code null}, meaning
* that the pet has no owner.
*
* @param owner the new owner of the pet. {@code null} value is valid,
...
...
rest/src/main/java/es/uvigo/esei/xcs/rest/OwnerResource.java
View file @
e9962712
...
...
@@ -119,6 +119,7 @@ public class OwnerResource {
* Deletes an owner.
*
* @param login the login of the owner to be deleted.
* @return an empty {@code OK} response.
* @throws IllegalArgumentException if {@code login} is {@code null} or if
* it does not identifies a valid owner.
*/
...
...
rest/src/main/java/es/uvigo/esei/xcs/rest/PetResource.java
View file @
e9962712
...
...
@@ -129,6 +129,7 @@ public class PetResource {
* Deletes a pet.
*
* @param id the identifier of the pet to be deleted.
* @return an empty {@code OK} response.
* @throws IllegalArgumentException if there is no pet with the provided
* identifier.
* @throws SecurityException if the pet's owner is not the current user.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment