-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged add and delete operations, passing provider info in the body
- Loading branch information
1 parent
9d223d4
commit 5444d54
Showing
12 changed files
with
328 additions
and
779 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/cloud/fogbow/ms/api/parameters/ProviderPermission.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package cloud.fogbow.ms.api.parameters; | ||
|
||
public class ProviderPermission { | ||
private String provider; | ||
private boolean target; | ||
private boolean requester; | ||
|
||
public String getProvider() { | ||
return provider; | ||
} | ||
|
||
public boolean getTarget() { | ||
return target; | ||
} | ||
|
||
public boolean getRequester() { | ||
return requester; | ||
} | ||
This comment has been minimized.
Sorry, something went wrong.
fubica
Collaborator
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
For readability purpose, I would change the signature of addProvider() and all the functions call from there, so that they receive simply the provider as a parameter. Instead of receiving the boolean that is returned by provider.getTarget() and provider.getRequester(), any method that needs to check the value of these boolean fields, should call the new methods provider.isTarget() and provider.isRequester().