Examples of AlertsType


Examples of org.apache.tuscany.sca.demos.aggregator.types.AlertsType

        feed.addAuthor("Apache Tuscany");
        feed.addLink("http://incubator.apache.org/tuscany");
        // Aggregate entries from feed1 and feed2
        try {       
            AlertsType alerts = this.alerts.getAllNewAlerts("");
           
            for( Object alertObject : alerts.getAlert() ){        
                AlertType alert = ((AlertType)alertObject);
                Entry entry = factory.newEntry();
                entry.setTitle(alert.getTitle());
                //entry.(alert.getSummary());                   
                entry.addLink(alert.getAddress());
View Full Code Here

Examples of org.apache.tuscany.sca.demos.aggregator.types.AlertsType

        feed.addAuthor("Apache Tuscany");
        feed.addLink("http://incubator.apache.org/tuscany");
        // Aggregate entries from feed1 and feed2
        try {       
            AlertsType alerts = this.alerts.getAllNewAlerts("");
           
            for( Object alertObject : alerts.getAlert() ){        
                AlertType alert = ((AlertType)alertObject);
                Entry entry = factory.newEntry();
                entry.setTitle(alert.getTitle());
                //entry.(alert.getSummary());                   
                entry.addLink(alert.getAddress());
View Full Code Here

Examples of org.apache.tuscany.sca.demos.aggregator.types.AlertsType

public class RSSCheckerServiceImpl implements RSSCheckerService {

    public AlertsType getNewAlerts(String rssaddress, String lastchecktimestamp){
        // Create the list of alerts to return
        TypesFactory factory    = TypesFactory.INSTANCE;
        AlertsType returnAlerts = factory.createAlertsType();
        List returnAlertList    = returnAlerts.getAlert();
       
        try {
            // Turn the date into something we can process.
            DateFormat dateFormatter = DateFormat.getDateTimeInstance();
            Date timestamp = dateFormatter.parse(lastchecktimestamp);
View Full Code Here

Examples of org.apache.tuscany.sca.demos.aggregator.types.AlertsType

        feed.addAuthor("Apache Tuscany");
        feed.addLink("http://incubator.apache.org/tuscany");
        // Aggregate entries from feed1 and feed2
        try {       
            AlertsType alerts = this.alerts.getAllNewAlerts("");
           
            for( Object alertObject : alerts.getAlert() ){        
                AlertType alert = ((AlertType)alertObject);
                Entry entry = factory.newEntry();
                entry.setTitle(alert.getTitle());
                //entry.(alert.getSummary());                   
                entry.addLink(alert.getAddress());
View Full Code Here

Examples of org.apache.tuscany.sca.demos.aggregator.types.AlertsType

    {
        System.err.println("getAllNewAlerts(" + id + ")");
       
        //TypesFactory factory    = TypesFactory.INSTANCE;
        //AlertsType returnAlerts = factory.createAlertsType();
        AlertsType returnAlerts = new AlertsTypeNonSDOImpl();
        List returnAlertList    = returnAlerts.getAlert();
       
        // get the date/time now so that we can update the
        // alert source record so that next time we
        // only get the latest alerts
        Date now = new Date();
        String nowString = dateFormatter.format(now);
             
        try {
            ConfigType alertSourceConfig = alertsSources.getAlertSources(id);
           
            for (Object source : alertSourceConfig.getSource()){
                SourceType sourceType = (SourceType)source;
               
                AlertsType alerts = null;
               
                if ( sourceType.getFeedType().equals("rss")){
                    alerts = rssChecker.getNewAlerts(sourceType.getFeedAddress(),
                                                     sourceType.getLastChecked());
                } else {
                   
                }
               
                // extend return list with any alerts we found
                for( Object alert : alerts.getAlert() ){        

                    // set the id on the alert so we know which source it
                    // came from
                    ((AlertType)alert).setSourceId(sourceType.getId());
                   
View Full Code Here

Examples of org.apache.tuscany.sca.demos.aggregator.types.AlertsType

        // Aggregate entries from feed1 and feed2
        List<SyndEntry> entries = new ArrayList<SyndEntry>();
       
        try {       
            AlertsType alerts = this.alerts.getAllNewAlerts("");
           
            for( Object alertObject : alerts.getAlert() ){        
                AlertType alert = ((AlertType)alertObject);
                SyndEntry entry = new SyndEntryImpl();
                entry.setTitle(alert.getTitle());
                //entry.(alert.getSummary());                   
                entry.setLink(alert.getAddress());
View Full Code Here

Examples of org.apache.tuscany.sca.demos.aggregator.types.AlertsType

    {
        System.err.println("getAllNewAlerts(" + id + ")");
       
        //TypesFactory factory    = TypesFactory.INSTANCE;
        //AlertsType returnAlerts = factory.createAlertsType();
        AlertsType returnAlerts = new AlertsTypeNonSDOImpl();
        List returnAlertList    = returnAlerts.getAlert();
       
        // get the date/time now so that we can update the
        // alert source record so that next time we
        // only get the latest alerts
        Date now = new Date();
        String nowString = dateFormatter.format(now);
             
        try {
            ConfigType alertSourceConfig = alertsSources.getAlertSources(id);
           
            for (Object source : alertSourceConfig.getSource()){
                SourceType sourceType = (SourceType)source;
               
                AlertsType alerts = null;
               
                if ( sourceType.getFeedType().equals("rss")){
                    alerts = rssChecker.getNewAlerts(sourceType.getFeedAddress(),
                                                     sourceType.getLastChecked());
                } else {
                   
                }
               
                // extend return list with any alerts we found
                for( Object alert : alerts.getAlert() ){        

                    // set the id on the alert so we know which source it
                    // came from
                    ((AlertType)alert).setSourceId(sourceType.getId());
                   
View Full Code Here

Examples of org.apache.tuscany.sca.demos.aggregator.types.AlertsType

        // Aggregate entries from feed1 and feed2
        List<SyndEntry> entries = new ArrayList<SyndEntry>();
       
        try {       
            AlertsType alerts = this.alerts.getAllNewAlerts("");
           
            for( Object alertObject : alerts.getAlert() ){        
                AlertType alert = ((AlertType)alertObject);
                SyndEntry entry = new SyndEntryImpl();
                entry.setTitle(alert.getTitle());
                //entry.(alert.getSummary());                   
                entry.setLink(alert.getAddress());
View Full Code Here

Examples of org.apache.tuscany.sca.demos.aggregator.types.AlertsType

public class RSSCheckerServiceImpl implements RSSCheckerService {

    public AlertsType getNewAlerts(String rssaddress, String lastchecktimestamp){
        // Create the list of alerts to return
        TypesFactory factory    = TypesFactory.INSTANCE;
        AlertsType returnAlerts = factory.createAlertsType();
        List returnAlertList    = returnAlerts.getAlert();
       
        try {
          // lastchecktimestamp comes from sources.xml configuration.
          // That origin requires ISO 8601 date input (yyyy-MM-dd hh:mm:ss).
          DateFormat configDateFormatter = new SimpleDateFormat( "yyyy-MM-dd hh:mm:ss");
View Full Code Here

Examples of org.apache.tuscany.sca.demos.aggregator.types.AlertsType

    {
        System.err.println("getAllNewAlerts(" + id + ")");
       
        //TypesFactory factory    = TypesFactory.INSTANCE;
        //AlertsType returnAlerts = factory.createAlertsType();
        AlertsType returnAlerts = new AlertsTypeNonSDOImpl();
        List returnAlertList    = returnAlerts.getAlert();
       
        // get the date/time now so that we can update the
        // alert source record so that next time we
        // only get the latest alerts
        Date now = new Date();
        String nowString = dateFormatter.format(now);
             
        try {
            ConfigType alertSourceConfig = alertsSources.getAlertSources(id);
           
            for (Object source : alertSourceConfig.getSource()){
                SourceType sourceType = (SourceType)source;
               
                AlertsType alerts = null;
               
                if ( sourceType.getFeedType().equals("rss")){
                    alerts = rssChecker.getNewAlerts(sourceType.getFeedAddress(),
                                                     sourceType.getLastChecked());
                } else {
                   
                }
               
                // extend return list with any alerts we found
                for( Object alert : alerts.getAlert() ){        

                    // set the id on the alert so we know which source it
                    // came from
                    ((AlertType)alert).setSourceId(sourceType.getId());
                   
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.