public boolean isRevertable() {
    switch (this) {
      case MAINT:
      case PATCH:
        return true;
      case SERVICE:
      case STANDARD:
        return false;
      default:
        return false;
    }
  }
Gets whether applications of this repository are revertable after they have
been finalized.

@return {@code true} if the repository can be revert, {@code false}
        otherwise.
ambari-server-spi/src/main/java/org/apache/ambari/spi/RepositoryType.java