-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address review comments Add minor improvement Address review comments Address minor improvement Improve the model
- Loading branch information
Showing
8 changed files
with
252 additions
and
125 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
175 changes: 102 additions & 73 deletions
175
...o2/carbon/identity/organization/user/invitation/management/InvitationCoreServiceImpl.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
30 changes: 30 additions & 0 deletions
30
...so2/carbon/identity/organization/user/invitation/management/models/CreatedInvitation.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,30 @@ | ||
package org.wso2.carbon.identity.organization.user.invitation.management.models; | ||
|
||
/** | ||
* Model that contains the created invitation details. | ||
*/ | ||
public class CreatedInvitation { | ||
|
||
private String username; | ||
private InvitationResult result; | ||
|
||
public InvitationResult getResult() { | ||
|
||
return result; | ||
} | ||
|
||
public void setResult(InvitationResult result) { | ||
|
||
this.result = result; | ||
} | ||
|
||
public String getUsername() { | ||
|
||
return username; | ||
} | ||
|
||
public void setUsername(String username) { | ||
|
||
this.username = username; | ||
} | ||
} |
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
57 changes: 57 additions & 0 deletions
57
...org/wso2/carbon/identity/organization/user/invitation/management/models/InvitationDO.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,57 @@ | ||
package org.wso2.carbon.identity.organization.user.invitation.management.models; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Model that contains the invitation data object. | ||
*/ | ||
public class InvitationDO { | ||
|
||
private List<String> usernamesList; | ||
private String userDomain; | ||
private RoleAssignments[] roleAssignments; | ||
private String userRedirectUrl; | ||
|
||
public String getUserRedirectUrl() { | ||
|
||
return userRedirectUrl; | ||
} | ||
|
||
public void setUserRedirectUrl(String userRedirectUrl) { | ||
|
||
this.userRedirectUrl = userRedirectUrl; | ||
} | ||
|
||
public List<String> getUsernamesList() { | ||
|
||
return usernamesList; | ||
} | ||
|
||
public void setUsernamesList(List<String> usernamesList) { | ||
|
||
this.usernamesList = usernamesList; | ||
} | ||
|
||
public String getUserDomain() { | ||
|
||
return userDomain; | ||
} | ||
|
||
public void setUserDomain(String userDomain) { | ||
|
||
this.userDomain = userDomain; | ||
} | ||
|
||
public RoleAssignments[] getRoleAssignments() { | ||
|
||
if (roleAssignments == null) { | ||
return null; | ||
} | ||
return roleAssignments.clone(); | ||
} | ||
|
||
public void setRoleAssignments(RoleAssignments[] roleAssignments) { | ||
|
||
this.roleAssignments = roleAssignments != null ? roleAssignments.clone() : null; | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...wso2/carbon/identity/organization/user/invitation/management/models/InvitationResult.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 org.wso2.carbon.identity.organization.user.invitation.management.models; | ||
|
||
import org.wso2.carbon.identity.organization.user.invitation.management.constant.UserInvitationMgtConstants; | ||
|
||
/** | ||
* Model that contains the created invitation result details. | ||
*/ | ||
public class InvitationResult { | ||
|
||
private UserInvitationMgtConstants.ErrorMessage errorMsg; | ||
private String status; | ||
|
||
public UserInvitationMgtConstants.ErrorMessage getErrorMsg() { | ||
|
||
return errorMsg; | ||
} | ||
|
||
public void setErrorMsg(UserInvitationMgtConstants.ErrorMessage errorMsg) { | ||
|
||
this.errorMsg = errorMsg; | ||
} | ||
|
||
public String getStatus() { | ||
|
||
return status; | ||
} | ||
|
||
public void setStatus(String status) { | ||
|
||
this.status = status; | ||
} | ||
} |
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