protected String getName(CmsObject cms, CmsResource resource, CmsUUID parentId) {

        return parentId == null ? resource.getRootPath() : resource.getName();
    }
protected String getName ( CmsObject cms , CmsResource resource , CmsUUID parentId ) { return parentId == null ? resource . getRootPath ( ) : resource . getName ( ) ; }
Gets the name to display for the given resource.<p>

@param cms the CMS context
@param resource a resource
@param parentId the id of the parent of the resource

@return the name for the given resoure