Examples of Attachments


Examples of com.google.api.services.plus.model.Activity.PlusObject.Attachments

                    // アルバム内の画像を保存
                    List<Attachments> attachmentsList = activity.getObject().getAttachments();
                    if(attachmentsList != null
                            && attachmentsList.size() > 0) {

                        Attachments attachment = attachmentsList.get(0);
                        if(attachment.getThumbnails() != null && attachment.getThumbnails().size() > 0) {

                            for(Thumbnails thumbnails: attachment.getThumbnails()) {
                                if(thumbnails != null && thumbnails.getImage() != null) {
                                    AlbumService.put(newActivityModel, thumbnails.getUrl(), thumbnails.getImage().getUrl(), thumbnails.getImage().getHeight(), thumbnails.getImage().getWidth());
                                }
                            }
                        }
View Full Code Here

Examples of com.intalio.bpms.workflow.taskManagementServices20051109.Attachments

        int i = 0;
        for (org.intalio.tempo.workflow.task.attachments.Attachment attachment : attachments) {
            attsTable[i] = transformAttachment(attachment);
            i++;
        }
        Attachments atts = (Attachments) Attachments.Factory.newInstance();
        atts.setAttachmentArray(attsTable);
        GetAttachmentsResponseDocumentImpl response = (GetAttachmentsResponseDocumentImpl) GetAttachmentsResponseDocument.Factory.newInstance();
        response.setGetAttachmentsResponse(atts);
        return XmlTooling.convertDocument(response);
    }
View Full Code Here

Examples of com.redhat.gss.redhat_support_lib.infrastructure.Attachments

    cases = new Cases(connectionManager);
    products = new Products(connectionManager);
    comments = new Comments(connectionManager);
    entitlements = new Entitlements(connectionManager);
    problems = new Problems(connectionManager);
    attachments = new Attachments(connectionManager);
    ping = new Ping(connectionManager);
    groups = new Groups(connectionManager);
    symptoms = new Symptoms(connectionManager);
  }
View Full Code Here

Examples of net.mcft.copy.betterstorage.attachment.Attachments

  }
 
  @Override
  public void onBlockClicked(World world, int x, int y, int z, EntityPlayer player) {
    // TODO: See if we can make a pull request to Forge to get PlayerInteractEvent to fire for left click on client.
    Attachments attachments = WorldUtils.get(world, x, y, z, IHasAttachments.class).getAttachments();
    boolean abort = attachments.interact(WorldUtils.rayTrace(player, 1.0F), player, EnumAttachmentInteraction.attack);
    // TODO: Abort block breaking? playerController.resetBlockBreaking doesn't seem to do the job.
  }
View Full Code Here

Examples of net.sf.redmine_mylyn.api.model.container.Attachments

      issue.setJournals(new Journals());
      lst = getList(issue.getJournals());
      lst.add(buildJournal(3, 2, 1273356000000l, "A comment with inline image: !picture.jpg!"));
     
      /* Attachments */
      issue.setAttachments(new Attachments());
      lst = getList(issue.getAttachments());
      lst.add(buildAttachment(10, 2, 1153336047000l, "picture.jpg", 452, "b91e08d0cf966d5c6ff411bd8c4cc3a2", "image/jpeg", "kurze Beschreibung"));
     
      /* IssueRelations */
     
 
View Full Code Here

Examples of org.apache.axiom.attachments.Attachments

        newMC.setDoingMTOM(ori.isDoingMTOM());
        newMC.setDoingSwA(ori.isDoingSwA());

        // if the original request carries any attachments, copy them to the clone
        // as well, except for the soap part if any
        Attachments attachments = ori.getAttachmentMap();
        if (attachments != null && attachments.getAllContentIDs().length > 0) {
            String[] cIDs = attachments.getAllContentIDs();
            String soapPart = attachments.getSOAPPartContentID();
            for (String cID : cIDs) {
                if (!cID.equals(soapPart)) {
                    newMC.addAttachment(cID, attachments.getDataHandler(cID));
                }
            }
        }

        Iterator itr = ori.getPropertyNames();
View Full Code Here

Examples of org.apache.axiom.attachments.Attachments

        newMC.setDoingMTOM(ori.isDoingMTOM());
        newMC.setDoingSwA(ori.isDoingSwA());

        // if the original request carries any attachments, copy them to the clone
        // as well, except for the soap part if any
        Attachments attachments = ori.getAttachmentMap();
        if (attachments != null && attachments.getAllContentIDs().length > 0) {
            String[] cIDs = attachments.getAllContentIDs();
            String soapPart = attachments.getSOAPPartContentID();
            for (String cID : cIDs) {
                if (!cID.equals(soapPart)) {
                    newMC.addAttachment(cID, attachments.getDataHandler(cID));
                }
            }
        }

        Iterator itr = ori.getPropertyNames();
View Full Code Here

Examples of org.apache.axiom.attachments.Attachments

        super.setUp();
    }

    private Attachments createAttachmentsForTestMTOMMessage() throws Exception {
        InputStream inStream = getTestResource(TestConstants.MTOM_MESSAGE_2.getName());
        return new Attachments(inStream, TestConstants.MTOM_MESSAGE_2.getContentType());
    }
View Full Code Here

Examples of org.apache.axiom.attachments.Attachments

     * OMText nodes.
     * 
     * @throws Exception
     */
    public void testDeferredLoadingOfAttachments() throws Exception {
        Attachments attachments = createAttachmentsForTestMTOMMessage();
        SOAPModelBuilder builder = OMXMLBuilderFactory.createSOAPModelBuilder(attachments);
        OMDocument doc = builder.getDocument();
        // Find all the binary nodes
        List/*<OMText>*/ binaryNodes = new ArrayList();
        for (Iterator it = doc.getDescendants(false); it.hasNext(); ) {
            OMNode node = (OMNode)it.next();
            if (node instanceof OMText) {
                OMText text = (OMText)node;
                if (text.isBinary()) {
                    binaryNodes.add(text);
                }
            }
        }
        assertFalse(binaryNodes.isEmpty());
        // At this moment only the SOAP part should have been loaded
        assertEquals(1, attachments.getContentIDList().size());
        for (Iterator it = binaryNodes.iterator(); it.hasNext(); ) {
            // Request the DataHandler and do something with it to make sure
            // the part is loaded
            ((DataHandler)((OMText)it.next()).getDataHandler()).getInputStream().close();
        }
        assertEquals(binaryNodes.size() + 1, attachments.getContentIDList().size());
    }
View Full Code Here

Examples of org.apache.axiom.attachments.Attachments

        byte[] bytes3 = xmlPlusMime3.getBytes();
        byte[] full = append(bytes1, bytes2);
        full = append(full, bytes3);
       
        InputStream inStream = new BufferedInputStream(new ByteArrayInputStream(full));
        Attachments attachments = new Attachments(inStream, contentTypeString);
        SOAPModelBuilder builder = OMXMLBuilderFactory.createSOAPModelBuilder(attachments);
        OMElement root = builder.getDocumentElement();
        root.build();
    }
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.