forked from eclipse-sw360/sw360
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rest): modify moderation requests
Modify ModerationRequest being - Accepted - Rejected - Assigned (In progress) - Unassigned (Pending) Commit is related to issue eclipse-sw360#1849 Signed-off-by: Gaurav Mishra <[email protected]>
- Loading branch information
Showing
6 changed files
with
294 additions
and
10 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
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
53 changes: 53 additions & 0 deletions
53
...rc/main/java/org/eclipse/sw360/rest/resourceserver/moderationrequest/ModerationPatch.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,53 @@ | ||
/* | ||
* Copyright Siemens AG, 2023. Part of the SW360 Portal Project. | ||
* | ||
* This program and the accompanying materials are made | ||
* available under the terms of the Eclipse Public License 2.0 | ||
* which is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* SPDX-FileCopyrightText: 2023, Siemens AG. Part of the SW360 Portal Project. | ||
* SPDX-FileContributor: Gaurav Mishra <[email protected]> | ||
*/ | ||
|
||
package org.eclipse.sw360.rest.resourceserver.moderationrequest; | ||
|
||
/** | ||
* Input for PATCH request on moderation request to accept/reject it. | ||
*/ | ||
public class ModerationPatch { | ||
private ModerationAction action; | ||
private String comment; | ||
|
||
public ModerationPatch() { | ||
this.action = null; | ||
this.comment = null; | ||
} | ||
|
||
public ModerationAction getAction() { | ||
return action; | ||
} | ||
|
||
public void setAction(ModerationAction action) { | ||
this.action = action; | ||
} | ||
|
||
public String getComment() { | ||
return comment; | ||
} | ||
|
||
public void setComment(String comment) { | ||
this.comment = comment; | ||
} | ||
|
||
/** | ||
* Actions which can be perfromed on the moderation request | ||
*/ | ||
public enum ModerationAction { | ||
ACCEPT, | ||
REJECT, | ||
UNASSIGN, | ||
ASSIGN | ||
} | ||
} |
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.