Examples of Owner


Examples of com.sissi.protocol.muc.Owner

    this.proxy = proxy;
  }

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    return this.proxy.input(context, new Owner().destory(new Destory().reason(this.tip)).parent(new IQ().setTo(protocol.parent().getTo()).setType(ProtocolType.SET)));
  }
View Full Code Here

Examples of com.wordnik.swagger.sample.model.Owner

  @Produces("application/json")
  @ApiOperation(
    value = "Gets the owner of a pet",
    response = Owner.class)
  public Owner getOwner() throws NotFoundException {
    Owner o = new Owner();
    o.setName("Tony");
    o.setId(1);
    return o;
  }
View Full Code Here

Examples of net.noderunner.amazon.s3.Owner

      bucket = true;
    } else {
      Entry e = new Entry(key(uri));
      e.setLastModified(new Date());
      e.setSize(req.getContentLength());
      e.setOwner(new Owner("id", "name"));
      ByteArrayOutputStream os = new ByteArrayOutputStream();
      ServletInputStream is = req.getInputStream();
      byte b[] = new byte[128];
      while (true) {
        int len = is.read(b);
View Full Code Here

Examples of org.activejpa.examples.petclinic.model.Owner

        dataBinder.setDisallowedFields("id");
    }

    @RequestMapping(value = "/owners/{ownerId}/pets/new", method = RequestMethod.GET)
    public String initCreationForm(@PathVariable("ownerId") int ownerId, Map<String, Object> model) {
        Owner owner = this.clinicService.findOwnerById(ownerId);
        Pet pet = new Pet();
        owner.addPet(pet);
        model.put("pet", pet);
        return "pets/createOrUpdatePetForm";
    }
View Full Code Here

Examples of org.candlepin.gutterball.model.snapshot.Owner

        }
        return new Compliance(statusDate, consumerSnap, statusSnap);
    }

    public static Owner createOwnerSnapshot(String key, String displayName) {
        return new Owner(key, displayName);
    }
View Full Code Here

Examples of org.candlepin.model.Owner

        throws EntitlementRefusedException {
        Consumer consumer = data.getConsumer();
        String[] productIds = data.getProductIds();
        Collection<String> fromPools = data.getPossiblePools();
        Date entitleDate = data.getOnDate();
        Owner owner = consumer.getOwner();

        List<Entitlement> entitlements = new LinkedList<Entitlement>();

        List<PoolQuantity> bestPools = getBestPools(consumer, productIds,
            entitleDate, owner, null, fromPools);
View Full Code Here

Examples of org.codehaus.enunciate.samples.petclinic.client.schema.Owner

                grid.getCellFormatter().setHorizontalAlignment(0, 3, HasAlignment.ALIGN_CENTER);
                grid.getRowFormatter().setStyleName(0, "clinic-tables-header");
                int row = 1;
                Iterator<Owner> it = collection.iterator();
                while (it.hasNext()) {
                  final Owner owner = it.next();
                  final Label nameLabel = new Label(owner.getFirstName() + " " + owner.getLastName());
                  nameLabel.addStyleName("clinic-clickable");
                  nameLabel.addClickListener(new ClickListener() {
                    public void onClick(Widget widget) {
                      final DialogBox detailsPanel = new DialogBox(true);
                      final VerticalPanel petList = new VerticalPanel();
                      petList.add(new Label("Pets of " + nameLabel.getText() + ":"));
                      detailsPanel.setWidget(petList);
                      detailsPanel.setPopupPositionAndShow(new PopupPanel.PositionCallback() {
                        public void setPosition(int offsetWidth, int offsetHeight) {
                          detailsPanel.setPopupPosition(nameLabel.getAbsoluteLeft(), nameLabel.getAbsoluteTop());
                        }
                      });
                      Iterator petsIt = owner.getPetIds().iterator();
                      while (petsIt.hasNext()) {
                        final Integer petId = (Integer) petsIt.next();
                        clinic.loadPet(petId.intValue(), new AsyncCallback<Pet>() {
                          public void onSuccess(Pet response) {
                            petList.add(new Label("A " + response.getType().getName() + " named " + response.getName() + "."));
                          }

                          public void onFailure(Throwable throwable) {
                            petList.add(new Label("Error loading pet " + petId + ": " + throwable.getMessage()));
                          }
                        });
                      }
                    }
                  });
                  grid.setWidget(row, 0, nameLabel);
                  grid.setWidget(row, 1, new Label(owner.getTelephone()));
                  grid.setWidget(row, 2, new Label(owner.getAddress()));
                  grid.setWidget(row, 3, new Label(owner.getCity()));
                  row++;
                }
              }
            }
View Full Code Here

Examples of org.hibernate.test.instrument.domain.Owner

  public void execute() {
    Session s = getFactory().openSession();
    Transaction t = s.beginTransaction();
    final double SIZE_IN_KB = 20480;
    final double SIZE_IN_MB = SIZE_IN_KB / 1024d;
    Owner o = new Owner();
    Document doc = new Document();
    Folder fol = new Folder();
    o.setName("gavin");
    doc.setName("Hibernate in Action");
    doc.setSummary("blah");
    doc.updateText("blah blah")
    fol.setName("books");
    doc.setOwner(o);
View Full Code Here

Examples of org.jclouds.cloudsigma2.domain.Owner

   private ServerInfo input;
   private JsonObject expected = new JsonObject();

   @BeforeMethod
   public void setUp() throws Exception {
      Owner owner = new Owner.Builder()
            .resourceUri(new URI("/api/2.0/user/5b4a69a3-8e78-4c45-a8ba-8b13f0895e23/"))
            .uuid("5b4a69a3-8e78-4c45-a8ba-8b13f0895e23")
            .build();

      Map<String, String> meta = Maps.newHashMap();
View Full Code Here

Examples of org.jclouds.cloudsigma2.domain.Owner

   private IPInfo input;
   private JsonObject expected;

   @BeforeMethod
   public void setUp() throws Exception {
      Owner owner = new Owner.Builder()
            .resourceUri(new URI("/api/2.0/user/5b4a69a3-8e78-4c45-a8ba-8b13f0895e23/"))
            .uuid("5b4a69a3-8e78-4c45-a8ba-8b13f0895e23")
            .build();

      Map<String, String> meta = Maps.newHashMap();
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.