code: private StringBuffer buildResourceList(ArrayList<CmsAccessControlEntry> entries) {
  
          StringBuffer result = new StringBuffer(256);
          Iterator<CmsAccessControlEntry> i = entries.iterator();
          boolean hasEntries = i.hasNext();
  
          if (hasEntries || !getInheritOption()) {
              // create headline for resource entries
              result.append(dialogSubheadline(key(Messages.GUI_PERMISSION_TITLE_0)));
          }
  
          // create the internal form
          result.append(buildInternalForm());
  
          if (hasEntries) {
              // only create output if entries are present
              result.append(dialogSpacer());
              // open white box
              result.append(dialogWhiteBox(HTML_START));
  
              // list all entries
              while (i.hasNext()) {
                  CmsAccessControlEntry curEntry = i.next();
                  result.append(buildPermissionEntryForm(curEntry, getEditable(), false, null));
                  if (i.hasNext()) {
                      result.append(dialogSeparator());
                  }
              }
  
              // close white box
              result.append(dialogWhiteBox(HTML_END));
          }
          return result;
      }
docs: Builds a StringBuffer with HTML code for the access control entries of a resource.<p>
  
  @param entries all access control entries for the resource
  @return StringBuffer with HTML code for all entries