Package net.sourceforge.gedapi.view

Examples of net.sourceforge.gedapi.view.GCSContentView.addContent()


                        }
                        gcsContent.setIsFile(subFile.isFile());
                        gcsContent.setJsContent((gedcomFilePath.length() > 0 ? gedcomFilePath.substring(1)+"/" : gedcomFilePath)+subFile.getName());
                        gcsContent.setLinkURL(requestURL+subFile.getName());
                        gcsContent.setLinkContent(subFile.getName());
                        content.addContent(gcsContent);
                      }
                      else
                      {
                        if((subContentFile.isDirectory() || isValidFilename(subContentFile.getName())) &&
                           validHash)
View Full Code Here


                          }
                          gcsContent.setIsFile(subContentFile.isFile());
                          gcsContent.setJsContent((gedcomFilePath.length() > 0 ? gedcomFilePath.substring(1)+"/" : gedcomFilePath)+subContentFile.getName());
                          gcsContent.setLinkURL(requestURL+subContentFile.getName());
                          gcsContent.setLinkContent(subContentFile.getName());
                          content.addContent(gcsContent);
                        }
                      }
                    }
                  }
                }
View Full Code Here

                    }
                    gcsContent.setIsFile(contentFile.isFile());
                    gcsContent.setJsContent((gedcomFilePath.length() > 0 ? gedcomFilePath.substring(1)+"/" : gedcomFilePath)+contentFile.getName());
                    gcsContent.setLinkURL(requestURL+contentFile.getName());
                    gcsContent.setLinkContent(contentFile.getName());
                    content.addContent(gcsContent);
                  }
                }
              }
            }
            else if(!contentFile.isFile() || !GLinkURL.justFileHash(contentFile.getName()).equals(contentFile.getParentFile().getParentFile().getName()+File.separator+contentFile.getParentFile().getName()))
View Full Code Here

              }
              gcsContent.setIsFile(contentFile.isFile());
              gcsContent.setJsContent((gedcomFilePath.length() > 0 ? gedcomFilePath.substring(1)+"/" : gedcomFilePath)+filename);
              gcsContent.setLinkURL(requestURL+filename);
              gcsContent.setLinkContent(filename);
              content.addContent(gcsContent);
            }
          }
          sendJSONResponse(response, content, lastModified);
        /*}*/
      }
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.