code: public List<CmsRole> getRolesForResource(CmsObject cms, CmsUser user, CmsResource resource) throws CmsException {
  
          return m_securityManager.getRolesForResource(cms.getRequestContext(), user, resource);
      }
docs: Returns all roles the given user has over the given resource.<p>
  
  @param cms the current cms context
  @param user the user
  @param resource the resource
  
  @return a list of {@link CmsRole} objects
  
  @throws CmsException if something goes wrong