public class UserManagerResult
extends java.lang.Object
implements java.io.Serializable
UserManagerResult
class is a value object and contains the
result of operation on user entity.Constructor and Description |
---|
UserManagerResult()
Construct a blank
UserManagerResult |
UserManagerResult(java.lang.String entityId,
java.lang.String status)
Construct
UserManagerResult with given GUID
entityId and status status |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEntityId()
Provides the GUID of the user the result belongs to.
|
java.util.HashMap |
getFailedResults()
Provides a
Map of failed result. |
java.lang.String |
getRequestId() |
java.lang.String |
getStatus()
Provides the result status of the operation.
|
java.util.List |
getSucceededResults()
Provides
List of success result containing GUID of the user
for which operation succeeded. |
void |
setFailedResults(java.util.HashMap failedResults)
Sets a
Map of failed result. |
void |
setRequestId(java.lang.String requestId) |
void |
setSucceededResults(java.util.List succeededResults)
Set the
List of success result containing GUID of the user
for which operation succeeded. |
public UserManagerResult()
UserManagerResult
public UserManagerResult(java.lang.String entityId, java.lang.String status)
UserManagerResult
with given GUID
entityId
and status status
entityId
- The GUID of the userstatus
- The status of the result. Set status as 'COMPLETED' if the
operation is successful. For bulk operation set status as
'COMPLETED' if bulk operation is successful for at least one user.public java.lang.String getEntityId()
public java.lang.String getRequestId()
public void setRequestId(java.lang.String requestId)
public java.lang.String getStatus()
public void setFailedResults(java.util.HashMap failedResults)
Map
of failed result. The map contains mapping of
GUID of the user and the failure reason. The method is intended to be used
for setting failure results for bulk operation.succeededResults
- A Map
of failed result containing mapping of GUID
of the user and the failure reason.public java.util.HashMap getFailedResults()
Map
of failed result. The map contains mapping of
GUID of the user and the failure reason. The method is intended to be used
for getting failure results for bulk operation.Map
of failed result containing mapping of GUID of
the user and the failure reason.public java.util.List getSucceededResults()
List
of success result containing GUID of the user
for which operation succeeded. The method is intended to be used for
getting success result for bulk operation.List
of success result containing GUID of the user
for which operation succeeded.public void setSucceededResults(java.util.List succeededResults)
List
of success result containing GUID of the user
for which operation succeeded. The method is intended to be used for
setting success result for bulk operation.succeededResults
- The List
of success result containing GUID of the
user for which operation succeeded.