-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cursor based pagination for scim resources.
Cursor pagination changes - phase 1 formatting adjustments before PR more formatting adjustments and removing unneccesary comments Formatting the code Adjustments made to Cursor Pagination for SCIM resources Changes made as per the code review Changing the response type from a List to UsersGetResponse type object Changing the response type from a List to UsersGetResponse type object - changes based on the code review formatting changes Made changes to support POST/.Search cursor pagination Made changes so that the ServiceProviderConfig endpoint shows cursor pagination capability minor changes Fix for NullPointerException when running UserResourceManagerTest Updated wording for serviceProviderConfigEndpoint changes Formatting changes Removing unused parameters from processPagination method Updating tests broken due to changes and writing new tests for cursor pagination formatting
- Loading branch information
1 parent
3e69329
commit fe816b8
Showing
18 changed files
with
612 additions
and
46 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
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
54 changes: 54 additions & 0 deletions
54
modules/charon-core/src/main/java/org/wso2/charon3/core/objects/plainobjects/Cursor.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,54 @@ | ||
/* | ||
* Copyright (c) 2022, WSO2 Inc. (http://www.wso2.com). | ||
* | ||
* WSO2 Inc. licenses this file to you under the Apache License, | ||
* Version 2.0 (the "License"); you may not use this file except | ||
* in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
package org.wso2.charon3.core.objects.plainobjects; | ||
|
||
/** | ||
* This class representation can be used to create a cursor type object which carries direction and cursor value | ||
* to be used in cursor-based pagination. | ||
*/ | ||
public class Cursor { | ||
|
||
private String cursorValue; | ||
private String direction; | ||
|
||
public Cursor (String cursorVal, String direction) { | ||
this.cursorValue = cursorVal; | ||
this.direction = direction; | ||
} | ||
|
||
public String getCursorValue() { | ||
|
||
return cursorValue; | ||
} | ||
|
||
public void setCursorValue(String cursorValue) { | ||
|
||
this.cursorValue = cursorValue; | ||
} | ||
|
||
public String getDirection() { | ||
|
||
return direction; | ||
} | ||
|
||
public void setDirection(String direction) { | ||
|
||
this.direction = direction; | ||
} | ||
} |
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.