code: protected String[] getTypes(boolean all) {
  
          if (!all) {
              String[] array = new String[3];
              return Arrays.asList(CmsPermissionDialog.PRINCIPAL_TYPES).subList(0, 3).toArray(array);
          }
          return CmsPermissionDialog.PRINCIPAL_TYPES;
      }
docs: Returns a String array with the possible entry types.<p>
  
  @param all to include all types, or just user, groups and roles
  
  @return the possible types