-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It is opt-in though, because it doesn't always speed up performance. This closes #757
- Loading branch information
Showing
9 changed files
with
477 additions
and
33 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
184 changes: 167 additions & 17 deletions
184
...ontroltool-bundle/src/main/java/biz/netcentric/cq/tools/actool/ims/IMSUserManagement.java
Large diffs are not rendered by default.
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
38 changes: 38 additions & 0 deletions
38
...ltool-bundle/src/main/java/biz/netcentric/cq/tools/actool/ims/response/GroupResponse.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,38 @@ | ||
package biz.netcentric.cq.tools.actool.ims.response; | ||
|
||
/*- | ||
* #%L | ||
* Access Control Tool Bundle | ||
* %% | ||
* Copyright (C) 2015 - 2024 Cognizant Netcentric | ||
* %% | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* #L% | ||
*/ | ||
|
||
import java.util.List; | ||
|
||
import org.apache.http.client.methods.HttpRequestBase; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class GroupResponse { | ||
|
||
@JsonProperty("lastPage") | ||
public boolean isLastPage; | ||
|
||
@JsonProperty("result") | ||
public String result; | ||
|
||
@JsonProperty("groups") | ||
public List<IMSGroup> groups; | ||
|
||
@JsonIgnore | ||
public HttpRequestBase associatedRequest; | ||
} |
72 changes: 72 additions & 0 deletions
72
...ontroltool-bundle/src/main/java/biz/netcentric/cq/tools/actool/ims/response/IMSGroup.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,72 @@ | ||
package biz.netcentric.cq.tools.actool.ims.response; | ||
|
||
/*- | ||
* #%L | ||
* Access Control Tool Bundle | ||
* %% | ||
* Copyright (C) 2015 - 2024 Cognizant Netcentric | ||
* %% | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* #L% | ||
*/ | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** Represents either a user group or product profile in IMS. */ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class IMSGroup { | ||
|
||
@JsonProperty("type") | ||
public String type; | ||
|
||
@JsonProperty("memberCount") | ||
public int memberCount; | ||
|
||
@JsonProperty("adminGroupName") | ||
public String adminGroupName; | ||
|
||
@JsonProperty("groupName") | ||
public String groupName; | ||
|
||
@JsonProperty("groupId") | ||
public long groupId; | ||
|
||
@JsonProperty("userGroupName") | ||
public String userGroupName; | ||
|
||
@Override | ||
public String toString() { | ||
return "IMSGroup [type=" + type + ", memberCount=" + memberCount + ", adminGroupName=" + adminGroupName + ", groupName=" + groupName | ||
+ ", groupId=" + groupId + ", userGroupName=" + userGroupName + "]"; | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
public int getMemberCount() { | ||
return memberCount; | ||
} | ||
|
||
public String getAdminGroupName() { | ||
return adminGroupName; | ||
} | ||
|
||
public String getGroupName() { | ||
return groupName; | ||
} | ||
|
||
public long getGroupId() { | ||
return groupId; | ||
} | ||
|
||
public String getUserGroupName() { | ||
return userGroupName; | ||
} | ||
|
||
|
||
} |
87 changes: 87 additions & 0 deletions
87
...controltool-bundle/src/main/java/biz/netcentric/cq/tools/actool/ims/response/IMSUser.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,87 @@ | ||
package biz.netcentric.cq.tools.actool.ims.response; | ||
|
||
/*- | ||
* #%L | ||
* Access Control Tool Bundle | ||
* %% | ||
* Copyright (C) 2015 - 2024 Cognizant Netcentric | ||
* %% | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* #L% | ||
*/ | ||
|
||
import java.util.List; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class IMSUser { | ||
|
||
@JsonProperty("type") | ||
public String type; | ||
|
||
@JsonProperty("email") | ||
public String email; | ||
|
||
@JsonProperty("status") | ||
public String status; | ||
|
||
@JsonProperty("groups") | ||
public List<String> groups; | ||
|
||
@JsonProperty("domain") | ||
public String domain; | ||
|
||
@JsonProperty("country") | ||
public String country; | ||
|
||
@JsonProperty("tags") | ||
public List<String> tags; | ||
|
||
@JsonProperty("username") | ||
public String username; | ||
|
||
@Override | ||
public String toString() { | ||
return "IMSUser [type=" + type + ", email=" + email + ", status=" + status + ", groups=" + groups + ", domain=" + domain | ||
+ ", country=" + country + ", tags=" + tags + ", username=" + username + "]"; | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
public String getEmail() { | ||
return email; | ||
} | ||
|
||
public String getStatus() { | ||
return status; | ||
} | ||
|
||
public List<String> getGroups() { | ||
return groups; | ||
} | ||
|
||
public String getDomain() { | ||
return domain; | ||
} | ||
|
||
public String getCountry() { | ||
return country; | ||
} | ||
|
||
public List<String> getTags() { | ||
return tags; | ||
} | ||
|
||
public String getUsername() { | ||
return username; | ||
} | ||
|
||
|
||
} |
41 changes: 41 additions & 0 deletions
41
...undle/src/main/java/biz/netcentric/cq/tools/actool/ims/response/UsersInGroupResponse.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,41 @@ | ||
package biz.netcentric.cq.tools.actool.ims.response; | ||
|
||
/*- | ||
* #%L | ||
* Access Control Tool Bundle | ||
* %% | ||
* Copyright (C) 2015 - 2024 Cognizant Netcentric | ||
* %% | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* #L% | ||
*/ | ||
|
||
import java.util.List; | ||
|
||
import org.apache.http.client.methods.HttpRequestBase; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class UsersInGroupResponse { | ||
|
||
@JsonProperty("lastPage") | ||
public boolean isLastPage; | ||
|
||
@JsonProperty("result") | ||
public String result; | ||
|
||
@JsonProperty("groupName") | ||
public String groupName; | ||
|
||
@JsonProperty("users") | ||
public List<IMSUser> users; | ||
|
||
@JsonIgnore | ||
public HttpRequestBase associatedRequest; | ||
} |
Oops, something went wrong.