Package com.google.gdata.data

Examples of com.google.gdata.data.HtmlTextConstruct


            Date postDate = new Date(htmlFile.getLastModifiedDate().getTime() + postTimeShift);
           
            Entry e = new Entry();
            e.setTitle(new PlainTextConstruct(title));
            e.setDraft(isDraftPost);
            e.setContent(new HtmlTextConstruct(htmlFile.getBody()));
           
            java.util.TimeZone tz = getTimeZone();
            if (tz == null)
                throw new ArgumentNotSetException("timeZone");
           
View Full Code Here


            Owner owner = new Owner();
            owner.setUsername(new Username(ownerName));
            entry.setOwner(owner);
        }

        entry.setContent(new HtmlTextConstruct(description));
        entry.setTitle(new PlainTextConstruct(summary));
        entry.setStatus(new Status("New"));
        entry.setSendEmail(new SendEmail("False"));

        IssuesEntry created = client.createIssue(entry, monitor);
View Full Code Here

        computeBlockedOnDifference(taskData, oldAttributes, updates);

        entry.getAuthors().add(client.getCurrentUser());
        if (!StringUtils.isEmpty(comment)) {
            entry.setContent(new HtmlTextConstruct(comment));
        }
        entry.setSendEmail(new SendEmail("False"));
        entry.setUpdates(updates);
        client.updateIssue(issueId, entry, monitor);
        return new RepositoryResponse(ResponseKind.TASK_UPDATED, issueId);
View Full Code Here

            // IllegalStateException
            // when the content is not TextContent
            TextContent textContent = (TextContent) content;
            if (textContent.getContent() != null
                    && textContent.getContent() instanceof HtmlTextConstruct) {
                HtmlTextConstruct html = (HtmlTextConstruct) textContent.getContent();
                String htmlContent = html.getHtml();
                if (stripHtml == true) {
                    return htmlContent.replaceAll("\\<.*?\\>", "");
                } else {
                    return htmlContent;
                }
View Full Code Here

TOP

Related Classes of com.google.gdata.data.HtmlTextConstruct

Copyright © 2018 www.massapicom. 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.