code: public List<CmsRelation> getRelationsForResource(String resourceName, CmsRelationFilter filter)
      throws CmsException {
  
          return getRelationsForResource(readResource(resourceName, CmsResourceFilter.ALL), filter);
      }
docs: Returns all relations for the given resource matching the given filter.<p>
  
  You should have view/read permissions on the given resource.<p>
  
  You may become source and/or target paths to resource you do not have view/read permissions on.<p>
  
  @param resourceName the name of the resource to retrieve the relations for
  @param filter the filter to match the relation
  
  @return a List containing all {@link org.opencms.relations.CmsRelation}
  objects for the given resource matching the given filter
  
  @throws CmsException if something goes wrong
  
  @see CmsSecurityManager#getRelationsForResource(CmsRequestContext, CmsResource, CmsRelationFilter)