Package mashup.fm.github.schema

Examples of mashup.fm.github.schema.Repository


    // Check Cache If Needed
    String cacheKey = "repository_" + user + "_" + repository;
    try {
      if (useCache) {
        Repository cachedObject = Cache.get(cacheKey, Repository.class);
        if (cachedObject != null) {
          return cachedObject;
        }
      }
    } catch (Throwable t) {
      // We don't want application failing because cache lookup didn't
      // work
      Logger.error(ExceptionUtil.getStackTrace(t));
    }

    // Cache Not Found - Hit Remote Service
    Repository results = asObject(Repository.class, "repository", repositoryCheckPattern, user, repository);

    // Set Cache
    try {
      Cache.set(cacheKey, results, cacheExpiration);
    } catch (Throwable t) {
View Full Code Here


   * @param repositoryName
   *            the repository name
   */
  public static void repository(String userName, String repositoryName) {
    // Repository
    Repository repository = new Repository();
    try {
      // Hit Service
      Repository data = getService().repository(userName, repositoryName);

      // Only set value to variable that will be bound to view if not null
      // (billion dollar mistake)
      if (data != null) {
        repository = data;
View Full Code Here

TOP

Related Classes of mashup.fm.github.schema.Repository

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.