title: trying to find all permissions a User has in liferay 6.2 and return a JSON object
body: <p>I am very inexperienced with Liferay 6.2. I have searched through the documentation, but cannot find an answer.</p>
  
  <p>I am trying to find all the Users permissions and return them in a JSON object. So far, all I can find is the permission checker, </p>
  
  <blockquote>
    <p>boolean  hasOwnerPermission(long companyId, String name, long primKey, long ownerId, String actionId)<br>
    Returns true if the user is the owner of the resource and has permission to perform the action.    </p>
    
    <p>boolean    hasOwnerPermission(long companyId, String name, String primKey, long ownerId, String actionId)<br>
               Returns true if the user is the owner of the resource and has permission to perform the action.</p>
    
    <p>boolean    hasPermission(long groupId, String name, long primKey, String actionId)<br>
              Returns true if the user has permission to perform the action on the resource.</p>
    
    <p>boolean    hasPermission(long groupId, String name, String primKey, String actionId)<br>
              Returns true if the user has permission to perform the action on the resource.</p>
    
    <p>boolean    hasUserPermission(long groupId, String name, String primKey, String actionId, boolean checkAdmin)<br>
              Returns true if the user has permission to perform the action on the resource without using guest permissions.</p>
  </blockquote>
  
  <p>But this only checks to see if a user has a permission. </p>
  
  <p>I am after a list of all permissions. does Liferay support this functionality?</p>
  
  <p>Thank you.</p>