-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separated 'admins-and-groupings' into 2 endpoints 'admins' & 'all-gro…
…upings'
- Loading branch information
1 parent
bac2d31
commit 247c598
Showing
15 changed files
with
314 additions
and
162 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
32 changes: 32 additions & 0 deletions
32
src/main/java/edu/hawaii/its/api/groupings/GroupingAdmins.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,32 @@ | ||
package edu.hawaii.its.api.groupings; | ||
|
||
import edu.hawaii.its.api.type.EmptyGroup; | ||
import edu.hawaii.its.api.type.Group; | ||
|
||
public class GroupingAdmins implements GroupingResult { | ||
|
||
private Group adminGroup; | ||
private String resultCode; | ||
|
||
private final String groupPath = "uh-settings:groupingAdmins"; | ||
|
||
public GroupingAdmins() { | ||
this.adminGroup = new EmptyGroup(); | ||
this.resultCode = "FAILURE"; | ||
} | ||
|
||
public GroupingAdmins(Group adminGroup) { | ||
this.adminGroup = adminGroup; | ||
this.resultCode = "SUCCESS"; | ||
} | ||
|
||
public Group getAdminGroup() { return adminGroup; } | ||
|
||
public void setAdminGroup(Group adminGroup) { this.adminGroup = adminGroup; } | ||
|
||
@Override | ||
public String getResultCode() { return this.resultCode; } | ||
|
||
@Override | ||
public String getGroupPath() { return this.groupPath; } | ||
} |
36 changes: 36 additions & 0 deletions
36
src/main/java/edu/hawaii/its/api/groupings/GroupingPaths.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,36 @@ | ||
package edu.hawaii.its.api.groupings; | ||
|
||
import edu.hawaii.its.api.type.GroupingPath; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class GroupingPaths implements GroupingResult { | ||
|
||
private List<GroupingPath> groupingPaths; | ||
private String resultCode; | ||
|
||
private final String groupPath = "uh-settings:groupingAdmins"; | ||
|
||
public GroupingPaths() { | ||
groupingPaths = new ArrayList<>(); | ||
this.resultCode = "FAILURE"; | ||
} | ||
|
||
public GroupingPaths(List<GroupingPath> groupingPaths) { | ||
this.groupingPaths = groupingPaths; | ||
this.resultCode = "SUCCESS"; | ||
} | ||
|
||
public void addGroupingPath(GroupingPath groupingPaths) { this.groupingPaths.add(groupingPaths); } | ||
|
||
public List<GroupingPath> getGroupingPaths() { return this.groupingPaths; } | ||
|
||
public void setGroupingPaths(List<GroupingPath> groupingPaths) { this.groupingPaths = groupingPaths; } | ||
|
||
@Override | ||
public String getResultCode() { return this.resultCode; } | ||
|
||
@Override | ||
public String getGroupPath() { return this.groupPath; } | ||
} |
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
34 changes: 0 additions & 34 deletions
34
src/main/java/edu/hawaii/its/api/type/AdminListsHolder.java
This file was deleted.
Oops, something went wrong.
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.