Examples of FeedBuilder


Examples of com.atlassian.labs.speakeasy.util.FeedBuilder

    public String getPluginFeed(String userName) throws UnauthorizedAccessException
    {
        validateAccess(userName);
        List<Plugin> plugins = extensionManager.getAllExtensionPlugins();
        return new FeedBuilder(plugins, bundleContext.getBundles()).
                serverName(applicationProperties.getDisplayName()).
                serverBaseUrl(applicationProperties.getBaseUrl()).
                profilePath(productAccessor.getProfilePath()).
                build();
    }
View Full Code Here

Examples of org.atomojo.app.client.FeedBuilder

         layoutFeedClient.setIdentity(autoConf.getUsername(),autoConf.getPassword());
      }
     
      try {
        
         FeedBuilder builder = new FeedBuilder();
         Response response = layoutFeedClient.get(builder);
         if (response.getStatus().isSuccess()) {
            Feed feed = builder.getFeed();
            feed.index();
           
            Set<String> names = new TreeSet<String>();

            List<SecurityGuard.SecureRoute> copyOfRoutes = new ArrayList<SecurityGuard.SecureRoute>();
View Full Code Here

Examples of org.atomojo.app.client.FeedBuilder

      FeedClient appFeedClient = new FeedClient(client,new Reference(layoutTemLoc));
      if (autoConf.getUsername()!=null) {
         appFeedClient.setIdentity(autoConf.getUsername(),autoConf.getPassword());
      }
      try {
         FeedBuilder builder = new FeedBuilder();
         Response response = appFeedClient.get(builder);
         boolean found = false;
         if (!response.getStatus().isSuccess()) {
            if (response.getStatus().getCode()!=404) {
               getLogger().severe("Cannot get feed "+layoutTemLoc+", status="+response.getStatus().getCode());
            } else {
               getLogger().warning("No application feed to load.");
            }
         } else {
            Feed feed = builder.getFeed();
            feed.index();
            Set<String> ids = new TreeSet<String>();
            String base = T_BASE.toString();
            for (Entry entry : feed.getEntriesByTerm(T_LAYOUT)) {
               String id = entry.getId();
View Full Code Here

Examples of org.atomojo.app.client.FeedBuilder

      FeedClient appFeedClient = new FeedClient(client,new Reference(resourceTermLoc));
      if (autoConf.getUsername()!=null) {
         appFeedClient.setIdentity(autoConf.getUsername(),autoConf.getPassword());
      }
      try {
         FeedBuilder builder = new FeedBuilder();
         Response response = appFeedClient.get(builder);
         boolean found = false;
         if (!response.getStatus().isSuccess()) {
            if (response.getStatus().getCode()!=404) {
               getLogger().severe("Cannot get feed "+resourceTermLoc+", status="+response.getStatus().getCode());
            } else {
               getLogger().warning("No application feed to load.");
            }
         } else {
            Feed feed = builder.getFeed();
            feed.index();
            Set<String> ids = new TreeSet<String>();
            String base = T_BASE.toString();
            for (Entry entry : feed.getEntriesByTerm(T_RESOURCE)) {
               String id = entry.getId();
View Full Code Here

Examples of org.atomojo.app.client.FeedBuilder

      FeedClient appFeedClient = new FeedClient(client,new Reference(appTermLoc));
      if (autoConf.getUsername()!=null) {
         appFeedClient.setIdentity(autoConf.getUsername(),autoConf.getPassword());
      }
      try {
         FeedBuilder builder = new FeedBuilder();
         Response response = appFeedClient.get(builder);
         boolean found = false;
         if (!response.getStatus().isSuccess()) {
            if (response.getStatus().getCode()!=404) {
               getLogger().severe("Cannot get feed "+appTermLoc+", status="+response.getStatus().getCode());
            } else {
               getLogger().warning("No application feed to load.");
            }
         } else {
            Feed feed = builder.getFeed();
            feed.index();
            Set<String> ids = new TreeSet<String>();
            List<Entry> entries = new ArrayList<Entry>();
            entries.addAll(feed.getEntriesByTerm(T_APP));
            Comparator<Entry> sorter = new Comparator<Entry>() {
View Full Code Here

Examples of org.atomojo.app.client.FeedBuilder

         layoutFeedClient.setIdentity(autoConf.getUsername(),autoConf.getPassword());
      }
     
      try {
        
         FeedBuilder builder = new FeedBuilder();
         Response response = layoutFeedClient.get(builder);
         if (response.getStatus().isSuccess()) {
            Feed feed = builder.getFeed();
            feed.index();
           
            Set<String> names = new TreeSet<String>();

            List<SecurityGuard.SecureRoute> copyOfRoutes = new ArrayList<SecurityGuard.SecureRoute>();
View Full Code Here

Examples of org.atomojo.app.client.FeedBuilder

      FeedClient appFeedClient = new FeedClient(client,new Reference(layoutTemLoc));
      if (autoConf.getUsername()!=null) {
         appFeedClient.setIdentity(autoConf.getUsername(),autoConf.getPassword());
      }
      try {
         FeedBuilder builder = new FeedBuilder();
         Response response = appFeedClient.get(builder);
         boolean found = false;
         if (!response.getStatus().isSuccess()) {
            if (response.getStatus().getCode()!=404) {
               getLogger().severe("Cannot get feed "+layoutTemLoc+", status="+response.getStatus().getCode());
            } else {
               getLogger().warning("No application feed to load.");
            }
         } else {
            Feed feed = builder.getFeed();
            feed.index();
            Set<String> ids = new TreeSet<String>();
            String base = T_BASE.toString();
            for (Entry entry : feed.getEntriesByTerm(T_LAYOUT)) {
               String id = entry.getId();
View Full Code Here

Examples of org.atomojo.app.client.FeedBuilder

      FeedClient appFeedClient = new FeedClient(client,new Reference(resourceTermLoc));
      if (autoConf.getUsername()!=null) {
         appFeedClient.setIdentity(autoConf.getUsername(),autoConf.getPassword());
      }
      try {
         FeedBuilder builder = new FeedBuilder();
         Response response = appFeedClient.get(builder);
         boolean found = false;
         if (!response.getStatus().isSuccess()) {
            if (response.getStatus().getCode()!=404) {
               getLogger().severe("Cannot get feed "+resourceTermLoc+", status="+response.getStatus().getCode());
            } else {
               getLogger().warning("No application feed to load.");
            }
         } else {
            Feed feed = builder.getFeed();
            feed.index();
            Set<String> ids = new TreeSet<String>();
            String base = T_BASE.toString();
            for (Entry entry : feed.getEntriesByTerm(T_RESOURCE)) {
               String id = entry.getId();
View Full Code Here

Examples of org.atomojo.app.client.FeedBuilder

      FeedClient appFeedClient = new FeedClient(client,new Reference(appTermLoc));
      if (autoConf.getUsername()!=null) {
         appFeedClient.setIdentity(autoConf.getUsername(),autoConf.getPassword());
      }
      try {
         FeedBuilder builder = new FeedBuilder();
         Response response = appFeedClient.get(builder);
         boolean found = false;
         if (!response.getStatus().isSuccess()) {
            if (response.getStatus().getCode()!=404) {
               getLogger().severe("Cannot get feed "+appTermLoc+", status="+response.getStatus().getCode());
            } else {
               getLogger().warning("No application feed to load.");
            }
         } else {
            Feed feed = builder.getFeed();
            feed.index();
            Set<String> ids = new TreeSet<String>();
            List<Entry> entries = new ArrayList<Entry>();
            entries.addAll(feed.getEntriesByTerm(T_APP));
            Comparator<Entry> sorter = new Comparator<Entry>() {
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.