Package com.gitblit.wicket

Examples of com.gitblit.wicket.CacheControl


  }

  @Override
  protected void setLastModified() {
    if (getClass().isAnnotationPresent(CacheControl.class)) {
      CacheControl cacheControl = getClass().getAnnotation(CacheControl.class);
      switch (cacheControl.value()) {
      case REPOSITORY:
        RepositoryModel repository = getRepositoryModel();
        if (repository != null) {
          setLastModified(repository.lastChange);
        }
View Full Code Here


   * date used is determined by the CacheControl annotation.
   *
   */
  protected void setLastModified() {
    if (getClass().isAnnotationPresent(CacheControl.class)) {
      CacheControl cacheControl = getClass().getAnnotation(CacheControl.class);
      switch (cacheControl.value()) {
      case ACTIVITY:
        setLastModified(app().getLastActivityDate());
        break;
      case BOOT:
        setLastModified(app().getBootDate());
        break;
      case NONE:
        break;
      default:
        logger().warn(getClass().getSimpleName() + ": unhandled LastModified type " + cacheControl.value());
        break;
      }
    }
  }
View Full Code Here

  }

  @Override
  protected void setLastModified() {
    if (getClass().isAnnotationPresent(CacheControl.class)) {
      CacheControl cacheControl = getClass().getAnnotation(CacheControl.class);
      switch (cacheControl.value()) {
      case PROJECT:
        String projectName = WicketUtils.getProjectName(getPageParameters());
        if (!StringUtils.isEmpty(projectName)) {
          ProjectModel project = getProjectModel(projectName);
          if (project != null) {
View Full Code Here

  }

  @Override
  protected void setLastModified() {
    if (getClass().isAnnotationPresent(CacheControl.class)) {
      CacheControl cacheControl = getClass().getAnnotation(CacheControl.class);
      switch (cacheControl.value()) {
      case REPOSITORY:
        RepositoryModel repository = getRepositoryModel();
        if (repository != null) {
          setLastModified(repository.lastChange);
        }
View Full Code Here

  }

  @Override
  protected void setLastModified() {
    if (getClass().isAnnotationPresent(CacheControl.class)) {
      CacheControl cacheControl = getClass().getAnnotation(CacheControl.class);
      switch (cacheControl.value()) {
      case PROJECT:
        String projectName = WicketUtils.getProjectName(getPageParameters());
        if (!StringUtils.isEmpty(projectName)) {
          ProjectModel project = getProjectModel(projectName);
          if (project != null) {
View Full Code Here

   * date used is determined by the CacheControl annotation.
   *
   */
  protected void setLastModified() {
    if (getClass().isAnnotationPresent(CacheControl.class)) {
      CacheControl cacheControl = getClass().getAnnotation(CacheControl.class);
      switch (cacheControl.value()) {
      case ACTIVITY:
        setLastModified(app().getLastActivityDate());
        break;
      case BOOT:
        setLastModified(app().getBootDate());
        break;
      case NONE:
        break;
      default:
        logger().warn(getClass().getSimpleName() + ": unhandled LastModified type " + cacheControl.value());
        break;
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.gitblit.wicket.CacheControl

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.