Adds default overloads of the methods for creating permission error responses. Patch by Aakash Garg.
This commit is contained in:
parent
e48e56303c
commit
fa9ccc92ef
@ -694,6 +694,17 @@ public class MessageFactory
|
|||||||
return refreshSuccessResponse;
|
return refreshSuccessResponse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a refresh error response
|
||||||
|
*
|
||||||
|
* @param errorCode the error code to encapsulate in this message.
|
||||||
|
* @return refresh error response including the error code attribute.
|
||||||
|
*/
|
||||||
|
public static Response createRefreshErrorResponse(char errorCode)
|
||||||
|
{
|
||||||
|
return createRefreshErrorResponse(errorCode, null);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a refresh error response.
|
* Creates a refresh error response.
|
||||||
* @param errorCode the error code to encapsulate in this message.
|
* @param errorCode the error code to encapsulate in this message.
|
||||||
@ -860,6 +871,18 @@ public class MessageFactory
|
|||||||
return permissionSuccessResponse;
|
return permissionSuccessResponse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a create permission error response.
|
||||||
|
*
|
||||||
|
* @param errorCode the error code to encapsulate in this message.
|
||||||
|
* @return CreatePermission Error Response with error code attribute.
|
||||||
|
*/
|
||||||
|
public static Response createCreatePermissionErrorResponse(char errorCode)
|
||||||
|
{
|
||||||
|
return createPermissionErrorResponse(
|
||||||
|
errorCode, null);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a create permission error response.
|
* Creates a create permission error response.
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user