Examples of addAuthor()


Examples of com.tommytony.war.Warzone.addAuthor()

        War.war.badMsg(player, "Too many warzones already! To change the maximum, use /warcfg maxzone:20.");
        return;
      } else if (warzone == null) {
        // create the warzone
        warzone = new Warzone(this.player.getLocation().getWorld(), this.zoneName);
        warzone.addAuthor(player.getName());
        War.war.getIncompleteZones().add(warzone);
        warzone.getVolume().setZoneCornerOne(corner1Block);
        War.war.msg(this.player, "Warzone " + warzone.getName() + " created. Corner 1 set to x:" + corner1Block.getX() + " y:" + corner1Block.getY() + " z:" + corner1Block.getZ() + ". ");
        War.war.log(player.getName() + " created warzone " + zoneName + " by setting its corner 1", Level.INFO);
      } else if (!this.isPlayerAuthorOfZoneOrAdmin(warzone)) {
View Full Code Here

Examples of com.tommytony.war.Warzone.addAuthor()

        War.war.badMsg(player, "Too many warzones already! To change the maximum, use /warcfg maxzone:20.");
        return;
      } else if (warzone == null) {
        // create the warzone
        warzone = new Warzone(this.player.getLocation().getWorld(), this.zoneName);
        warzone.addAuthor(player.getName());
        War.war.getIncompleteZones().add(warzone);
        warzone.getVolume().setZoneCornerTwo(corner2Block);
        War.war.msg(this.player, "Warzone " + warzone.getName() + " created. Corner 2 set to x:" + corner2Block.getX() + " y:" + corner2Block.getY() + " z:" + corner2Block.getZ() + ". ");
        War.war.log(player.getName() + " created warzone " + zoneName + " by setting its corner 2", Level.INFO);
      } else if (!this.isPlayerAuthorOfZoneOrAdmin(warzone)) {
View Full Code Here

Examples of com.tommytony.war.Warzone.addAuthor()

      // authors
      if (warzoneConfig.containsKey("author") && !warzoneConfig.getString("author").equals("")) {
        for(String authorStr : warzoneConfig.getString("author").split(",")) {
          if (!authorStr.equals("")) {
            warzone.addAuthor(authorStr);
          }
        }
      }

      // life pool (always set after teams, so the teams' remaining lives get initialized properly by this setter)
View Full Code Here

Examples of com.tommytony.war.Warzone.addAuthor()

      // authors
      if (warzoneRootSection.contains(zoneInfoPrefix + "authors")) {
        for(String authorStr : warzoneRootSection.getStringList(zoneInfoPrefix + "authors")) {
          if (!authorStr.equals("")) {
            warzone.addAuthor(authorStr);
          }
        }
      }

      // rallyPoint
View Full Code Here

Examples of model.Book.addAuthor()

    book.setTitle("HTML 5 et CSS 3");
    book.setCategory(category1);

    book.setPrice(new java.math.BigDecimal("10.50"));
    book.setDate(now);
    book.addAuthor(author1);
    File f = new File("WebContent/resources/images/html.jpg");
    byte[] photo = new byte[(int) (f.length())];
    FileInputStream fi = new FileInputStream(f);
    fi.read(photo);
    book.setPhoto(photo);
View Full Code Here

Examples of net.relatedwork.shared.dto.DisplayPaperResult.addAuthor()

      result.setAbstract((String) paperNode.getProperty(DBNodeProperties.PAPER_ABSTRACT));
     
      // Author list
      for (Relationship rel: paperNode.getRelationships(DBRelationshipTypes.WRITTEN_BY)){
        Node authorNode = rel.getEndNode();
        result.addAuthor(authorAccessHandler.authorFromNode(authorNode));
      }
     
      // Reference list
      for (Relationship rel: paperNode.getRelationships(DBRelationshipTypes.CITES, Direction.OUTGOING)){
        Node citationTargetNode = rel.getEndNode();
View Full Code Here

Examples of net.relatedwork.shared.dto.GlobalSearchResult.addAuthor()

    for (Node n : queryReults) {
      if (!n.hasProperty(DBNodeProperties.PAGE_RANK_VALUE)) continue;
     
      // Add query Results to result object
      if (NodeType.isAuthorNode(n)) {
        result.addAuthor(authorAccessHandler.authorFromNode(n));
      }

      if (NodeType.isPaperNode(n)){
        result.addPaper(Neo4jToDTOHelper.paperFromNode(n));
      }
View Full Code Here

Examples of openbook.domain.Book.addAuthor()

                                 Randomizer.random(stockMin, stockMax));
            List<Author> authors = Randomizer.selectRandom(allAuthors,
                    Math.max(1, Randomizer.random(nAuthorPerBook)));
            for (Author author : authors) {
                author.addBook(book);
                book.addAuthor(author);
            }
            em.persist(book);
        }
       
       
View Full Code Here

Examples of org.apache.abdera.model.Entry.addAuthor()

    Entry entry = factory.newEntry();
    entry.setId("http://example.org/foo/entry")
    entry.setUpdated(new java.util.Date());
    entry.setTitle("This is an entry");
    entry.setContentAsXhtml("This <b>is</b> <i>markup</i>");
    entry.addAuthor("James");
    entry.addLink("http://www.example.org");
   
    // Prepare the digital signature options
    Signature sig = absec.getSignature();
    SignatureOptions options = sig.getDefaultSignatureOptions();   
View Full Code Here

Examples of org.apache.abdera.model.Entry.addAuthor()

    Entry entry = factory.newEntry();
    entry.setId("http://example.org/foo/entry")
    entry.setUpdated(new java.util.Date());
    entry.setTitle("This is an entry");
    entry.setContentAsXhtml("This <b>is</b> <i>markup</i>");
    entry.addAuthor("James");
    entry.addLink("http://www.example.org");
   
    // Prepare the digital signature options
    Signature sig = absec.getSignature();
    SignatureOptions options = sig.getDefaultSignatureOptions();   
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.