com.mirth.match.client.models
Class DTOResult<T>

java.lang.Object
  extended by com.mirth.match.client.models.Status<StatusCondition>
      extended by com.mirth.match.client.models.Result<T>
          extended by com.mirth.match.client.models.DTOResult<T>

public class DTOResult<T>
extends Result<T>


Field Summary
 
Fields inherited from class com.mirth.match.client.models.Result
result
 
Constructor Summary
DTOResult()
           
DTOResult(EisResult result, java.lang.Class<T> resultType)
           
DTOResult(EisStatus status, T result)
           
DTOResult(java.util.List<StatusCondition> conditions)
           
 
Method Summary
static
<T> DTOResult<T>
createINEXResult(EisResult result, java.lang.Class<T> resultType)
           
protected  boolean isSuccess(java.util.List<StatusCondition> conditions)
          Returns true if the EisConditions do not return any conditions of Severity ERROR or SEVERE
 
Methods inherited from class com.mirth.match.client.models.Result
getResult, hasResult, setResult, toString
 
Methods inherited from class com.mirth.match.client.models.Status
addCondition, getConditions, hasConditions, isOperationSucceeded, setConditions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DTOResult

public DTOResult()

DTOResult

public DTOResult(EisStatus status,
                 T result)

DTOResult

public DTOResult(EisResult result,
                 java.lang.Class<T> resultType)

DTOResult

public DTOResult(java.util.List<StatusCondition> conditions)
Method Detail

createINEXResult

public static <T> DTOResult<T> createINEXResult(EisResult result,
                                                java.lang.Class<T> resultType)

isSuccess

protected boolean isSuccess(java.util.List<StatusCondition> conditions)
Returns true if the EisConditions do not return any conditions of Severity ERROR or SEVERE

Parameters:
conditions - the list of conditions to check
Returns:
true if result is successfull; otherwise false


Copyright © 2011 Mirth Corp. All Rights Reserved.